mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
chore: enable react/jsx-pascal-case
react/jsx-equals-spacing react/jsx-indent-props react/jsx-key
This commit is contained in:
parent
529fa5656b
commit
2d5d8ba84f
3 changed files with 8 additions and 8 deletions
|
@ -75,12 +75,12 @@
|
|||
"react/jsx-boolean-value": ["error", "always"],
|
||||
"react/jsx-closing-tag-location": ["error"],
|
||||
"react/jsx-curly-spacing": ["error", "never"],
|
||||
"react/jsx-equals-spacing": ["warn", "never"],
|
||||
"react/jsx-equals-spacing": ["error", "never"],
|
||||
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
|
||||
"react/jsx-handler-names": ["warn"],
|
||||
"react/jsx-indent": ["error", 2],
|
||||
"react/jsx-indent-props": ["warn", 2],
|
||||
"react/jsx-key": ["warn"],
|
||||
"react/jsx-indent-props": ["error", 2],
|
||||
"react/jsx-key": ["error"],
|
||||
"react/jsx-max-depth": ["warn", { "max": 2}],
|
||||
"react/jsx-max-props-per-line": ["warn", {"maximum": 3, "when": "multiline" }],
|
||||
"react/jsx-no-bind": ["warn"],
|
||||
|
@ -90,7 +90,7 @@
|
|||
"react/jsx-no-undef": ["warn"],
|
||||
"react/jsx-one-expression-per-line": ["warn", {"allow": "single-child"}],
|
||||
"react/jsx-curly-brace-presence": ["warn", { "props": "always", "children": "ignore" }],
|
||||
"react/jsx-pascal-case": ["warn"],
|
||||
"react/jsx-pascal-case": ["error"],
|
||||
"react/jsx-props-no-multi-spaces": ["warn"],
|
||||
"react/jsx-sort-default-props": ["warn"],
|
||||
"react/jsx-sort-props": ["warn"],
|
||||
|
|
|
@ -7,7 +7,7 @@ import React from 'react';
|
|||
import type { Node } from 'react';
|
||||
import capitalize from 'lodash/capitalize';
|
||||
|
||||
import { SVG, Img, ImgWrapper } from './styles';
|
||||
import { Svg, Img, ImgWrapper } from './styles';
|
||||
import { IProps, IIconsMap } from './types';
|
||||
|
||||
import brazil from './img/brazil.svg';
|
||||
|
@ -44,10 +44,10 @@ const Icon = ({ className, name, size = 'sm', img = false, pointer = false, ...p
|
|||
<Img alt={title} src={Icons[name]} />
|
||||
</ImgWrapper>
|
||||
) : (
|
||||
<SVG className={className} pointer={pointer} size={size} {...props}>
|
||||
<Svg className={className} pointer={pointer} size={size} {...props}>
|
||||
<title>{title}</title>
|
||||
<use xlinkHref={`${Icons[name]}#${name}`} />
|
||||
</SVG>
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ const commonStyle = ({ size = 'sm', pointer, modifiers }: IProps) => css`
|
|||
}
|
||||
`;
|
||||
|
||||
export const SVG = styled.svg`
|
||||
export const Svg = styled.svg`
|
||||
&& {
|
||||
${commonStyle};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue