bd39bc7e71117b77a99f34f7304123678bd73c27
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': [
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 'plugin:import/typescript'
88 // We have some intentionally empty functions
89 '@typescript-eslint/no-empty-function': 'off',
91 '@typescript-eslint/no-inferrable-types': [
93 { ignoreProperties
: true }
96 'no-useless-constructor': 'off',
98 'jsdoc/match-description': [
108 'jsdoc/no-types': 'error',
109 'jsdoc/require-jsdoc': [
114 'ClassProperty:not([accessibility=/(private|protected)/])',
115 'ExportNamedDeclaration:has(VariableDeclaration)',
116 'FunctionExpression',
117 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
119 'TSInterfaceDeclaration',
121 // 'TSPropertySignature',
122 'TSTypeAliasDeclaration'
126 'jsdoc/require-param-type': 'off',
127 'jsdoc/require-returns-type': 'off'
131 files
: ['examples/typescript/**/*.ts'],
133 'import/no-unresolved': 'off',
134 'jsdoc/require-jsdoc': 'off',
135 '@typescript-eslint/no-unsafe-argument': 'off',
136 '@typescript-eslint/no-unsafe-call': 'off',
137 '@typescript-eslint/no-unsafe-assignment': 'off'
142 extends: 'plugin:node/recommended'
145 files
: ['tests/**/*.js'],
147 'jsdoc/require-jsdoc': 'off'
151 files
: ['tests/pools/selection-strategies/**/*.js'],
153 'node/no-missing-require': 'off'
157 files
: ['benchmarks/**/*.js'],
159 'jsdoc/require-jsdoc': 'off'
163 files
: ['examples/**/*.js'],
165 'node/no-missing-require': 'off',
166 'jsdoc/require-jsdoc': 'off'