1 const { defineConfig } = require('eslint-define-config')
3 module.exports = defineConfig({
14 plugins: ['simple-import-sort', 'promise', 'spellcheck'],
17 'plugin:import/recommended',
18 'plugin:promise/recommended'
23 project: './tsconfig.json'
28 'simple-import-sort/imports': 'error',
29 'simple-import-sort/exports': 'error',
31 'spellcheck/spell-checker': [
106 skipIfMatch: ['^@.*', '^plugin:.*']
113 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
114 parser: '@typescript-eslint/parser',
116 project: './tsconfig.json'
119 'plugin:@typescript-eslint/strict-type-checked',
120 'plugin:@typescript-eslint/stylistic-type-checked',
121 'plugin:import/typescript',
125 'operator-linebreak': 'off',
126 'tsdoc/syntax': 'warn'
130 files: ['examples/typescript/**/*.ts'],
132 'import/no-unresolved': [
147 '@typescript-eslint/no-unsafe-argument': 'off',
148 '@typescript-eslint/no-unsafe-call': 'off',
149 '@typescript-eslint/no-unsafe-return': 'off',
150 '@typescript-eslint/no-unsafe-assignment': 'off',
151 '@typescript-eslint/no-unsafe-member-access': 'off',
152 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
153 '@typescript-eslint/no-redundant-type-constituents': 'off',
154 '@typescript-eslint/strict-boolean-expressions': 'off',
155 '@typescript-eslint/return-await': 'off',
156 '@typescript-eslint/no-non-null-assertion': 'off'
160 files: ['**/*.cjs', '**/*.js', '**/*.mjs'],
162 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
165 files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'],
167 'jsdoc/require-jsdoc': 'off'
172 'benchmarks/**/*.cjs',
173 'benchmarks/**/*.js',
174 'benchmarks/**/*.mjs'
177 'jsdoc/require-jsdoc': 'off'
181 files: ['examples/javascript/**/*.cjs', 'examples/javascript/**/*.js'],
183 'jsdoc/require-jsdoc': 'off'