a6ad5b1de281c8e671932bb02bb5542aef157684
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': [
104 skipIfMatch
: ['^@.*', '^plugin:.*']
111 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
112 parser
: '@typescript-eslint/parser',
114 project
: './tsconfig.eslint.json'
117 'plugin:@typescript-eslint/recommended',
118 'plugin:@typescript-eslint/recommended-requiring-type-checking',
119 'plugin:import/typescript',
120 'standard-with-typescript'
123 '@typescript-eslint/no-inferrable-types': [
125 { ignoreProperties
: true }
127 'tsdoc/syntax': 'warn'
131 files
: ['examples/typescript/**/*.ts'],
133 'import/no-unresolved': 'off',
134 '@typescript-eslint/no-unsafe-argument': 'off',
135 '@typescript-eslint/no-unsafe-call': 'off',
136 '@typescript-eslint/no-unsafe-return': 'off',
137 '@typescript-eslint/no-unsafe-assignment': 'off',
138 '@typescript-eslint/no-unsafe-member-access': 'off',
139 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
140 '@typescript-eslint/no-redundant-type-constituents': 'off',
141 '@typescript-eslint/strict-boolean-expressions': 'off',
142 '@typescript-eslint/return-await': 'off'
146 files
: ['**/*.js', '**/*.mjs'],
148 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
151 files
: ['tests/**/*.js'],
153 'jsdoc/require-jsdoc': 'off'
157 files
: ['tests/pools/selection-strategies/**/*.js'],
159 'n/no-missing-require': 'off'
163 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
165 'jsdoc/require-jsdoc': 'off'
169 files
: ['benchmarks/versus-external-pools/**/*.js'],
171 'n/no-missing-require': 'off'
175 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
177 'n/no-missing-import': 'off',
178 'import/no-unresolved': 'off'
182 files
: ['examples/javascript/**/*.js'],
184 'n/no-missing-require': 'off',
185 'jsdoc/require-jsdoc': 'off'