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': [
97 skipIfMatch
: ['^@.*', '^plugin:.*']
104 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
105 parser
: '@typescript-eslint/parser',
107 project
: './tsconfig.eslint.json'
110 'plugin:@typescript-eslint/recommended',
111 'plugin:@typescript-eslint/recommended-requiring-type-checking',
112 'plugin:import/typescript',
113 'standard-with-typescript'
116 '@typescript-eslint/no-inferrable-types': [
118 { ignoreProperties
: true }
120 'tsdoc/syntax': 'warn'
124 files
: ['examples/typescript/**/*.ts'],
126 'import/no-unresolved': 'off',
127 '@typescript-eslint/no-unsafe-argument': 'off',
128 '@typescript-eslint/no-unsafe-call': 'off',
129 '@typescript-eslint/no-unsafe-return': 'off',
130 '@typescript-eslint/no-unsafe-assignment': 'off',
131 '@typescript-eslint/no-unsafe-member-access': 'off',
132 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
133 '@typescript-eslint/strict-boolean-expressions': 'off',
134 '@typescript-eslint/return-await': 'off'
138 files
: ['**/*.js', '**/*.mjs'],
140 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
143 files
: ['tests/**/*.js'],
145 'jsdoc/require-jsdoc': 'off'
149 files
: ['tests/pools/selection-strategies/**/*.js'],
151 'n/no-missing-require': 'off'
155 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
157 'jsdoc/require-jsdoc': 'off'
161 files
: ['benchmarks/versus-external-pools/**/*.js'],
163 'n/no-missing-require': 'off'
167 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
169 'n/no-missing-import': 'off',
170 'import/no-unresolved': 'off'
174 files
: ['examples/javascript/**/*.js'],
176 'n/no-missing-require': 'off',
177 'jsdoc/require-jsdoc': 'off'