2 const { defineConfig
} = require('eslint-define-config')
4 module
.exports
= defineConfig({
15 plugins
: ['promise', 'jsdoc', 'spellcheck'],
18 'plugin:import/recommended',
19 'plugin:jsdoc/recommended',
20 'plugin:promise/recommended'
28 ignoreMemberSort
: true,
29 ignoreDeclarationSort
: true
33 'spellcheck/spell-checker': [
69 skipIfMatch
: ['^@.*', '^plugin:.*']
76 parser
: '@typescript-eslint/parser',
78 project
: './tsconfig.json'
80 plugins
: ['@typescript-eslint'],
82 'plugin:@typescript-eslint/eslint-recommended',
83 'plugin:@typescript-eslint/recommended',
84 'plugin:@typescript-eslint/recommended-requiring-type-checking',
85 'standard-with-typescript',
86 'plugin:import/typescript'
89 // We have some intentionally empty functions
90 '@typescript-eslint/no-empty-function': 'off',
92 '@typescript-eslint/no-inferrable-types': [
94 { ignoreProperties
: true }
97 'no-useless-constructor': 'off',
99 'jsdoc/match-description': [
109 'jsdoc/no-types': 'error',
110 'jsdoc/require-jsdoc': [
115 'ClassProperty:not([accessibility=/(private|protected)/])',
116 'ExportNamedDeclaration:has(VariableDeclaration)',
117 'FunctionExpression',
118 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
120 'TSInterfaceDeclaration',
122 // 'TSPropertySignature',
123 'TSTypeAliasDeclaration'
127 'jsdoc/require-param-type': 'off',
128 'jsdoc/require-returns-type': 'off'
132 files
: ['examples/typescript/**/*.ts'],
134 'import/no-unresolved': 'off',
135 'jsdoc/require-jsdoc': 'off',
136 '@typescript-eslint/no-unsafe-argument': 'off',
137 '@typescript-eslint/no-unsafe-call': 'off',
138 '@typescript-eslint/no-unsafe-assignment': 'off'
143 extends: ['plugin:n/recommended', 'standard']
146 files
: ['tests/**/*.js'],
148 'jsdoc/require-jsdoc': 'off'
152 files
: ['tests/pools/selection-strategies/**/*.js'],
154 'n/no-missing-require': 'off'
158 files
: ['benchmarks/**/*.js'],
160 'jsdoc/require-jsdoc': 'off'
164 files
: ['benchmarks/versus-external-pools/**/*.js'],
166 'n/no-missing-require': 'off'
170 files
: ['examples/**/*.js'],
172 'n/no-missing-require': 'off',
173 'jsdoc/require-jsdoc': 'off'