mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-25 02:32:52 -05:00
refactor: actived the rule react/jsx-one-expression-per-line
This commit is contained in:
parent
41f0782db4
commit
ba9e48e5b1
2 changed files with 6 additions and 2 deletions
|
@ -88,7 +88,7 @@
|
|||
"react/jsx-no-duplicate-props": ["warn"],
|
||||
"react/jsx-no-literals": ["warn"],
|
||||
"react/jsx-no-undef": ["error"],
|
||||
"react/jsx-one-expression-per-line": ["warn", {"allow": "single-child"}],
|
||||
"react/jsx-one-expression-per-line": ["error", {"allow": "single-child"}],
|
||||
"react/jsx-curly-brace-presence": ["error", { "props": "always", "children": "ignore" }],
|
||||
"react/jsx-pascal-case": ["error"],
|
||||
"react/jsx-props-no-multi-spaces": ["error"],
|
||||
|
|
|
@ -9,7 +9,11 @@ import { IProps } from './types';
|
|||
|
||||
const NotFound = ({ pkg }: IProps) => (
|
||||
<Wrapper>
|
||||
<h1>Error 404 -{pkg}</h1>
|
||||
<h1>
|
||||
// TODO. Resolved the rule react/jsx-one-expression-per-line for now, but in the future we are going to use i18n here
|
||||
{'Error 404 -'}
|
||||
{pkg}
|
||||
</h1>
|
||||
<hr />
|
||||
<p>Oops, The package you are trying to access does not exist.</p>
|
||||
</Wrapper>
|
||||
|
|
Loading…
Add table
Reference in a new issue