-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-rules.js
33 lines (33 loc) · 1.18 KB
/
react-rules.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
(function() {
module.exports = {
'react/no-string-refs': 'error',
'react/no-unused-prop-types': 'error',
'react/jsx-equals-spacing': 'error',
'react/jsx-curly-spacing': 'error',
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
"react/jsx-no-useless-fragment": "error",
"react/jsx-curly-brace-presence": "error",
"react/jsx-fragments": "error",
"react/jsx-tag-spacing": ["error", {
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}],
"react/jsx-one-expression-per-line": "error",
"react/jsx-first-prop-new-line": "error",
"react/jsx-max-props-per-line": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}],
};
}());