-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
68 lines (68 loc) · 2.02 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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"airbnb-base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
//"project": "./tsconfig.json" // bad performance
},
"plugins": [
"@typescript-eslint",
"prettier"
],
// overwrite rules on "extends"
"rules": {
"prettier/prettier": [
// "warn", {
// "singleQuote": true
// //"bracketSpacing": false
// },
"error", {
"singleQuote": true,
"usePrettierrc": false
}
],
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"import/prefer-default-export": "off",
"import/newline-after-import": "off",
"object-shorthand": "off",
"no-console": "off",
"no-unexpected-multiline": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"prefer-destructuring": "off",
//"array-bracket-spacing": ["error", "always", { "singleValue": true, "arraysInArrays": false }],
"block-spacing": ["error", "always"],
"brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": [ 1, "last" ],
"no-param-reassign": [2, { "props": false }],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}