0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: enable react/jsx-sort-default-prop as error

This commit is contained in:
Juan Picado @jotadeveloper 2018-12-16 18:42:39 +01:00
parent 530f4cb629
commit 30e36e8098
No known key found for this signature in database
GPG key ID: 18AC54485952D158
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@
"react/jsx-curly-brace-presence": ["warn", { "props": "always", "children": "ignore" }],
"react/jsx-pascal-case": ["error"],
"react/jsx-props-no-multi-spaces": ["error"],
"react/jsx-sort-default-props": ["warn"],
"react/jsx-sort-default-props": ["error"],
"react/jsx-sort-props": ["error"],
"react/no-string-refs": ["error"],
"react/no-danger-with-children": ["error"],

View file

@ -23,10 +23,10 @@ export default class LoginModal extends Component {
};
static defaultProps = {
visibility: true,
error: {},
onCancel: () => {},
onSubmit: () => {},
visibility: true,
}
constructor(props) {