-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
90 lines (90 loc) · 2.05 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"root": true,
"plugins": [
"import",
"unused-imports",
"@typescript-eslint"
],
"extends": [
"esnext",
"node",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:import/warnings",
"plugin:import/errors"
],
"parser": "@typescript-eslint/parser",
"rules": {
"import/no-unresolved": "error",
"no-use-before-define": ["error", {"functions": false, "classes": false, "variables": false}],
"import/order": ["error", {
"groups": ["builtin", "external", ["internal", "parent", "sibling"], "index", "object", "type"]
}],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
],
"import/named": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-param-reassign": [
2,
{
"props": false
}
],
"no-underscore-dangle": 0,
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"prettier/prettier": ["error", {
"singleQuote": true,
"useTabs": true,
"tabWidth": 4,
"semi": true,
"jsxSingleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "auto",
"printWidth": 90
}]
},
"env": {
"jest": true,
"browser": true
},
"globals": {
"FileReader": true,
"window": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}