-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
executable file
·101 lines (101 loc) · 2.32 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"env": {
"es6": true,
"node": true
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"rules": {
"no-var": "error",
"one-var": [2, "never"],
"prefer-const": "error",
"no-duplicate-imports": "error",
"no-self-compare": "error",
"no-use-before-define": "error",
"semi": "warn",
"curly": "warn",
"indent": [
"off",
2,
{
"MemberExpression": 1,
"SwitchCase": 1,
"ignoredNodes": [
"FunctionExpression > .params[decorators.length > 0]",
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
]
}
],
"newline-per-chained-call": "off",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": "warn",
"space-in-parens": "warn",
"no-trailing-spaces": "warn",
"array-element-newline": [
"warn",
{
"ArrayExpression": "consistent",
"ArrayPattern": {
"minItems": 5
}
}
],
"arrow-spacing": "warn",
"key-spacing": [
"warn",
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [
"warn",
{
"before": true,
"after": true
}
],
"new-parens": ["warn", "always"],
"padding-line-between-statements": [
"warn",
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"rest-spread-spacing": ["warn", "never"],
"quotes": ["off"],
"template-curly-spacing": ["warn", "never"],
"prettier/prettier": [
"warn",
{
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"bracketSpacing": true,
"semi": true,
"useTabs": false,
"arrowParens": "always",
"printWidth": 120
}
]
}
}