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': [
85 skipIfMatch
: ['^@.*', '^plugin:.*']
92 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
93 parser
: '@typescript-eslint/parser',
95 project
: './tsconfig.eslint.json'
98 'plugin:@typescript-eslint/eslint-recommended',
99 'plugin:@typescript-eslint/recommended',
100 'plugin:@typescript-eslint/recommended-requiring-type-checking',
101 'plugin:import/typescript',
102 'standard-with-typescript'
105 '@typescript-eslint/no-inferrable-types': [
107 { ignoreProperties
: true }
109 'tsdoc/syntax': 'warn'
113 files
: ['examples/typescript/**/*.ts'],
115 '@typescript-eslint/no-unsafe-argument': 'off',
116 '@typescript-eslint/no-unsafe-call': 'off',
117 '@typescript-eslint/no-unsafe-assignment': 'off'
121 files
: ['**/*.js', '**/*.mjs'],
123 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
126 files
: ['tests/**/*.js'],
128 'jsdoc/require-jsdoc': 'off'
132 files
: ['tests/pools/selection-strategies/**/*.js'],
134 'n/no-missing-require': 'off'
138 files
: ['benchmarks/**/*.js'],
140 'jsdoc/require-jsdoc': 'off'
144 files
: ['benchmarks/versus-external-pools/**/*.js'],
146 'n/no-missing-require': 'off'
150 files
: ['examples/**/*.js'],
152 'n/no-missing-require': 'off',
153 'jsdoc/require-jsdoc': 'off'