-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
37 lines (37 loc) · 853 Bytes
/
.eslintrc.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
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
env: {
es2021: true,
node: true,
},
rules: {
'no-var': 'error',
semi: 'error',
indent: ['error', 2, { SwitchCase: 1 }],
'no-multi-spaces': 'error',
'space-in-parens': 'error',
'no-multiple-empty-lines': 'error',
'prefer-const': 'error',
},
overrides: [
{
files: [
'**/*.test.ts',
],
env: {
jest: true,
},
plugins: ['jest'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': ["error", {types: {Function: 'false'}, extendDefaults: true}],
}
}
]
};