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': [
70 skipIfMatch
: ['^@.*', '^plugin:.*']
77 parser
: '@typescript-eslint/parser',
79 project
: './tsconfig.json'
81 plugins
: ['@typescript-eslint'],
83 'plugin:@typescript-eslint/eslint-recommended',
84 'plugin:@typescript-eslint/recommended',
85 'plugin:@typescript-eslint/recommended-requiring-type-checking',
86 'standard-with-typescript',
87 'plugin:import/typescript'
90 // We have some intentionally empty functions
91 '@typescript-eslint/no-empty-function': 'off',
93 '@typescript-eslint/no-inferrable-types': [
95 { ignoreProperties
: true }
98 'no-useless-constructor': 'off',
100 'jsdoc/match-description': [
110 'jsdoc/no-types': 'error',
111 'jsdoc/require-jsdoc': [
116 'ClassProperty:not([accessibility=/(private|protected)/])',
117 'ExportNamedDeclaration:has(VariableDeclaration)',
118 'FunctionExpression',
119 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
121 'TSInterfaceDeclaration',
123 // 'TSPropertySignature',
124 'TSTypeAliasDeclaration'
128 'jsdoc/require-param-type': 'off',
129 'jsdoc/require-returns-type': 'off'
133 files
: ['examples/typescript/**/*.ts'],
135 'import/no-unresolved': 'off',
136 'jsdoc/require-jsdoc': 'off',
137 '@typescript-eslint/no-unsafe-argument': 'off',
138 '@typescript-eslint/no-unsafe-call': 'off',
139 '@typescript-eslint/no-unsafe-assignment': 'off'
144 extends: ['plugin:n/recommended', 'standard']
147 files
: ['tests/**/*.js'],
149 'jsdoc/require-jsdoc': 'off'
153 files
: ['tests/pools/selection-strategies/**/*.js'],
155 'n/no-missing-require': 'off'
159 files
: ['benchmarks/**/*.js'],
161 'jsdoc/require-jsdoc': 'off'
165 files
: ['benchmarks/versus-external-pools/**/*.js'],
167 'n/no-missing-require': 'off'
171 files
: ['examples/**/*.js'],
173 'n/no-missing-require': 'off',
174 'jsdoc/require-jsdoc': 'off'