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': [
71 skipIfMatch
: ['^@.*', '^plugin:.*']
78 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
79 parser
: '@typescript-eslint/parser',
81 project
: './tsconfig.json'
84 'plugin:@typescript-eslint/eslint-recommended',
85 'plugin:@typescript-eslint/recommended',
86 'plugin:@typescript-eslint/recommended-requiring-type-checking',
87 'plugin:import/typescript',
88 'standard-with-typescript'
91 '@typescript-eslint/no-inferrable-types': [
93 { ignoreProperties
: true }
95 'tsdoc/syntax': 'error'
99 files
: ['examples/typescript/**/*.ts'],
101 'import/no-unresolved': 'off',
102 '@typescript-eslint/no-unsafe-argument': 'off',
103 '@typescript-eslint/no-unsafe-call': 'off',
104 '@typescript-eslint/no-unsafe-assignment': 'off'
108 files
: ['**/*.js', '**/*.mjs'],
110 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
113 files
: ['tests/**/*.js'],
115 'jsdoc/require-jsdoc': 'off'
119 files
: ['tests/pools/selection-strategies/**/*.js'],
121 'n/no-missing-require': 'off'
125 files
: ['benchmarks/**/*.js'],
127 'jsdoc/require-jsdoc': 'off'
131 files
: ['benchmarks/versus-external-pools/**/*.js'],
133 'n/no-missing-require': 'off'
137 files
: ['examples/**/*.js'],
139 'n/no-missing-require': 'off',
140 'jsdoc/require-jsdoc': 'off'