-
Notifications
You must be signed in to change notification settings - Fork 48
/
.eslintrc.json
35 lines (35 loc) · 1.08 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"eol-last": "error",
"@typescript-eslint/indent": [
"error",
2
],
"no-tabs": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-extra-semi": 2,
"prefer-const": "error",
"@typescript-eslint/object-curly-spacing": [ "error", "always", { "arraysInObjects": false, "objectsInObjects": false }],
"array-bracket-spacing": ["error", "never"],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"no-return-await": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-empty-function": "warn",
"no-empty": "warn"
}
}