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': [
70 skipIfMatch
: ['^@.*', '^plugin:.*']
77 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
78 parser
: '@typescript-eslint/parser',
80 project
: './tsconfig.json'
83 'plugin:@typescript-eslint/eslint-recommended',
84 'plugin:@typescript-eslint/recommended',
85 'plugin:@typescript-eslint/recommended-requiring-type-checking',
86 'plugin:import/typescript',
87 'standard-with-typescript'
90 '@typescript-eslint/no-inferrable-types': [
92 { ignoreProperties
: true }
94 'tsdoc/syntax': 'error'
98 files
: ['examples/typescript/**/*.ts'],
100 'import/no-unresolved': 'off',
101 '@typescript-eslint/no-unsafe-argument': 'off',
102 '@typescript-eslint/no-unsafe-call': 'off',
103 '@typescript-eslint/no-unsafe-assignment': 'off'
109 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
112 files
: ['tests/**/*.js'],
114 'jsdoc/require-jsdoc': 'off'
118 files
: ['tests/pools/selection-strategies/**/*.js'],
120 'n/no-missing-require': 'off'
124 files
: ['benchmarks/**/*.js'],
126 'jsdoc/require-jsdoc': 'off'
130 files
: ['benchmarks/versus-external-pools/**/*.js'],
132 'n/no-missing-require': 'off'
136 files
: ['examples/**/*.js'],
138 'n/no-missing-require': 'off',
139 'jsdoc/require-jsdoc': 'off'