Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gjbkz committed Apr 14, 2024
1 parent 907aae5 commit d604b2d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
{
"ignorePseudoClasses": ["global", "local"]
}
]
],
"declaration-block-no-redundant-longhand-properties": null
},
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/apple-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ImageResponse } from 'next/server';
import { ImageResponse } from 'next/og';
import { site } from '../util/site.mts';

export const runtime = 'edge';
Expand Down
2 changes: 1 addition & 1 deletion src/app/cover/[[...path]]/route.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable max-lines-per-function */
import { notFound } from 'next/navigation';
import { ImageResponse } from 'next/og';
import type { NextRequest } from 'next/server';
import { ImageResponse } from 'next/server';
import type { FontStyle, FontWeight } from '../../../util/fontFace.mts';
import {
listLines,
Expand Down
2 changes: 1 addition & 1 deletion src/app/icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ImageResponse } from 'next/server';
import { ImageResponse } from 'next/og';
import { site } from '../util/site.mts';

export const runtime = 'edge';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ElementInspector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const BaseWidthSelector = ({ parent }: BaseWidthSelectorProps) => {
if (baseWidth === 'default') {
url.searchParams.delete('w');
} else {
url.searchParams.set('w', `${baseWidth}`);
url.searchParams.set('w', baseWidth);
}
if (getCurrentUrl().href !== url.href) {
history.replaceState(null, '', url);
Expand Down
2 changes: 1 addition & 1 deletion src/util/node/listPhrases.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getTokenizer = async (
if (!cached) {
cached = new Promise<Tokenizer<IpadicFeatures>>((resolve, reject) => {
// eslint-disable-next-line import/no-named-as-default-member
kuromoji.builder({ dicPath }).build((error: unknown, result) => {
kuromoji.builder({ dicPath }).build((error: Error | null, result) => {
if (error) {
reject(error);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/util/range.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const parseRangeListString = function* (
break;
}
yield minmax([parseInt(a, 10), parseInt(b, 10)]);
pos = (index ?? 0) + length;
pos = index + length;
}
};

Expand Down

0 comments on commit d604b2d

Please sign in to comment.