This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
/
.eslintrc
69 lines (69 loc) · 1.69 KB
/
.eslintrc
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": [
"@rocket.chat/eslint-config"
],
"plugins": ["react", "react-hooks"],
"parser": "babel-eslint",
"env": {
"jest": true
},
"rules": {
"import/order": ["error", {
"newlines-between": "always",
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"]],
"alphabetize": {
"order": "asc"
}
}],
"jsx-quotes": ["error", "prefer-single"],
"react/display-name": ["warn", {
"ignoreTranspilerName": false
}],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-no-bind": ["warn", {
"ignoreRefs": true,
"allowFunctions": true,
"allowArrowFunctions": true
}],
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/jsx-tag-spacing": ["error", {
"beforeSelfClosing": "always"
}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-danger": "warn",
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-find-dom-node": "error",
"react/no-is-mounted": "error",
"react/no-string-refs": "error",
"react/prefer-es6-class": "error",
"react/prefer-stateless-function": "warn",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-sequences": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".ts",
".tsx"
]
}
},
"react": {
"pragma": "h",
"pragmaFrag": "Fragment",
"version": "detect"
}
}
}