2b402eacb6f4edea0acbc828ec1bdfcb12735c56
1 const { defineConfig
} = require('eslint-define-config')
3 module
.exports
= defineConfig({
14 plugins
: ['promise', 'spellcheck'],
17 'plugin:import/recommended',
18 'plugin:promise/recommended'
23 project
: './tsconfig.eslint.json'
31 ignoreDeclarationSort
: true
34 'import/order': 'error',
36 'spellcheck/spell-checker': [
91 skipIfMatch
: ['^@.*', '^plugin:.*']
98 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
99 parser
: '@typescript-eslint/parser',
101 project
: './tsconfig.eslint.json'
104 'plugin:@typescript-eslint/recommended',
105 'plugin:@typescript-eslint/recommended-requiring-type-checking',
106 'plugin:import/typescript',
107 'standard-with-typescript'
110 '@typescript-eslint/no-inferrable-types': [
112 { ignoreProperties
: true }
114 'tsdoc/syntax': 'warn'
118 files
: ['examples/typescript/**/*.ts'],
120 'import/no-unresolved': 'off',
121 '@typescript-eslint/no-unsafe-argument': 'off',
122 '@typescript-eslint/no-unsafe-call': 'off',
123 '@typescript-eslint/no-unsafe-return': 'off',
124 '@typescript-eslint/no-unsafe-assignment': 'off',
125 '@typescript-eslint/no-unsafe-member-access': 'off',
126 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
127 '@typescript-eslint/strict-boolean-expressions': 'off',
128 '@typescript-eslint/restrict-template-expressions': 'off',
129 '@typescript-eslint/return-await': 'off'
133 files
: ['**/*.js', '**/*.mjs'],
135 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
138 files
: ['tests/**/*.js'],
140 'jsdoc/require-jsdoc': 'off'
144 files
: ['tests/pools/selection-strategies/**/*.js'],
146 'n/no-missing-require': 'off'
150 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
152 'jsdoc/require-jsdoc': 'off'
156 files
: ['benchmarks/versus-external-pools/**/*.js'],
158 'n/no-missing-require': 'off'
162 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
164 'n/no-missing-import': 'off',
165 'import/no-unresolved': 'off'
169 files
: ['examples/javascript/**/*.js'],
171 'n/no-missing-require': 'off',
172 'jsdoc/require-jsdoc': 'off'