Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix lint warnings #4455

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"newline-per-chained-call": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"complexity": ["warn", 10],
"complexity": "off",
"global-require": "off",
"func-names": "off",
"lines-between-class-members": "off",
Expand Down
1 change: 0 additions & 1 deletion src/elements/Flag/Flag.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react'
import { ForwardRefComponent } from '../../generic'

export type FlagNameValues =
Expand Down
2 changes: 0 additions & 2 deletions src/elements/Icon/Icon.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as React from 'react'

import { ForwardRefComponent, SemanticCOLORS, SemanticICONS } from '../../generic'
import IconGroup from './IconGroup'

Expand Down
1 change: 0 additions & 1 deletion src/elements/Image/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
SemanticShorthandItem,
SemanticSIZES,
SemanticVERTICALALIGNMENTS,
SemanticWIDTHS,
} from '../../generic'
import { DimmerProps } from '../../modules/Dimmer'
import { LabelProps } from '../Label'
Expand Down
1 change: 0 additions & 1 deletion src/elements/Placeholder/PlaceholderImage.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react'
import { ForwardRefComponent } from '../../generic'

export interface PlaceholderImageProps extends StrictPlaceholderImageProps {
Expand Down
1 change: 0 additions & 1 deletion src/elements/Placeholder/PlaceholderLine.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react'
import { ForwardRefComponent } from '../../generic'

export interface PlaceholderLineProps extends StrictPlaceholderLineProps {
Expand Down
4 changes: 3 additions & 1 deletion src/elements/Reveal/Reveal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export interface StrictRevealProps {
instant?: boolean
}

declare const Reveal: ForwardRefComponent<RevealProps, HTMLDivElement>
declare const Reveal: ForwardRefComponent<RevealProps, HTMLDivElement> & {
Content: typeof RevealContent
}

export default Reveal
2 changes: 0 additions & 2 deletions src/modules/Accordion/Accordion.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as React from 'react'

import AccordionAccordion, { StrictAccordionAccordionProps } from './AccordionAccordion'
import AccordionContent from './AccordionContent'
import AccordionPanel from './AccordionPanel'
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Popup/lib/createReferenceProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ReferenceProxy {
}

get contextElement() {
return this.ref.current;
return this.ref.current
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/Tab/Tab.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'

import { ForwardRefComponent, SemanticShorthandItem } from '../../generic'
import TabPane, { TabPaneProps } from './TabPane'
import { TabPaneProps } from './TabPane'

export interface TabProps extends StrictTabProps {
[key: string]: any
Expand Down
Loading