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': [
94 skipIfMatch
: ['^@.*', '^plugin:.*']
101 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
102 parser
: '@typescript-eslint/parser',
104 project
: './tsconfig.eslint.json'
107 'plugin:@typescript-eslint/recommended',
108 'plugin:@typescript-eslint/recommended-requiring-type-checking',
109 'plugin:import/typescript',
110 'standard-with-typescript'
113 '@typescript-eslint/no-inferrable-types': [
115 { ignoreProperties
: true }
117 'tsdoc/syntax': 'warn'
121 files
: ['examples/typescript/**/*.ts'],
123 'import/no-unresolved': 'off',
124 '@typescript-eslint/no-unsafe-argument': 'off',
125 '@typescript-eslint/no-unsafe-call': 'off',
126 '@typescript-eslint/no-unsafe-return': 'off',
127 '@typescript-eslint/no-unsafe-assignment': 'off',
128 '@typescript-eslint/no-unsafe-member-access': 'off',
129 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
130 '@typescript-eslint/strict-boolean-expressions': 'off',
131 '@typescript-eslint/return-await': 'off'
135 files
: ['**/*.js', '**/*.mjs'],
137 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
140 files
: ['tests/**/*.js'],
142 'jsdoc/require-jsdoc': 'off'
146 files
: ['tests/pools/selection-strategies/**/*.js'],
148 'n/no-missing-require': 'off'
152 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
154 'jsdoc/require-jsdoc': 'off'
158 files
: ['benchmarks/versus-external-pools/**/*.js'],
160 'n/no-missing-require': 'off'
164 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
166 'n/no-missing-import': 'off',
167 'import/no-unresolved': 'off'
171 files
: ['examples/javascript/**/*.js'],
173 'n/no-missing-require': 'off',
174 'jsdoc/require-jsdoc': 'off'