forked from gorilla-devs/GDLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
92 lines (92 loc) · 2.43 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"root": true,
"extends": ["airbnb", "prettier", "plugin:prettier/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["^ui$", "./src/ui"],
["app", "./src/app/"],
["common", "./src/common"]
],
"extensions": [".js", ".jsx", ".json", ".svg", ".png", ".jpg"]
}
}
},
"parser": "babel-eslint",
"plugins": [
"react",
"prettier",
"compat",
"import",
"jsx-a11y",
"promise",
"react-hooks"
],
"rules": {
"prettier/prettier": "error",
"jsx-a11y/aria-role": "off",
"no-restricted-syntax": "off",
"no-unused-vars": "error",
"no-unused-expressions": "error",
"consistent-return": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-underscore-dangle": "off",
"no-console": "off",
"no-continue": "off",
"no-use-before-define": "off",
"no-await-in-loop": "off",
"default-param-last": "off",
"no-promise-executor-return": "off",
"import/no-import-module-exports": "off",
"react/destructuring-assignment": "off",
"promise/param-names": "error",
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"react/sort-comp": [
"error",
{
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}
],
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/function-component-definition": "off",
"react/forbid-dom-props": [2, { "forbid": ["style"] }],
"import/no-anonymous-default-export": [
"error",
{
"allowArray": false,
"allowArrowFunction": false,
"allowAnonymousClass": false,
"allowAnonymousFunction": false,
"allowCallExpression": true,
"allowLiteral": false,
"allowObject": true
}
],
"react/jsx-pascal-case": [2, { "allowAllCaps": false }],
"react/prefer-stateless-function": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"jsx-a11y/anchor-is-valid": "off"
}
}