-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
87 lines (87 loc) · 2.45 KB
/
.eslintrc.cjs
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
module.exports = {
env: {
"browser": true,
"node": true
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
parser: "@typescript-eslint/parser",
parserOptions: {
"parser": "babel-eslint"
},
plugins: [
"@typescript-eslint",
"import",
"sort-keys-custom-order"
],
root: true,
rules: {
"@typescript-eslint/member-delimiter-style": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error"],
"array-bracket-spacing": ["error", "never"],
"arrow-spacing": ["error"],
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error"],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"import/order": ["error"],
"indent": ["error", 4],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"no-multi-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
"prefer-template": "error",
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"sort-keys-custom-order/object-keys": ["error", {
"orderedKeys": [
"id",
"_id",
"name",
"title",
"type",
"start",
"end",
"input",
"inputs",
"output",
"outputs",
"methods",
"in_exec",
"out_exec"
]
}],
"sort-keys-custom-order/type-keys": ["error", {
"orderedKeys": [
"id",
"_id",
"name",
"title",
"type"
]
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"template-curly-spacing": ["error", "always"]
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"alias": {
"extensions": [".js", ".ts"],
map: [
["@", "./src"]
]
},
"typescript": {}
}
}
};