canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS and CSS.
65 lines (63 loc) • 1.71 kB
JSON
{
"ecmaFeatures": {
"jsx": true
},
"plugins": [
"react"
],
"rules": {
"react/display-name": 0,
"react/forbid-prop-types": 0,
"react/jsx-boolean-value": 1,
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": [
2,
"never",
{
"allowMultiline": true
}
],
"react/jsx-handler-names": [
2,
{
"eventHandlerPrefix": "handle",
"eventHandlerPropPrefix": "on"
}
],
"react/jsx-indent-props": [
2,
4
],
"react/jsx-key": 1,
"react/jsx-max-props-per-line": [
2,
{
"maximum": 3
}
],
"react/jsx-no-bind": 1,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 1,
"react/jsx-pascal-case": 1,
"react/jsx-quotes": 0,
"react/jsx-sort-prop-types": 1,
"react/jsx-sort-props": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-multi-comp": 1,
"react/no-set-state": 1,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 0
}
}