-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·62 lines (62 loc) · 1.77 KB
/
.eslintrc
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"env": {
"es2021": true,
"node": true
},
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["prettier", "@typescript-eslint", "import"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-shadow": "warn",
"import/extensions": "off",
"import/no-dynamic-require": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"lines-between-class-members": "off",
"import/no-cycle":"warn",
"no-param-reassign":"warn",
"global-require": "off",
"no-empty-function": "off",
"no-plusplus":"off",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"no-console": "off",
"no-shadow": "off",
"max-params": ["error", 3],
"no-restricted-syntax": "off",
"no-await-in-loop": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".d.ts", ".tsx"]
},
"import/extensions": [".js", ".jsx", ".tsx", ".ts"],
"import/resolver": {
"typescript": {
"moduleDirectory": ["node_modules", "src/", "bin/"],
"extensions": [".js", ".jsx", ".ts", ".d.ts", ".tsx"]
},
"node": {
"moduleDirectory": ["node_modules", "src/"],
"extensions": [".js", ".jsx", ".ts", ".d.ts", ".tsx"]
}
}
}
}