forked from hoan7902/Dish_Genius_App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
77 lines (77 loc) · 2.09 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn",
"react/no-array-index-key": 0,
"react-native/no-inline-styles": 0,
"flowtype-errors/show-errors": 0,
"no-console": 0,
"react/no-deprecated": 0,
"react/no-unknown-property": 2,
"react/sort-comp": 0,
"react/display-name": 0,
"react/no-string-refs": 2,
"space-before-function-paren": [
"error",
"always"
],
"template-tag-spacing": [
"error",
"never"
],
"linebreak-style": 0,
"arrow-body-style": "warn",
"no-duplicate-case": 2,
"no-redeclare": 2,
"react/jsx-indent": [2, 2, {
"checkAttributes": false,
"indentLogicalExpressions": true
}],
"react/prop-types": 0,
"import/no-extraneous-dependencies": 0,
"react/jsx-filename-extension": 0,
"semi": 1,
"import/prefer-default-export": 0,
"jsx-a11y": 0,
"react/jsx-uses-vars": [2],
"react/jsx-no-bind": 0,
"camelcase": [1, { "properties": "never" }],
"react/destructuring-assignment": 0,
"no-underscore-dangle": 0,
"max-len": 0,
"no-param-reassign": 0,
"click-events-have-key-events": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-uses-react": 0,
"indent": [
"error",
2,
{
"SwitchCase": 1,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
"ignoredNodes": ["JSXElement *", "JSXElement"]
}
],
"@typescript-eslint/no-explicit-any": "off"
}
}