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.json'
31 ignoreDeclarationSort
: true
34 'import/order': 'error',
36 'spellcheck/spell-checker': [
105 skipIfMatch
: ['^@.*', '^plugin:.*']
112 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
113 parser
: '@typescript-eslint/parser',
115 project
: './tsconfig.json'
118 'plugin:@typescript-eslint/recommended',
119 'plugin:@typescript-eslint/recommended-requiring-type-checking',
120 'plugin:import/typescript',
121 'standard-with-typescript'
124 '@typescript-eslint/no-inferrable-types': [
126 { ignoreProperties
: true }
128 'tsdoc/syntax': 'warn'
132 files
: ['examples/typescript/**/*.ts'],
134 'import/no-unresolved': 'off',
135 '@typescript-eslint/no-unsafe-argument': 'off',
136 '@typescript-eslint/no-unsafe-call': 'off',
137 '@typescript-eslint/no-unsafe-return': 'off',
138 '@typescript-eslint/no-unsafe-assignment': 'off',
139 '@typescript-eslint/no-unsafe-member-access': 'off',
140 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
141 '@typescript-eslint/no-redundant-type-constituents': 'off',
142 '@typescript-eslint/strict-boolean-expressions': 'off',
143 '@typescript-eslint/return-await': 'off'
147 files
: ['**/*.js', '**/*.mjs'],
149 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
152 files
: ['tests/**/*.js'],
154 'jsdoc/require-jsdoc': 'off'
158 files
: ['tests/pools/selection-strategies/**/*.js'],
160 'n/no-missing-require': 'off'
164 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
166 'jsdoc/require-jsdoc': 'off'
170 files
: ['benchmarks/versus-external-pools/**/*.js'],
172 'n/no-missing-require': 'off'
176 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
178 'n/no-missing-import': 'off',
179 'import/no-unresolved': 'off'
183 files
: ['examples/javascript/**/*.js'],
185 'n/no-missing-require': 'off',
186 'jsdoc/require-jsdoc': 'off'