-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase-typescript.js
50 lines (49 loc) · 1.35 KB
/
base-typescript.js
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
module.exports = {
"parser": "@typescript-eslint/parser",
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
],
"plugins": ["@typescript-eslint", "standard"],
"parserOptions": {
"sourceType": "module",
},
"env": {
"es6": true,
"node": true,
},
"rules": {
"generator-star-spacing": ["error", "after"],
"max-len": ["error", { "code": 120 }],
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": ["error", "never"],
"operator-linebreak": ["error", "before"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/member-delimiter-style": ["error", { "multiline": { "delimiter": "none" } }],
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-unused-vars": "error",
"react/display-name": "off",
"react/prop-types": "off",
"import/named": "warn",
},
"globals": {
"describe": true,
"test": true,
"expect": true,
"it": true,
"cy": true,
"beforeEach": true,
"context": true,
"jest": true,
"fetch": true,
},
"settings": {
"react": {
"version": "16.7",
},
},
}