-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
132 lines (132 loc) · 3.27 KB
/
.eslintrc.json
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-hooks", "@typescript-eslint", "eslint-plugin-import-helpers"],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"globals": {
"importScripts": true
},
"rules": {
"import-helpers/order-imports": [
"warn",
{
"groups": [["absolute", "module"], "/^types/", "/^api/", "/^hooks/", "/^pages/", "/^components/", "/^assets/", ["sibling", "parent", "index"]],
"newlinesBetween": "always",
"alphabetize": { "order": "asc", "ignoreCase": true }
}
],
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"arrow-spacing": "error",
"block-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"comma-spacing": "error",
"comma-style": ["error", "last"],
"endOfLine": "off",
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": ["error", "always"],
"func-call-spacing": "error",
"guard-for-in": "off",
"jsx-a11y/accessible-emoji": "off",
"keyword-spacing": "error",
"linebreak-style": "off",
"max-len": [
"error",
{
"tabWidth": 2,
"code": 1000,
"comments": 160,
"ignoreComments": false,
"ignoreTrailingComments": false
}
],
"no-console": "warn",
"no-empty-function": [
"error",
{
"allow": ["arrowFunctions"]
}
],
"no-implicit-coercion": "error",
"no-invalid-this": "off",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-unneeded-ternary": "error",
"no-useless-computed-key": "off",
"no-useless-return": "error",
"no-whitespace-before-property": "error",
"prettier/prettier": "warn",
"quote-props": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-sort-props": [
"error",
{
"noSortAlphabetically": false,
"ignoreCase": true
}
],
"react-hooks/rules-of-hooks": "error",
"react/prop-types": "off",
"require-jsdoc": "off",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"asyncArrow": "always",
"named": "never"
}
]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "."
}
},
"react": {
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
},
"linkComponents": [
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
}
]
}
}