-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
110 lines (110 loc) · 2.87 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"env": {
"browser": true
},
"extends": ["airbnb", "prettier", "plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx", ".js", ".jsx"]
}
}
},
"rules": {
"arrow-parens": ["off"],
"arrow-spacing": "error",
"comma-dangle": ["error", "never"],
"comma-style": ["error", "last"],
"consistent-return": "off",
"constructor-super": "error",
"eol-last": ["warn", "always"],
"generator-star-spacing": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "error",
"import/prefer-default-export": "off",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"jsx-a11y/anchor-is-valid": "off",
"keyword-spacing": [
"error",
{
"after": true,
"before": true
}
],
"linebreak-style": ["error", "unix"],
"no-console": "error",
"no-const-assign": "error",
"no-multi-spaces": "error",
"no-await-in-loop": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}
],
"no-this-before-super": "warn",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unreachable": "warn",
"no-unused-vars": "off",
"no-use-before-define": "off",
"object-curly-spacing": ["warn", "always"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
"valid-typeof": "warn",
"babel/semi": [2, "never"],
"compat/compat": "error",
"promise/always-return": "off",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/param-names": "error",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".tsx", ".js", ".jsx"]
}
],
"react/destructuring-assignment": "off",
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-bind": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-unused-prop-types": "error",
"react/prefer-stateless-function": "off",
"react/sort-comp": [
"error",
{
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
}
],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-function-return-type": "off"
},
"plugins": ["import", "promise", "compat", "react", "babel", "@typescript-eslint"]
}