2 const { defineConfig
} = require('eslint-define-config')
4 module
.exports
= defineConfig({
15 plugins
: ['promise', 'spellcheck'],
18 'plugin:import/recommended',
19 'plugin:promise/recommended'
25 ignoreMemberSort
: true,
26 ignoreDeclarationSort
: true
30 'spellcheck/spell-checker': [
78 skipIfMatch
: ['^@.*', '^plugin:.*']
85 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
86 parser
: '@typescript-eslint/parser',
88 project
: './tsconfig.eslint.json'
91 'plugin:@typescript-eslint/eslint-recommended',
92 'plugin:@typescript-eslint/recommended',
93 'plugin:@typescript-eslint/recommended-requiring-type-checking',
94 'plugin:import/typescript',
95 'standard-with-typescript'
98 '@typescript-eslint/no-inferrable-types': [
100 { ignoreProperties
: true }
102 'tsdoc/syntax': 'warn'
106 files
: ['examples/typescript/**/*.ts'],
108 'import/no-unresolved': 'off',
109 '@typescript-eslint/no-unsafe-argument': 'off',
110 '@typescript-eslint/no-unsafe-call': 'off',
111 '@typescript-eslint/no-unsafe-assignment': 'off'
115 files
: ['**/*.js', '**/*.mjs'],
117 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
120 files
: ['tests/**/*.js'],
122 'jsdoc/require-jsdoc': 'off'
126 files
: ['tests/pools/selection-strategies/**/*.js'],
128 'n/no-missing-require': 'off'
132 files
: ['benchmarks/**/*.js'],
134 'jsdoc/require-jsdoc': 'off'
138 files
: ['benchmarks/versus-external-pools/**/*.js'],
140 'n/no-missing-require': 'off'
144 files
: ['examples/**/*.js'],
146 'n/no-missing-require': 'off',
147 'jsdoc/require-jsdoc': 'off'