59f0a1133f6abd76bba4543c75dfa10e861409d9
2 const { defineConfig
} = require('eslint-define-config')
4 module
.exports
= defineConfig({
14 plugins
: ['promise', 'prettierx', 'jsdoc', 'spellcheck'],
18 'plugin:import/recommended',
19 'plugin:jsdoc/recommended',
20 'plugin:promise/recommended',
21 'plugin:prettierx/standardx'
29 ignoreMemberSort
: true,
30 ignoreDeclarationSort
: true
34 '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 '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']
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'