-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
70 lines (70 loc) · 2.15 KB
/
.eslintrc.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
"env": {
"browser": true,
"es2021": true,
es6: true,
node: true,
jest: true,
},
"extends": [
"standard-with-typescript",
"plugin:react/recommended",
"prettier"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": [
"./tsconfig.json",
"./packages/hippy_ui_react/tsconfig.json",
"./packages/hippy_ui_react_business/tsconfig.json",
"./example/tsconfig.json",
]
},
"plugins": [
"react",
"prettier"
],
settings: {
react: {
version: "detect"
}
},
"rules": {
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/ban-types": "off",
'@typescript-eslint/no-unnecessary-type-assertion': "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-use-before-define": ["error", { variables: false, functions: false }],
"react/no-deprecated": 0,
// "quotes": [2, "single"],
"comma-dangle": [2,"always-multiline"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"no-template-curly-in-string": "off",
"@typescript-eslint/consistent-type-imports": ["error", { prefer: "no-type-imports" }],
"@typescript-eslint/consistent-type-exports": "off",
"@typescript-eslint/naming-convention": "off",
}
}