2 const { defineConfig
} = require('eslint-define-config')
4 module
.exports
= defineConfig({
10 parser
: '@typescript-eslint/parser',
14 warnOnUnsupportedTypeScriptVersion
: false
26 'plugin:@typescript-eslint/recommended',
27 'plugin:import/errors',
28 'plugin:import/warnings',
29 'plugin:import/typescript',
30 'plugin:promise/recommended',
31 'plugin:prettierx/standardx'
36 // We have some intentionally empty functions
37 '@typescript-eslint/no-empty-function': 'off',
39 '@typescript-eslint/no-inferrable-types': [
41 { ignoreProperties
: true }
47 ignoreMemberSort
: true,
48 ignoreDeclarationSort
: true
52 'spellcheck/spell-checker': [
68 skipIfMatch
: ['^@.*', '^plugin:.*']
74 files
: ['src/**/*.ts'],
75 extends: 'plugin:jsdoc/recommended',
77 'no-useless-constructor': 'off',
79 'jsdoc/match-description': [
83 '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us',
84 matchDescription
: '^[A-Z`].+(\\.|`.+`)$',
92 'jsdoc/no-types': 'error',
93 'jsdoc/require-jsdoc': [
98 'ClassProperty:not([accessibility=/(private|protected)/])',
99 'ExportNamedDeclaration:has(VariableDeclaration)',
100 'FunctionExpression',
101 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
103 'TSInterfaceDeclaration',
105 // 'TSPropertySignature',
106 'TSTypeAliasDeclaration'
110 'jsdoc/require-param-type': 'off',
111 'jsdoc/require-returns-type': 'off'
116 extends: 'plugin:node/recommended',
118 '@typescript-eslint/no-unused-vars': 'off',
119 '@typescript-eslint/no-var-requires': 'off'
123 files
: ['examples/typescript/**/*.ts'],
125 'import/no-unresolved': 'off'
129 files
: ['examples/**/*.js'],
131 'node/no-missing-require': 'off'