-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (47 loc) · 1.14 KB
/
.eslintrc.js
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
38
39
40
41
42
43
44
45
46
47
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
rules: {
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': ['error'],
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
tsx: 'never',
},
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-console": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" , "destructuredArrayIgnorePattern": "^_"}],
"operator-linebreak": ["error", "after"],
"@typescript-eslint/no-namespace": "off",
"no-return-assign": "off",
"class-methods-use-this": ["error", { "exceptMethods": ["build", "generate"] }],
"@typescript-eslint/no-empty-interface": "off",
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true
},
},
},
};