2 const { defineConfig
} = require('eslint-define-config')
4 module
.exports
= defineConfig({
10 plugins
: ['promise', 'prettierx', 'jsdoc', 'spellcheck'],
14 'plugin:import/recommended',
15 'plugin:jsdoc/recommended',
16 'plugin:promise/recommended',
17 'plugin:prettierx/standardx'
25 ignoreMemberSort
: true,
26 ignoreDeclarationSort
: true
30 'spellcheck/spell-checker': [
48 skipIfMatch
: ['^@.*', '^plugin:.*']
55 parser
: '@typescript-eslint/parser',
59 project
: './tsconfig.json'
61 plugins
: ['@typescript-eslint'],
63 'plugin:@typescript-eslint/eslint-recommended',
64 'plugin:@typescript-eslint/recommended',
65 'plugin:@typescript-eslint/recommended-requiring-type-checking',
66 'plugin:import/typescript'
69 // We have some intentionally empty functions
70 '@typescript-eslint/no-empty-function': 'off',
72 '@typescript-eslint/no-inferrable-types': [
74 { ignoreProperties
: true }
77 'no-useless-constructor': 'off',
79 'jsdoc/match-description': [
89 'jsdoc/no-types': 'error',
90 'jsdoc/require-jsdoc': [
95 'ClassProperty:not([accessibility=/(private|protected)/])',
96 'ExportNamedDeclaration:has(VariableDeclaration)',
98 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
100 'TSInterfaceDeclaration',
102 // 'TSPropertySignature',
103 'TSTypeAliasDeclaration'
107 'jsdoc/require-param-type': 'off',
108 'jsdoc/require-returns-type': 'off'
113 extends: 'plugin:node/recommended'
116 files
: ['tests/**/*.js'],
118 'jsdoc/require-jsdoc': 'off'
122 files
: ['benchmarks/**/*.js'],
124 'jsdoc/require-jsdoc': 'off'
128 files
: ['examples/**/*.js'],
130 'node/no-missing-require': 'off',
131 'jsdoc/require-jsdoc': 'off'