-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc
28 lines (28 loc) · 950 Bytes
/
.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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error"],
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 4, {"SwitchCase": 1}],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}],
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["context"] } ],
"prefer-destructuring": ["error"],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"prefer-template": ["error"],
"quote-props": ["error", "consistent-as-needed"],
"quotes": ["error", "single"]
}
}