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': [
88 skipIfMatch
: ['^@.*', '^plugin:.*']
95 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
96 parser
: '@typescript-eslint/parser',
98 project
: './tsconfig.eslint.json'
101 'plugin:@typescript-eslint/recommended',
102 'plugin:@typescript-eslint/recommended-requiring-type-checking',
103 'plugin:import/typescript',
104 'standard-with-typescript'
107 '@typescript-eslint/no-inferrable-types': [
109 { ignoreProperties
: true }
111 'tsdoc/syntax': 'warn'
115 files
: ['examples/typescript/**/*.ts'],
117 '@typescript-eslint/no-unsafe-argument': 'off',
118 '@typescript-eslint/no-unsafe-call': 'off',
119 '@typescript-eslint/no-unsafe-assignment': 'off'
123 files
: ['**/*.js', '**/*.mjs'],
125 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
128 files
: ['tests/**/*.js'],
130 'jsdoc/require-jsdoc': 'off'
134 files
: ['tests/pools/selection-strategies/**/*.js'],
136 'n/no-missing-require': 'off'
140 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
142 'jsdoc/require-jsdoc': 'off'
146 files
: ['benchmarks/versus-external-pools/**/*.js'],
148 'n/no-missing-require': 'off'
152 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
154 'n/no-missing-import': 'off',
155 'import/no-unresolved': 'off'
159 files
: ['examples/**/*.js'],
161 'n/no-missing-require': 'off',
162 'jsdoc/require-jsdoc': 'off'