forked from PolyProgrammist/tlb-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
65 lines (63 loc) · 1.28 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
{
"extends": [
"react-app"
],
"plugins": [
"prettier",
"simple-import-sort"
],
"rules": {
"quotes": [
"error",
"single",
{ "avoidEscape": true }
],
"prettier/prettier": ["error", {"singleQuote": true, "semi": true, "useTabs": true}],
"no-trailing-spaces": "error",
"object-curly-spacing": [
"error",
"always"
],
"block-spacing": "error",
"no-var": "error",
"keyword-spacing": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages. `react` related packages come first.
["^react$"],
// Packages
["^\\w", "^@"],
// Side effect imports.
["^\\u0000"],
// Frontend root imports
["^(@/)"],
// Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports.
["^.+\\.s?css$"]
]
}
],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 1
}
],
"eol-last": [
"error",
"always"
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off"
}
}