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': [
72 skipIfMatch
: ['^@.*', '^plugin:.*']
79 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
80 parser
: '@typescript-eslint/parser',
82 project
: './tsconfig.json'
85 'plugin:@typescript-eslint/eslint-recommended',
86 'plugin:@typescript-eslint/recommended',
87 'plugin:@typescript-eslint/recommended-requiring-type-checking',
88 'plugin:import/typescript',
89 'standard-with-typescript'
92 '@typescript-eslint/no-inferrable-types': [
94 { ignoreProperties
: true }
96 'tsdoc/syntax': 'error'
100 files
: ['examples/typescript/**/*.ts'],
102 'import/no-unresolved': 'off',
103 '@typescript-eslint/no-unsafe-argument': 'off',
104 '@typescript-eslint/no-unsafe-call': 'off',
105 '@typescript-eslint/no-unsafe-assignment': 'off'
109 files
: ['**/*.js', '**/*.mjs'],
111 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
114 files
: ['tests/**/*.js'],
116 'jsdoc/require-jsdoc': 'off'
120 files
: ['tests/pools/selection-strategies/**/*.js'],
122 'n/no-missing-require': 'off'
126 files
: ['benchmarks/**/*.js'],
128 'jsdoc/require-jsdoc': 'off'
132 files
: ['benchmarks/versus-external-pools/**/*.js'],
134 'n/no-missing-require': 'off'
138 files
: ['examples/**/*.js'],
140 'n/no-missing-require': 'off',
141 'jsdoc/require-jsdoc': 'off'