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': [
56 skipIfMatch
: ['^@.*', '^plugin:.*']
63 parser
: '@typescript-eslint/parser',
65 project
: './tsconfig.json'
67 plugins
: ['@typescript-eslint'],
69 'plugin:@typescript-eslint/eslint-recommended',
70 'plugin:@typescript-eslint/recommended',
71 'plugin:@typescript-eslint/recommended-requiring-type-checking',
72 'plugin:import/typescript'
75 // We have some intentionally empty functions
76 '@typescript-eslint/no-empty-function': 'off',
78 '@typescript-eslint/no-inferrable-types': [
80 { ignoreProperties
: true }
83 'no-useless-constructor': 'off',
85 'jsdoc/match-description': [
95 'jsdoc/no-types': 'error',
96 'jsdoc/require-jsdoc': [
101 'ClassProperty:not([accessibility=/(private|protected)/])',
102 'ExportNamedDeclaration:has(VariableDeclaration)',
103 'FunctionExpression',
104 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
106 'TSInterfaceDeclaration',
108 // 'TSPropertySignature',
109 'TSTypeAliasDeclaration'
113 'jsdoc/require-param-type': 'off',
114 'jsdoc/require-returns-type': 'off'
119 extends: 'plugin:node/recommended'
122 files
: ['tests/**/*.js'],
124 'jsdoc/require-jsdoc': 'off'
128 files
: ['tests/pools/selection-strategies/**/*.js'],
130 'node/no-missing-require': 'off'
134 files
: ['benchmarks/**/*.js'],
136 'jsdoc/require-jsdoc': 'off'
140 files
: ['examples/**/*.js'],
142 'node/no-missing-require': 'off',
143 'jsdoc/require-jsdoc': 'off'