This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react.json
69 lines (69 loc) · 1.8 KB
/
react.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
{
"extends": ["airbnb", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true,
"legacyDecorators": true
}
},
"env": {
"es6": true,
"node": true,
"browser": true,
"jest/globals": true
},
"globals": {
"window": true,
"document": true
},
"plugins": ["babel", "jest", "react-hooks"],
"rules": {
"no-use-before-define": "warn",
"no-empty": 0,
"no-restricted-syntax": 0,
"no-await-in-loop": 0,
"no-param-reassign": 0,
"no-confusing-arrow": 0,
"no-nested-ternary": 0,
"camelcase": 0,
"arrow-parens": ["error", "as-needed"],
"import/extensions": 0,
"import/no-unresolved": 0,
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
"react/prop-types": 0,
"react/jsx-closing-bracket-location": 0,
"react/forbid-prop-types": 0,
"react/destructuring-assignment": 0,
"react/no-access-state-in-setstate": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-wrap-multilines": 0,
"react/jsx-indent": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 0,
"babel/new-cap": 1,
"jest/no-identical-title": "error",
"prettier/prettier": [
"error",
{
"printWidth": 120,
"semi": true,
"useTabs": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": true
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}