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': [
89 skipIfMatch
: ['^@.*', '^plugin:.*']
96 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
97 parser
: '@typescript-eslint/parser',
99 project
: './tsconfig.eslint.json'
102 'plugin:@typescript-eslint/eslint-recommended',
103 'plugin:@typescript-eslint/recommended',
104 'plugin:@typescript-eslint/recommended-requiring-type-checking',
105 'plugin:import/typescript',
106 'standard-with-typescript'
109 '@typescript-eslint/no-inferrable-types': [
111 { ignoreProperties
: true }
113 'tsdoc/syntax': 'warn'
117 files
: ['examples/typescript/**/*.ts'],
119 '@typescript-eslint/no-unsafe-argument': 'off',
120 '@typescript-eslint/no-unsafe-call': 'off',
121 '@typescript-eslint/no-unsafe-assignment': 'off'
125 files
: ['**/*.js', '**/*.mjs'],
127 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
130 files
: ['tests/**/*.js'],
132 'jsdoc/require-jsdoc': 'off'
136 files
: ['tests/pools/selection-strategies/**/*.js'],
138 'n/no-missing-require': 'off'
142 files
: ['benchmarks/**/*.js'],
144 'jsdoc/require-jsdoc': 'off'
148 files
: ['benchmarks/versus-external-pools/**/*.js'],
150 'n/no-missing-require': 'off'
154 files
: ['examples/**/*.js'],
156 'n/no-missing-require': 'off',
157 'jsdoc/require-jsdoc': 'off'