-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
78 lines (78 loc) · 2.78 KB
/
.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
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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:promise/recommended",
"airbnb"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": false },
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"env": {
"node": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json"]
}
}
},
"rules": {
"no-var": "error",
"no-tabs": "error",
"comma-spacing": "error",
"no-multi-spaces": "error",
"space-before-blocks": "error",
"semi": ["error", "never"],
"quotes": ["error", "double"],
"comma-dangle": ["error", "never"],
"indent": ["error", 2, {"SwitchCase": 1}],
"arrow-spacing": ["error", { "before": true, "after": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }],
"import/prefer-default-export": "off",
"@typescript-eslint/no-unsafe-return": "off",// VERC: changed warn -> off
"@typescript-eslint/no-unsafe-argument": "off",// VERC: changed warn -> off
"@typescript-eslint/no-unsafe-assignment": "off", // VERC: changed warn -> off
"@typescript-eslint/no-non-null-assertion": "off", /// VERC: changed warn -> off
"@typescript-eslint/no-unsafe-member-access": "off", // VERC: changed warn -> off
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/ban-ts-comment": "off", // VERC: Added to pass legacy build intigrations
"@typescript-eslint/no-explicit-any": "off",// VERC: Added to pass legacy build intigrations
"@typescript-eslint/no-unsafe-call": "off", // VERC: Added to pass legacy build intigrations
"@typescript-eslint/no-unused-vars": "off", // VERC: Added to pass legacy build intigrations
"@typescript-eslint/ban-types": "off", // VERC: Added to pass legacy build intigrations
"object-curly-spacing": ["error", "always"],
"lines-around-directive": "off",
"no-use-before-define": "off",
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"object-curly-newline": "off",
"default-param-last": "off",
"import/extensions": "off",
"arrow-body-style": "off",
"linebreak-style": "off",
"no-unused-vars": "off",
"default-case": "off",
"no-console": "off",
"max-len": "off"
},
"overrides": [
{
"files": ["tests/**/*"],
"env": {
"jest": true
}
}
]
}