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': [
73 skipIfMatch
: ['^@.*', '^plugin:.*']
80 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
81 parser
: '@typescript-eslint/parser',
83 project
: './tsconfig.json'
86 'plugin:@typescript-eslint/eslint-recommended',
87 'plugin:@typescript-eslint/recommended',
88 'plugin:@typescript-eslint/recommended-requiring-type-checking',
89 'plugin:import/typescript',
90 'standard-with-typescript'
93 '@typescript-eslint/no-inferrable-types': [
95 { ignoreProperties
: true }
97 'tsdoc/syntax': 'warn'
101 files
: ['examples/typescript/**/*.ts'],
103 'import/no-unresolved': 'off',
104 '@typescript-eslint/no-unsafe-argument': 'off',
105 '@typescript-eslint/no-unsafe-call': 'off',
106 '@typescript-eslint/no-unsafe-assignment': 'off'
110 files
: ['**/*.js', '**/*.mjs'],
112 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
115 files
: ['tests/**/*.js'],
117 'jsdoc/require-jsdoc': 'off'
121 files
: ['tests/pools/selection-strategies/**/*.js'],
123 'n/no-missing-require': 'off'
127 files
: ['benchmarks/**/*.js'],
129 'jsdoc/require-jsdoc': 'off'
133 files
: ['benchmarks/versus-external-pools/**/*.js'],
135 'n/no-missing-require': 'off'
139 files
: ['examples/**/*.js'],
141 'n/no-missing-require': 'off',
142 'jsdoc/require-jsdoc': 'off'