1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 09:06:14 +07:00

feat(eslint-config): add order rule in import

* refactor: added eslint-plugin-import

* refactor: disable some rules for muiComponents

* fix: fixed import
This commit is contained in:
Priscila Oliveira
2019-10-07 22:19:18 +02:00
committed by Sergio Hg
parent 950f6defca
commit ae73772a37
84 changed files with 152 additions and 97 deletions

View File

@@ -6,6 +6,7 @@ import parse from 'autosuggest-highlight/parse';
import MenuItem from '@material-ui/core/MenuItem';
import { fontWeight } from '../../utils/styles/sizes';
import { Wrapper, InputField, SuggestionContainer } from './styles';
interface Props {
@@ -27,10 +28,13 @@ interface Props {
onBlur?: (event: KeyboardEvent<HTMLInputElement>) => void;
}
/* eslint-disable react/jsx-sort-props */
/* eslint-disable verdaccio/jsx-spread */
const renderInputComponent = (inputProps): JSX.Element => {
const { ref, startAdornment, disableUnderline, onKeyDown, ...others } = inputProps;
return (
<InputField
fullWidth={true}
InputProps={{
inputRef: node => {
ref(node);
@@ -39,7 +43,6 @@ const renderInputComponent = (inputProps): JSX.Element => {
disableUnderline,
onKeyDown,
}}
fullWidth={true}
{...others}
/>
);