forked from coreyphillips/moonshine
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
76 lines (76 loc) · 1.65 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
71
72
73
74
75
76
module.exports = {
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true,
"jest": true,
"browser": true,
"react-native/react-native": true,
},
"plugins": [
"react",
"react-native",
"jsx-a11y",
"react-hooks"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-console": 0,
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-buffer-constructor": 0,
"no-case-declarations": 0,
"no-useless-escape": 0,
"semi": 2,
"react/jsx-no-duplicate-props": [2, {"ignoreCase": true}],
"react-native/no-unused-styles": 1,
"react-native/no-raw-text": 2,
"react/jsx-equals-spacing": [2, "never"],
"react/no-unsafe": [2, {"checkAliases": true}],
"react/jsx-curly-spacing": [2, {
"when": "never",
"attributes": {"allowMultiline": true},
"children": true,
"spacing": {
"objectLiterals": "never",
}
}],
"react/jsx-uses-vars": 2,
"react/jsx-wrap-multilines": 2,
"react/jsx-tag-spacing": [2,
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
],
"react/jsx-indent": [2, "tab"],
"react/jsx-closing-bracket-location": 2,
"react/jsx-child-element-spacing": 2,
"react/no-unused-prop-types": 2,
"react/prop-types": 0,
"no-undef": 0,
"react/display-name": 0,
"require-atomic-updates": 0,
"no-async-promise-executor": 0
},
"globals": {
"fetch": false
},
"settings": {
"react": {
"version": "detect",
},
},
};