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': [
68 skipIfMatch
: ['^@.*', '^plugin:.*']
75 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
76 parser
: '@typescript-eslint/parser',
78 project
: './tsconfig.json'
81 'plugin:@typescript-eslint/eslint-recommended',
82 'plugin:@typescript-eslint/recommended',
83 'plugin:@typescript-eslint/recommended-requiring-type-checking',
84 'plugin:import/typescript',
85 'standard-with-typescript'
88 '@typescript-eslint/no-inferrable-types': [
90 { ignoreProperties
: true }
92 'tsdoc/syntax': 'error'
96 files
: ['examples/typescript/**/*.ts'],
98 'import/no-unresolved': 'off',
99 '@typescript-eslint/no-unsafe-argument': 'off',
100 '@typescript-eslint/no-unsafe-call': 'off',
101 '@typescript-eslint/no-unsafe-assignment': 'off'
107 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
110 files
: ['tests/**/*.js'],
112 'jsdoc/require-jsdoc': 'off'
116 files
: ['tests/pools/selection-strategies/**/*.js'],
118 'n/no-missing-require': 'off'
122 files
: ['benchmarks/**/*.js'],
124 'jsdoc/require-jsdoc': 'off'
128 files
: ['benchmarks/versus-external-pools/**/*.js'],
130 'n/no-missing-require': 'off'
134 files
: ['examples/**/*.js'],
136 'n/no-missing-require': 'off',
137 'jsdoc/require-jsdoc': 'off'