Skip to content

Commit

Permalink
chore: esilnt --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Jul 4, 2024
1 parent f3e3dda commit a3cc25b
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 21 deletions.
4 changes: 2 additions & 2 deletions packages/icons-cli/src/GitHubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ export class GithubClient {
const parentCommit = await this.api.git.getCommit({
owner: this.repoOwner,
repo: this.repoName,
// eslint-disable-next-line @typescript-eslint/naming-convention

commit_sha: targetBranch.data.object.sha,
})

const newTree = await this.api.git.createTree({
owner: this.repoOwner,
repo: this.repoName,
// eslint-disable-next-line @typescript-eslint/naming-convention

base_tree: parentCommit.data.tree.sha,
tree,
})
Expand Down
1 change: 0 additions & 1 deletion packages/icons-cli/src/GitlabClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class GitlabClient {
this.message,
diff,
{
// eslint-disable-next-line @typescript-eslint/naming-convention
start_branch: this.defaultBranch,
}
)
Expand Down
4 changes: 2 additions & 2 deletions packages/pullrequest-cli/src/GitHubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ export class GithubClient {
const parentCommit = await this.api.git.getCommit({
owner: this.repoOwner,
repo: this.repoName,
// eslint-disable-next-line @typescript-eslint/naming-convention

commit_sha: targetBranch.data.object.sha,
})

const newTree = await this.api.git.createTree({
owner: this.repoOwner,
repo: this.repoName,
// eslint-disable-next-line @typescript-eslint/naming-convention

base_tree: parentCommit.data.tree.sha,
tree,
})
Expand Down
13 changes: 10 additions & 3 deletions packages/react-sandbox/src/components/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export default function Carousel({
maxScrollLeft
)
setScrollLeft(scroll, true)
set({ scroll, from: { scroll: scrollLeft }, reset: !animation.current })
void set({
scroll,
from: { scroll: scrollLeft },
reset: !animation.current,
})
animation.current = true
}, [
animation,
Expand All @@ -114,7 +118,11 @@ export default function Carousel({
const { clientWidth } = visibleAreaRef.current
const scroll = Math.max(scrollLeft - clientWidth * scrollAmountCoef, 0)
setScrollLeft(scroll, true)
set({ scroll, from: { scroll: scrollLeft }, reset: !animation.current })
void set({
scroll,
from: { scroll: scrollLeft },
reset: !animation.current,
})
animation.current = true
}, [animation, scrollLeft, set, scrollAmountCoef, setScrollLeft])

Expand Down Expand Up @@ -206,7 +214,6 @@ export default function Carousel({
setScrollLeft(scrollLength, true)
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ref.current])

const handleScrollMove = useCallback(() => {
Expand Down
2 changes: 0 additions & 2 deletions packages/react-sandbox/src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ interface StyledCancelLayoutItemBodyPaddingProps {
cancelTop?: boolean
}

/* eslint-disable max-len */
export const StyledCancelLayoutItemBodyPadding = styled.div<StyledCancelLayoutItemBodyPaddingProps>`
margin: 0 -${(p) => (p.wide ? LAYOUT_ITEM_BODY_PADDING.wide.x : LAYOUT_ITEM_BODY_PADDING.default.x)}px;
margin-top: -${({ cancelTop = false, wide }) => (!cancelTop ? 0 : wide ? LAYOUT_ITEM_BODY_PADDING.wide.y : LAYOUT_ITEM_BODY_PADDING.default.y)}px;
Expand All @@ -364,4 +363,3 @@ export const StyledCancelLayoutItemBodyPadding = styled.div<StyledCancelLayoutIt
margin-top: -${({ cancelTop = false }) => (!cancelTop ? 0 : LAYOUT_ITEM_BODY_PADDING.column1.x)}px;
}
`
/* eslint-enable max-len */
1 change: 0 additions & 1 deletion packages/react-sandbox/src/components/icons/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const IconBasePath = ({
/>
)
} else {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{path}</>
}
}
1 change: 0 additions & 1 deletion packages/react-sandbox/src/components/icons/NextIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export enum WedgeDirection {
Right = 'right',
}

// eslint-disable-next-line max-len
const path = `M8.08579 16.5858C7.30474 17.3668 7.30474 18.6332 8.08579 19.4142C8.86684 20.1953 10.1332 20.1953 10.9142 19.4142L18.3284 12L10.9142 4.58579C10.1332 3.80474 8.86684 3.80474 8.08579 4.58579C7.30474 5.36684 7.30474 6.63317 8.08579 7.41421L12.6716 12L8.08579 16.5858Z`
const size = 24

Expand Down
1 change: 0 additions & 1 deletion packages/react-sandbox/src/foundation/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export function passiveEvents(): boolean {

passiveEventsResult = false
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const options = Object.defineProperty({}, 'passive', {
get() {
return (passiveEventsResult = true)
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sandbox/src/foundation/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function unreachable(): never
* @param value Value to be asserted as unreachable
*/
// NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed
// eslint-disable-next-line @typescript-eslint/unified-signatures

export function unreachable(value: never): never
export function unreachable(value?: never): never {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/_lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function unreachable(): never
* @param value Value to be asserted as unreachable
*/
// NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed
// eslint-disable-next-line @typescript-eslint/unified-signatures

export function unreachable(value: never): never
export function unreachable(value?: never): never {
throw new Error(
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/Switch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const SwitchCheckbox = forwardRef<HTMLInputElement, SwitchProps>(
<Label className={className} aria-disabled={disabled}>
<SwitchInput {...rest} ref={ref} />
{'children' in props ? (
// eslint-disable-next-line react/destructuring-assignment
<LabelInner>{props.children}</LabelInner>
) : undefined}
</Label>
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/src/builders/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const createGradientColorCss =

warning(
effects.length === 0,
// eslint-disable-next-line max-len

`'Transition' will not be applied. You can get around this by specifying 'preserveHalfLeading' or both 'padding' and 'typography'.`
)

Expand Down
2 changes: 1 addition & 1 deletion packages/styled/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function unreachable(): never
* @param value Value to be asserted as unreachable
*/
// NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed
// eslint-disable-next-line @typescript-eslint/unified-signatures

export function unreachable(value: never): never
export function unreachable(value?: never): never {
throw new Error(
Expand Down
1 change: 0 additions & 1 deletion packages/tailwind-config/src/_lib/TailwindBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export class TailwindBuild {
const plugin = tailwindcss({
...config,

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error safelist が @types/tailwindcss に生えてない
safelist: [
{
Expand Down
1 change: 0 additions & 1 deletion packages/tailwind-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export function createTailwindConfig({
...getVariantOption(version),

corePlugins: {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error 配列にしろと言ってくるが、たぶん @types が間違っている
lineHeight: false,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwind-diff/src/defer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function createDefer() {
}

const dispose = () => {
// eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
while (true) {
const deferFn = defers.pop()
if (deferFn == null) {
Expand Down

0 comments on commit a3cc25b

Please sign in to comment.