1 const { defineConfig
} = require('eslint-define-config')
3 module
.exports
= defineConfig({
14 plugins
: ['promise', 'spellcheck'],
17 'plugin:import/recommended',
18 'plugin:promise/recommended'
24 ignoreMemberSort
: true,
25 ignoreDeclarationSort
: true
29 'spellcheck/spell-checker': [
77 skipIfMatch
: ['^@.*', '^plugin:.*']
84 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
85 parser
: '@typescript-eslint/parser',
87 project
: './tsconfig.eslint.json'
90 'plugin:@typescript-eslint/eslint-recommended',
91 'plugin:@typescript-eslint/recommended',
92 'plugin:@typescript-eslint/recommended-requiring-type-checking',
93 'plugin:import/typescript',
94 'standard-with-typescript'
97 '@typescript-eslint/no-inferrable-types': [
99 { ignoreProperties
: true }
101 'tsdoc/syntax': 'warn'
105 files
: ['examples/typescript/**/*.ts'],
107 'import/no-unresolved': 'off',
108 '@typescript-eslint/no-unsafe-argument': 'off',
109 '@typescript-eslint/no-unsafe-call': 'off',
110 '@typescript-eslint/no-unsafe-assignment': 'off'
114 files
: ['**/*.js', '**/*.mjs'],
116 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
119 files
: ['tests/**/*.js'],
121 'jsdoc/require-jsdoc': 'off'
125 files
: ['tests/pools/selection-strategies/**/*.js'],
127 'n/no-missing-require': 'off'
131 files
: ['benchmarks/**/*.js'],
133 'jsdoc/require-jsdoc': 'off'
137 files
: ['benchmarks/versus-external-pools/**/*.js'],
139 'n/no-missing-require': 'off'
143 files
: ['examples/**/*.js'],
145 'n/no-missing-require': 'off',
146 'jsdoc/require-jsdoc': 'off'