-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslint.base.json
134 lines (130 loc) · 3.66 KB
/
.eslint.base.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
133
134
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["**/dist/**/*.js", "**/node_modules/**/*.{js,ts,tsx}"],
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": 2,
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-spacing": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [
"error",
{
"before": true,
"after": true,
"overrides": {
"return": { "after": true },
"throw": { "after": true },
"case": { "after": true }
}
}
],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-console": [2, { "allow": ["info", "error"] }],
"no-trailing-spaces": ["error"],
"object-curly-spacing": "off",
"prefer-const": ["error"],
"quotes": ["error", "single"],
"semi": ["off"],
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"eol-last": ["error", "always"],
"import/namespace": [0],
"import/no-anonymous-default-export": "off",
"import/no-unresolved": [0],
"import/named": [0],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "index", "parent", "sibling"],
"pathGroups": [
{
"pattern": "types",
"group": "builtin",
"position": "before"
}
]
}
],
"jsx-a11y/anchor-is-valid": [0],
"react/jsx-tag-spacing": 2,
"react/jsx-pascal-case": [0],
"react/self-closing-comp": [
"error",
{
"component": true,
"html": true
}
],
"react-hooks/exhaustive-deps": 0,
"@typescript-eslint/explicit-module-boundary-types": [0],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/indent": [
"error",
2,
{
"SwitchCase": 1,
"ObjectExpression": 1,
"MemberExpression": 1,
"CallExpression": {
"arguments": 1
},
"ignoredNodes": [
"PropertyDefinition[decorators]",
"TSUnionType",
"FunctionExpression[params]",
"CallExpression[arguments]"
]
}
],
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/explicit-function-return-type": [0],
"@typescript-eslint/explicit-member-accessibility": [0],
"@typescript-eslint/no-empty-interface": [0],
"@typescript-eslint/prefer-interface": [0],
"@typescript-eslint/no-use-before-define": [0],
"@typescript-eslint/no-object-literal-type-assertion": [0],
"@typescript-eslint/no-parameter-properties": [0],
"@typescript-eslint/no-non-null-assertion": [0],
"@typescript-eslint/camelcase": [0],
"@typescript-eslint/no-redeclare": 0,
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/object-curly-spacing": ["error", "always"]
}
}