f9453f90f5dd8825e45180a5f8b61004689ff444
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': [
59 skipIfMatch
: ['^@.*', '^plugin:.*']
66 parser
: '@typescript-eslint/parser',
68 project
: './tsconfig.json'
70 plugins
: ['@typescript-eslint'],
72 'plugin:@typescript-eslint/eslint-recommended',
73 'plugin:@typescript-eslint/recommended',
74 'plugin:@typescript-eslint/recommended-requiring-type-checking',
75 'plugin:import/typescript'
78 // We have some intentionally empty functions
79 '@typescript-eslint/no-empty-function': 'off',
81 '@typescript-eslint/no-inferrable-types': [
83 { ignoreProperties
: true }
86 'no-useless-constructor': 'off',
88 'jsdoc/match-description': [
98 'jsdoc/no-types': 'error',
99 'jsdoc/require-jsdoc': [
104 'ClassProperty:not([accessibility=/(private|protected)/])',
105 'ExportNamedDeclaration:has(VariableDeclaration)',
106 'FunctionExpression',
107 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
109 'TSInterfaceDeclaration',
111 // 'TSPropertySignature',
112 'TSTypeAliasDeclaration'
116 'jsdoc/require-param-type': 'off',
117 'jsdoc/require-returns-type': 'off'
122 extends: 'plugin:node/recommended'
125 files
: ['tests/**/*.js'],
127 'jsdoc/require-jsdoc': 'off'
131 files
: ['tests/pools/selection-strategies/**/*.js'],
133 'node/no-missing-require': 'off'
137 files
: ['benchmarks/**/*.js'],
139 'jsdoc/require-jsdoc': 'off'
143 files
: ['examples/**/*.js'],
145 'node/no-missing-require': 'off',
146 'jsdoc/require-jsdoc': 'off'