-
Notifications
You must be signed in to change notification settings - Fork 437
/
.eslintrc.json
44 lines (43 loc) · 1.56 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
// NOTE: if you have trouble with a rule not working install eslint as global
// then use `eslint --print-config out.txt` and check the output for problems
{
"env": {
"es6": true,
"node": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"rules": {
"semi": [2, "always"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"quotes": [2, "single", { "avoidEscape": true }],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"brace-style": [2, "stroustrup", { "allowSingleLine": false }],
"curly": ["error", "all"],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/array-type": ["error", {"default": "generic"}],
// these two rules are conflicting, I need some help solving this. I'll disable one for now
// "@typescript-eslint/typedef": ["error", { "variableDeclaration": true }],
"@typescript-eslint/no-inferrable-types": "error"
}
}