Skip to content

Commit 07ec224

Browse files
build: bump eslint and fix lint (#17)
1 parent 952070f commit 07ec224

File tree

7 files changed

+95
-74
lines changed

7 files changed

+95
-74
lines changed

package-lock.json

+77-68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"author": "",
1919
"license": "MIT",
2020
"devDependencies": {
21-
"@dfinity/eslint-config-oisy-wallet": "^0.1.1",
21+
"@dfinity/eslint-config-oisy-wallet": "^0.1.6",
2222
"@types/node": "^22.13.10",
2323
"jiti": "^2.4.2",
2424
"prettier": "^3.5.3",

plugins/nextjs-plugin/src/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import {ConfigArgs, JunoParams, JunoPluginError, initConfig} from '@junobuild/plugin-tools';
1+
import {
2+
type ConfigArgs,
3+
type JunoParams,
4+
JunoPluginError,
5+
initConfig
6+
} from '@junobuild/plugin-tools';
27
import type {NextConfig} from 'next';
38

49
/**

plugins/plugin-tools/src/config.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {JunoConfig} from '@junobuild/config';
1+
import type {JunoConfig} from '@junobuild/config';
22
import * as configLoader from '@junobuild/config-loader';
33
import {beforeEach, describe, expect, it, vi} from 'vitest';
44
import {
@@ -19,6 +19,7 @@ import {
1919
import {JunoPluginError} from './error';
2020

2121
vi.mock('@junobuild/config-loader', async () => {
22+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
2223
const actual = await vi.importActual<typeof import('@junobuild/config-loader')>(
2324
'@junobuild/config-loader'
2425
);

plugins/plugin-tools/src/init.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type {JunoConfig} from '@junobuild/config';
22
import * as configLoader from '@junobuild/config-loader';
3-
import {beforeEach, describe, expect, it, MockInstance, vi} from 'vitest';
3+
import {type MockInstance, beforeEach, describe, expect, it, vi} from 'vitest';
44
import {
55
DOCKER_CONTAINER_URL,
66
DOCKER_SATELLITE_ID,
@@ -13,6 +13,7 @@ import {initConfig} from './init';
1313
import type {ConfigArgs} from './types';
1414

1515
vi.mock('@junobuild/config-loader', async () => {
16+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
1617
const actual = await vi.importActual<typeof import('@junobuild/config-loader')>(
1718
'@junobuild/config-loader'
1819
);

plugins/plugin-tools/src/init.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
satelliteId as satelliteIdConfig,
77
useDockerContainer
88
} from './config';
9-
import {ConfigArgs, IcpIds} from './types';
9+
import type {ConfigArgs, IcpIds} from './types';
1010

1111
export const initConfig = async (
1212
args: ConfigArgs

plugins/vite-plugin/src/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import {ConfigArgs, JunoParams, JunoPluginError, initConfig} from '@junobuild/plugin-tools';
1+
import {
2+
type ConfigArgs,
3+
type JunoParams,
4+
JunoPluginError,
5+
initConfig
6+
} from '@junobuild/plugin-tools';
27
import {type Plugin, type UserConfig} from 'vite';
38

49
/**

0 commit comments

Comments
 (0)