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': [
99 skipIfMatch
: ['^@.*', '^plugin:.*']
106 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
107 parser
: '@typescript-eslint/parser',
109 project
: './tsconfig.eslint.json'
112 'plugin:@typescript-eslint/recommended',
113 'plugin:@typescript-eslint/recommended-requiring-type-checking',
114 'plugin:import/typescript',
115 'standard-with-typescript'
118 '@typescript-eslint/no-inferrable-types': [
120 { ignoreProperties
: true }
122 'tsdoc/syntax': 'warn'
126 files
: ['examples/typescript/**/*.ts'],
128 'import/no-unresolved': 'off',
129 '@typescript-eslint/no-unsafe-argument': 'off',
130 '@typescript-eslint/no-unsafe-call': 'off',
131 '@typescript-eslint/no-unsafe-return': 'off',
132 '@typescript-eslint/no-unsafe-assignment': 'off',
133 '@typescript-eslint/no-unsafe-member-access': 'off',
134 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
135 '@typescript-eslint/strict-boolean-expressions': 'off',
136 '@typescript-eslint/return-await': 'off'
140 files
: ['**/*.js', '**/*.mjs'],
142 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
145 files
: ['tests/**/*.js'],
147 'jsdoc/require-jsdoc': 'off'
151 files
: ['tests/pools/selection-strategies/**/*.js'],
153 'n/no-missing-require': 'off'
157 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
159 'jsdoc/require-jsdoc': 'off'
163 files
: ['benchmarks/versus-external-pools/**/*.js'],
165 'n/no-missing-require': 'off'
169 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
171 'n/no-missing-import': 'off',
172 'import/no-unresolved': 'off'
176 files
: ['examples/javascript/**/*.js'],
178 'n/no-missing-require': 'off',
179 'jsdoc/require-jsdoc': 'off'