-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheslintrc.config.cjs
37 lines (36 loc) · 981 Bytes
/
eslintrc.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// @ts-check
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
root: true,
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
},
overrides: [
{
extends: ['plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint', 'import', 'tsdoc'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
files: ['*.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'tsdoc/syntax': 'warn',
},
},
{
files: ['test', '__test__', '*.{spec,test}.ts'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'tsdoc/syntax': 'off',
},
},
],
ignorePatterns: ['dist'],
});