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': [
84 skipIfMatch
: ['^@.*', '^plugin:.*']
91 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
92 parser
: '@typescript-eslint/parser',
94 project
: './tsconfig.eslint.json'
97 'plugin:@typescript-eslint/eslint-recommended',
98 'plugin:@typescript-eslint/recommended',
99 'plugin:@typescript-eslint/recommended-requiring-type-checking',
100 'plugin:import/typescript',
101 'standard-with-typescript'
104 '@typescript-eslint/no-inferrable-types': [
106 { ignoreProperties
: true }
108 'tsdoc/syntax': 'warn'
112 files
: ['examples/typescript/**/*.ts'],
114 '@typescript-eslint/no-unsafe-argument': 'off',
115 '@typescript-eslint/no-unsafe-call': 'off',
116 '@typescript-eslint/no-unsafe-assignment': 'off'
120 files
: ['**/*.js', '**/*.mjs'],
122 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
125 files
: ['tests/**/*.js'],
127 'jsdoc/require-jsdoc': 'off'
131 files
: ['tests/pools/selection-strategies/**/*.js'],
133 'n/no-missing-require': 'off'
137 files
: ['benchmarks/**/*.js'],
139 'jsdoc/require-jsdoc': 'off'
143 files
: ['benchmarks/versus-external-pools/**/*.js'],
145 'n/no-missing-require': 'off'
149 files
: ['examples/**/*.js'],
151 'n/no-missing-require': 'off',
152 'jsdoc/require-jsdoc': 'off'