50 lines
1.7 KiB
JSON
50 lines
1.7 KiB
JSON
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020,
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
|
|
"plugins": [
|
|
"react"
|
|
],
|
|
|
|
"rules": {
|
|
"jsx-quotes": ["error", "prefer-single"],
|
|
"react/jsx-boolean-value": "error",
|
|
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
|
|
"react/jsx-closing-tag-location": "error",
|
|
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }],
|
|
"react/jsx-curly-newline": ["error", { "multiline": "consistent", "singleline": "consistent" }],
|
|
"react/jsx-curly-spacing": ["error", {
|
|
"attributes": { "when": "never" },
|
|
"children": { "when": "never" },
|
|
"allowMultiline": true
|
|
}],
|
|
"react/jsx-equals-spacing": ["error", "never"],
|
|
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
|
|
"react/jsx-fragments": ["error", "syntax"],
|
|
"react/jsx-handler-names": "error",
|
|
"react/jsx-indent": ["error", 2, { "checkAttributes": true, "indentLogicalExpressions": true }],
|
|
"react/jsx-indent-props": ["error", 2],
|
|
"react/jsx-key": "error",
|
|
"react/jsx-no-comment-textnodes": "error",
|
|
"react/jsx-no-duplicate-props": "error",
|
|
"react/jsx-no-target-blank": ["error", { "enforceDynamicLinks": "always" }],
|
|
"react/jsx-no-undef": "error",
|
|
"react/jsx-pascal-case": ["error", { "allowAllCaps": false }],
|
|
"react/jsx-props-no-multi-spaces": "error",
|
|
"react/jsx-tag-spacing": ["error", {
|
|
"closingSlash": "never",
|
|
"beforeSelfClosing": "always",
|
|
"afterOpening": "never",
|
|
"beforeClosing": "never"
|
|
}],
|
|
"react/jsx-uses-react": "error",
|
|
"react/jsx-uses-vars": "error",
|
|
"react/self-closing-comp": "error"
|
|
}
|
|
}
|