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': [
46 skipIfMatch
: ['^@.*', '^plugin:.*']
53 parser
: '@typescript-eslint/parser',
57 project
: './tsconfig.json'
59 plugins
: ['@typescript-eslint'],
61 'plugin:@typescript-eslint/eslint-recommended',
62 'plugin:@typescript-eslint/recommended',
63 'plugin:@typescript-eslint/recommended-requiring-type-checking',
64 'plugin:import/typescript'
67 // We have some intentionally empty functions
68 '@typescript-eslint/no-empty-function': 'off',
70 '@typescript-eslint/no-inferrable-types': [
72 { ignoreProperties
: true }
75 'no-useless-constructor': 'off',
77 'jsdoc/match-description': [
87 'jsdoc/no-types': 'error',
88 'jsdoc/require-jsdoc': [
93 'ClassProperty:not([accessibility=/(private|protected)/])',
94 'ExportNamedDeclaration:has(VariableDeclaration)',
96 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
98 'TSInterfaceDeclaration',
100 // 'TSPropertySignature',
101 'TSTypeAliasDeclaration'
105 'jsdoc/require-param-type': 'off',
106 'jsdoc/require-returns-type': 'off'
111 extends: 'plugin:node/recommended'
114 files
: ['tests/**/*.js'],
116 'jsdoc/require-jsdoc': 'off'
120 files
: ['benchmarks/**/*.js'],
122 'jsdoc/require-jsdoc': 'off'
126 files
: ['examples/**/*.js'],
128 'node/no-missing-require': 'off',
129 'jsdoc/require-jsdoc': 'off'