-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
95 lines (95 loc) · 3.8 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "@stylistic/js", "@stylistic/ts", "react", "import"],
"root": true,
"settings": {
"import/extensions": [".js", ".jsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": ["tsconfig.json"]
},
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"@stylistic/js/array-bracket-newline": ["error", "consistent"],
"@stylistic/js/array-bracket-spacing": ["error", "never"],
"@stylistic/js/array-element-newline": ["error", "consistent"],
"@stylistic/js/arrow-parens": "error",
"@stylistic/js/arrow-spacing": ["error", { "before": true, "after": true }],
"@stylistic/js/dot-location": ["error", "property"],
"@stylistic/js/eol-last": "error",
"@stylistic/js/function-call-argument-newline": ["error", "consistent"],
"@stylistic/js/implicit-arrow-linebreak": ["error", "beside"],
"@stylistic/js/jsx-quotes": ["error", "prefer-double"],
"@stylistic/js/linebreak-style": ["error", "unix"],
"@stylistic/js/max-len": ["error", 120],
"@stylistic/js/no-extra-parens": ["error", "functions"],
"@stylistic/js/no-extra-semi": "error",
"@stylistic/js/no-mixed-operators": [
"error", {
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["&&", "||"]
]
}
],
"@stylistic/js/no-multi-spaces": "error",
"@stylistic/js/no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"@stylistic/js/no-tabs": "error",
"@stylistic/js/no-trailing-spaces": "error",
"@stylistic/js/no-whitespace-before-property": "error",
"@stylistic/js/operator-linebreak": ["error", "after"],
"@stylistic/js/quote-props": ["error", "as-needed"],
"@stylistic/js/rest-spread-spacing": ["error", "never"],
"@stylistic/js/semi-spacing": ["error", { "before": false, "after": true }],
"@stylistic/js/space-before-blocks": "error",
"@stylistic/js/space-in-parens": ["error", "never"],
"@stylistic/js/spaced-comment": "error",
"@stylistic/ts/block-spacing": "error",
"@stylistic/ts/brace-style": ["error", "1tbs"],
"@stylistic/ts/comma-dangle": ["error", "never"],
"@stylistic/ts/comma-spacing": ["error", { "before": false, "after": true }],
"@stylistic/ts/function-call-spacing": ["error", "never"],
"@stylistic/ts/indent": ["error", 2],
"@stylistic/ts/key-spacing": ["error", { "mode": "strict", "beforeColon": false, "afterColon": true }],
"@stylistic/ts/keyword-spacing": ["error", { "before": true, "after": true }],
"@stylistic/ts/lines-between-class-members": [
"error", {
"enforce": [
{ "blankLine": "always", "prev": "*", "next": "method" },
{ "blankLine": "always", "prev": "method", "next": "*" }
]
}
],
"@stylistic/ts/object-curly-spacing": ["error", "always", { "arraysInObjects": true, "objectsInObjects": false }],
"@stylistic/ts/quotes": ["error", "single"],
"@stylistic/ts/semi": ["error", "always"],
"@stylistic/ts/space-before-blocks": "error",
"@stylistic/ts/space-before-function-paren": ["error", "never"],
"@stylistic/ts/space-infix-ops": ["error", { "int32Hint": true }],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
"newlines-between": "always",
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
}
}
]
}
}