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': [
88 skipIfMatch
: ['^@.*', '^plugin:.*']
95 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
96 parser
: '@typescript-eslint/parser',
98 project
: './tsconfig.eslint.json'
101 'plugin:@typescript-eslint/eslint-recommended',
102 'plugin:@typescript-eslint/recommended',
103 'plugin:@typescript-eslint/recommended-requiring-type-checking',
104 'plugin:import/typescript',
105 'standard-with-typescript'
108 '@typescript-eslint/no-inferrable-types': [
110 { ignoreProperties
: true }
112 'tsdoc/syntax': 'warn'
116 files
: ['examples/typescript/**/*.ts'],
118 '@typescript-eslint/no-unsafe-argument': 'off',
119 '@typescript-eslint/no-unsafe-call': 'off',
120 '@typescript-eslint/no-unsafe-assignment': 'off'
124 files
: ['**/*.js', '**/*.mjs'],
126 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
129 files
: ['tests/**/*.js'],
131 'jsdoc/require-jsdoc': 'off'
135 files
: ['tests/pools/selection-strategies/**/*.js'],
137 'n/no-missing-require': 'off'
141 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
143 'jsdoc/require-jsdoc': 'off'
147 files
: ['benchmarks/versus-external-pools/**/*.js'],
149 'n/no-missing-require': 'off'
153 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
155 'n/no-missing-import': 'off',
156 'import/no-unresolved': 'off'
160 files
: ['examples/**/*.js'],
162 'n/no-missing-require': 'off',
163 'jsdoc/require-jsdoc': 'off'