0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

chore: enable react/jsx-curly-brace-presence

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

View file

@ -89,7 +89,7 @@
"react/jsx-no-literals": ["warn"],
"react/jsx-no-undef": ["error"],
"react/jsx-one-expression-per-line": ["warn", {"allow": "single-child"}],
"react/jsx-curly-brace-presence": ["warn", { "props": "always", "children": "ignore" }],
"react/jsx-curly-brace-presence": ["error", { "props": "always", "children": "ignore" }],
"react/jsx-pascal-case": ["error"],
"react/jsx-props-no-multi-spaces": ["error"],
"react/jsx-sort-default-props": ["error"],

View file

@ -174,7 +174,7 @@ class Search extends Component<IProps, IState> {
renderAdorment() {
return (
<InputAdornment position="start" style={{ color: colors.white }}>
<InputAdornment position={'start'} style={{ color: colors.white }}>
<IconSearch />
</InputAdornment>
);