2 const { defineConfig
} = require('eslint-define-config')
4 module
.exports
= defineConfig({
10 parser
: '@typescript-eslint/parser',
14 warnOnUnsupportedTypeScriptVersion
: false
26 'plugin:import/errors',
27 'plugin:import/warnings',
28 'plugin:promise/recommended',
29 'plugin:prettierx/standardx'
37 ignoreMemberSort
: true,
38 ignoreDeclarationSort
: true
42 'spellcheck/spell-checker': [
58 skipIfMatch
: ['^@.*', '^plugin:.*']
66 'plugin:jsdoc/recommended',
67 'plugin:@typescript-eslint/recommended',
68 'plugin:import/typescript'
71 // We have some intentionally empty functions
72 '@typescript-eslint/no-empty-function': 'off',
74 '@typescript-eslint/no-inferrable-types': [
76 { ignoreProperties
: true }
79 'no-useless-constructor': 'off',
81 'jsdoc/match-description': [
85 '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us',
86 matchDescription
: '^[A-Z`].+(\\.|`.+`)$',
94 'jsdoc/no-types': 'error',
95 'jsdoc/require-jsdoc': [
100 'ClassProperty:not([accessibility=/(private|protected)/])',
101 'ExportNamedDeclaration:has(VariableDeclaration)',
102 'FunctionExpression',
103 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
105 'TSInterfaceDeclaration',
107 // 'TSPropertySignature',
108 'TSTypeAliasDeclaration'
112 'jsdoc/require-param-type': 'off',
113 'jsdoc/require-returns-type': 'off'
118 extends: 'plugin:node/recommended'
121 files
: ['examples/typescript/**/*.ts'],
123 'import/no-unresolved': 'off',
124 'jsdoc/require-jsdoc': 'off'
128 files
: ['examples/**/*.js'],
130 'node/no-missing-require': 'off'