-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy path.eslintrc.json
130 lines (130 loc) · 2.88 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
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
{
"env": {
"es2017": true,
"mocha": true,
"node": true
},
"extends": [
"standard",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"chai-friendly"
],
"ignorePatterns": ["lib/**/*"],
"rules": {
"brace-style": [
"error",
"stroustrup",
{
"allowSingleLine": true
}
],
"camelcase": "off",
"comma-dangle": [
"error",
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}
],
"curly": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"indent": "off",
"@typescript-eslint/indent": [
"error",
2,
{
"ArrayExpression": "first",
"CallExpression": { "arguments": "off" },
"FunctionDeclaration": { "parameters": "off" },
"FunctionExpression": { "parameters": "off" },
"ignoreComments": true,
"ignoredNodes": [
"ClassProperty[value]",
"NewExpression[arguments] :expression *",
"TSUnionType"
],
"ObjectExpression": "first",
"SwitchCase": 1
}
],
"guard-for-in": "error",
"key-spacing": "off",
"multiline-ternary": "off",
"no-control-regex": "off",
"no-empty": "off",
"no-labels": "off",
"no-mixed-operators": "off",
"no-multi-spaces": "off",
"no-new": "off",
"no-return-assign": "off",
"no-unexpected-multiline": "off",
"no-unused-expressions": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"chai-friendly/no-unused-expressions": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": false,
"vars": "all"
}
],
"object-curly-newline": "off",
"object-property-newline": "off",
"one-var": "off",
"operator-linebreak": "off",
"semi": [
"error",
"never"
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"yoda": [
"error",
"never",
{
"exceptRange": true
}
]
},
"overrides": [
{
"files": ["*.js", "*.cjs"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
]
}