github-pages-deploy-action/node_modules/eslint-config-prettier/react.js

30 lines
983 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
"use strict";
2020-03-31 20:40:00 +08:00
const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
2020-03-07 11:45:40 +08:00
module.exports = {
2020-03-31 20:40:00 +08:00
rules: Object.assign(
{
"react/jsx-child-element-spacing": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-closing-tag-location": "off",
"react/jsx-curly-newline": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "off",
"react/jsx-first-prop-new-line": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-max-props-per-line": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-multi-spaces": "off",
"react/jsx-tag-spacing": "off",
2020-03-31 20:57:48 +08:00
"react/jsx-wrap-multilines": "off"
2020-03-31 20:40:00 +08:00
},
includeDeprecated && {
// Deprecated since version 7.0.0.
// https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
2020-03-31 20:57:48 +08:00
"react/jsx-space-before-closing": "off"
2020-03-31 20:40:00 +08:00
}
2020-03-31 20:57:48 +08:00
)
2020-03-07 11:45:40 +08:00
};