Skip to content

Commit

Permalink
chore(eslint): disable complexity rule (#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Nov 26, 2024
1 parent 1ffa460 commit 704f53b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"import/no-extraneous-dependencies": "off",
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"@typescript-eslint/prefer-ts-expect-error": "error",
"@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports", "fixStyle": "separate-type-imports"}]
"@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports", "fixStyle": "separate-type-imports"}],
"complexity": "off"
},
"overrides": [
{
Expand Down
1 change: 0 additions & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ const isButtonIconComponent = isOfType(ButtonIcon);
const isSpan = isOfType<{className?: string}>('span');
const buttonIconClassRe = RegExp(`^${b('icon')}($|\\s+\\w)`);

// eslint-disable-next-line complexity
function prepareChildren(children: React.ReactNode) {
const items = React.Children.toArray(children);

Expand Down
1 change: 0 additions & 1 deletion src/components/controls/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export type TextAreaPin = InputControlPin;
export type TextAreaSize = InputControlSize;
export type TextAreaView = InputControlView;

// eslint-disable-next-line complexity
export const TextArea = React.forwardRef<HTMLSpanElement, TextAreaProps>(
function TextArea(props, ref) {
const {
Expand Down
1 change: 0 additions & 1 deletion src/components/controls/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export type TextInputSize = InputControlSize;
export type TextInputView = InputControlView;

export const TextInput = React.forwardRef<HTMLSpanElement, TextInputProps>(
// eslint-disable-next-line complexity
function TextInput(props, ref) {
const {
view = 'normal',
Expand Down

0 comments on commit 704f53b

Please sign in to comment.