-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
57 lines (56 loc) · 2 KB
/
Copy path.eslintrc.json
File metadata and controls
57 lines (56 loc) · 2 KB
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
{
"root": true,
"ignorePatterns": ["dist", "node_modules"],
"parser": "@typescript-eslint/parser",
"plugins": [],
"parserOptions": {},
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": ["warn", "never"],
"array-element-newline": ["warn", "consistent"],
"computed-property-spacing": ["error", "never", { "enforceForClassMembers": true }],
"function-call-argument-newline": ["warn", "consistent"],
"function-paren-newline": ["warn", "consistent"],
"id-length": ["warn", { "min": 2 }],
"indent": ["warn", 2, {
"CallExpression": { "arguments": "first" },
// "FunctionDeclaration": { "body": 1, "parameters": 1 },
// "FunctionExpression": { "body": 1, "parameters": 2 },
"SwitchCase": 1
}],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"lines-between-class-members": "off",
"max-lines": [
"error",
{
"max": 500,
"skipBlankLines": true,
"skipComments": true
}
],
"newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 2 }],
"no-inline-comments": ["error"],
"object-curly-spacing": ["warn", "always", {
"arraysInObjects": false,
"objectsInObjects": false
}],
"object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }],
"quotes": ["error", "single"],
"quote-props": ["error", "consistent"],
"semi": "error",
"space-before-blocks": ["warn", "always"]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"rules": {
"@typescript-eslint/ban-ts-comment": "warn"
}
}
]
}