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': [
101 skipIfMatch
: ['^@.*', '^plugin:.*']
108 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
109 parser
: '@typescript-eslint/parser',
111 project
: './tsconfig.eslint.json'
114 'plugin:@typescript-eslint/recommended',
115 'plugin:@typescript-eslint/recommended-requiring-type-checking',
116 'plugin:import/typescript',
117 'standard-with-typescript'
120 '@typescript-eslint/no-inferrable-types': [
122 { ignoreProperties
: true }
124 'tsdoc/syntax': 'warn'
128 files
: ['examples/typescript/**/*.ts'],
130 'import/no-unresolved': 'off',
131 '@typescript-eslint/no-unsafe-argument': 'off',
132 '@typescript-eslint/no-unsafe-call': 'off',
133 '@typescript-eslint/no-unsafe-return': 'off',
134 '@typescript-eslint/no-unsafe-assignment': 'off',
135 '@typescript-eslint/no-unsafe-member-access': 'off',
136 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
137 '@typescript-eslint/strict-boolean-expressions': 'off',
138 '@typescript-eslint/return-await': 'off'
142 files
: ['**/*.js', '**/*.mjs'],
144 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
147 files
: ['tests/**/*.js'],
149 'jsdoc/require-jsdoc': 'off'
153 files
: ['tests/pools/selection-strategies/**/*.js'],
155 'n/no-missing-require': 'off'
159 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
161 'jsdoc/require-jsdoc': 'off'
165 files
: ['benchmarks/versus-external-pools/**/*.js'],
167 'n/no-missing-require': 'off'
171 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
173 'n/no-missing-import': 'off',
174 'import/no-unresolved': 'off'
178 files
: ['examples/javascript/**/*.js'],
180 'n/no-missing-require': 'off',
181 'jsdoc/require-jsdoc': 'off'