This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjsx.js
39 lines (39 loc) · 1.69 KB
/
jsx.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
/* eslint-env node */
module.exports = {
plugins: [ "react" ],
rules: {
"@typescript-eslint/indent": "off",
"react/jsx-boolean-value": [ "error", "never"],
"react/jsx-child-element-spacing":"error",
"react/jsx-closing-bracket-location": ["error", {
"nonEmpty": "line-aligned",
"selfClosing": "line-aligned"
}],
"react/jsx-closing-tag-location": "error",
"react/jsx-curly-brace-presence": "error",
"react/jsx-curly-newline": ["error", "consistent"],
"react/jsx-curly-spacing": ["error", {"when": "always", "spacing": {
"objectLiterals": "never",
"children": true
}}],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-filename-extension": ["warn", { "extensions": [ ".tsx" ]}],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-handler-names": "error" ,
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-key": "error",
"react/jsx-max-depth": ["warn", { "max": 4 }],
"react/jsx-max-props-per-line": ["error", { "maximum": 1, "when": "multiline" }],
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/jsx-no-useless-fragment": "error",
"react/jsx-one-expression-per-line": ["error", { "allow": "single-child" }],
"react/jsx-fragments": ["error", "element"],
"react/jsx-pascal-case": "error",
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-props-no-spreading": "error",
"react/jsx-tag-spacing": "error",
"react/jsx-wrap-multilines": "error"
}
};