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': [
75 skipIfMatch
: ['^@.*', '^plugin:.*']
82 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
83 parser
: '@typescript-eslint/parser',
85 project
: './tsconfig.json'
88 'plugin:@typescript-eslint/eslint-recommended',
89 'plugin:@typescript-eslint/recommended',
90 'plugin:@typescript-eslint/recommended-requiring-type-checking',
91 'plugin:import/typescript',
92 'standard-with-typescript'
95 '@typescript-eslint/no-inferrable-types': [
97 { ignoreProperties
: true }
99 'tsdoc/syntax': 'warn'
103 files
: ['examples/typescript/**/*.ts'],
105 'import/no-unresolved': 'off',
106 '@typescript-eslint/no-unsafe-argument': 'off',
107 '@typescript-eslint/no-unsafe-call': 'off',
108 '@typescript-eslint/no-unsafe-assignment': 'off'
112 files
: ['**/*.js', '**/*.mjs'],
114 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
117 files
: ['tests/**/*.js'],
119 'jsdoc/require-jsdoc': 'off'
123 files
: ['tests/pools/selection-strategies/**/*.js'],
125 'n/no-missing-require': 'off'
129 files
: ['benchmarks/**/*.js'],
131 'jsdoc/require-jsdoc': 'off'
135 files
: ['benchmarks/versus-external-pools/**/*.js'],
137 'n/no-missing-require': 'off'
141 files
: ['examples/**/*.js'],
143 'n/no-missing-require': 'off',
144 'jsdoc/require-jsdoc': 'off'