Skip to content

Commit e675a6a

Browse files
committed
Remove magic comments for ESLint
1 parent f197a21 commit e675a6a

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

__mocks__/@line/liff.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ const liffMock: Partial<IdWritableLiff> = {
1919
use: jest.fn(),
2020
};
2121

22-
// eslint-disable-next-line import/no-default-export
2322
export default liffMock;

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line import/no-default-export
21
export default {
32
collectCoverageFrom: ['<rootDir>/src/**/*.ts{,x}', '!<rootDir>/src/**/*.test.ts{,x}'],
43
moduleNameMapper: {

src/context/create-liff-provider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const createLiffProvider: CreateLiffProvider = context => {
3737
return createElement(context.Provider, { value: { error, isLoggedIn, isReady, liff } }, children);
3838
};
3939

40-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4140
// @ts-ignore
4241
LiffProvider.propTypes = LiffProviderPropTypes;
4342
return LiffProvider;

src/lib/get-initialized-liff.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Liff, LiffPlugin } from '@line/liff';
22

3-
// eslint-disable-next-line filenames-simple/typescript-module-declaration
43
declare global {
54
interface Window {
65
liff?: Liff;
@@ -9,7 +8,6 @@ declare global {
98

109
type LiffConfig = Parameters<Liff['init']>[0];
1110

12-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1311
type Plugin<PluginOption = any> = LiffPlugin<any, void> | [LiffPlugin<any, PluginOption>, PluginOption];
1412

1513
interface GetInitializedLiffProps extends LiffConfig {
@@ -20,7 +18,6 @@ interface GetInitializedLiffProps extends LiffConfig {
2018
type GetInitializedLiff = (props: GetInitializedLiffProps) => Promise<Liff>;
2119

2220
const getLiff = async (): Promise<Liff> => {
23-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2421
// @ts-ignore: This is an issue of @line/liff
2522
return window.liff ?? ((await import('@line/liff')).default as Liff);
2623
};

0 commit comments

Comments
 (0)