+ files: ['**/*.ts'],
+ parser: '@typescript-eslint/parser',
+ parserOptions: {
+ project: './tsconfig.json'
+ },
+ plugins: ['@typescript-eslint'],
+ extends: [
+ 'plugin:@typescript-eslint/eslint-recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
+ 'plugin:import/typescript'
+ ],
+ rules: {
+ // We have some intentionally empty functions
+ '@typescript-eslint/no-empty-function': 'off',
+
+ '@typescript-eslint/no-inferrable-types': [
+ 'error',
+ { ignoreProperties: true }
+ ],
+
+ 'no-useless-constructor': 'off',
+
+ 'jsdoc/match-description': [
+ 'warn',
+ {
+ contexts: ['any'],
+ tags: {
+ param: true,
+ returns: true
+ }
+ }
+ ],
+ 'jsdoc/no-types': 'error',
+ 'jsdoc/require-jsdoc': [
+ 'warn',
+ {
+ contexts: [
+ 'ClassDeclaration',
+ 'ClassProperty:not([accessibility=/(private|protected)/])',
+ 'ExportNamedDeclaration:has(VariableDeclaration)',
+ 'FunctionExpression',
+ 'MethodDefinition:not([accessibility=/(private|protected)/]) > FunctionExpression',
+ 'TSEnumDeclaration',
+ 'TSInterfaceDeclaration',
+ 'TSMethodSignature',
+ // 'TSPropertySignature',
+ 'TSTypeAliasDeclaration'
+ ]
+ }
+ ],
+ 'jsdoc/require-param-type': 'off',
+ 'jsdoc/require-returns-type': 'off'
+ }
+ },
+ {
+ files: ['**/*.js'],
+ extends: 'plugin:node/recommended'
+ },
+ {
+ files: ['tests/**/*.js'],