-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc
77 lines (77 loc) · 2.19 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": "airbnb",
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"globals": {
"it": true,
"expect": true,
"describe": true,
"jest": true,
"document": true,
"test": true,
"window": true,
"getComputedStyle": true,
"fetch": true,
"WebSocket": true,
"alert": true,
"URLSearchParams": true,
"React": true
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"function-paren-newline": ["error", "consistent"],
"import/prefer-default-export": 0,
"jsx-quotes": ["error", "prefer-single"],
"no-console": 0,
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"object-curly-newline": ["error", {
"ObjectExpression": { "minProperties": 1 },
"ObjectPattern": { "multiline": true },
"ImportDeclaration": { "minProperties": 6 },
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
}],
"quote-props": ["error", "consistent"],
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0, // Soft requirement now, try hard requ in future
"react/jsx-boolean-value": [1, "always"],
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": [1, "multiline"],
"react/jsx-max-props-per-line": [1, { "when": "multiline" }],
"react/no-multi-comp": 0, // Soft requirement now, try hard requ in future
"react/prefer-stateless-function": 0, // Soft requirement now, try hard requ in future
"react/no-find-dom-node": 0,
"react/prop-types": 0,
"react/react-in-jsx-scope":0,
"react/sort-comp": 0,
"react/no-array-index-key": 0,
"import/no-extraneous-dependencies": 0,
"no-alert": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}