diff --git a/package-lock.json b/package-lock.json index b4fbaf1..88b1495 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "plugins/nextjs-plugin" ], "devDependencies": { - "@dfinity/eslint-config-oisy-wallet": "^0.1.1", + "@dfinity/eslint-config-oisy-wallet": "^0.1.6", "@types/node": "^22.13.10", "jiti": "^2.4.2", "prettier": "^3.5.3", @@ -502,9 +502,9 @@ } }, "node_modules/@dfinity/eslint-config-oisy-wallet": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@dfinity/eslint-config-oisy-wallet/-/eslint-config-oisy-wallet-0.1.1.tgz", - "integrity": "sha512-QSxstf+Ra9I4813oxYV+sH1bj1kSqzk/Yi0hiXjDWTtVXDTOnnG4T47PXs1XYzHUTAhx8aVp+bvqTZHztn2bOA==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@dfinity/eslint-config-oisy-wallet/-/eslint-config-oisy-wallet-0.1.6.tgz", + "integrity": "sha512-8Pe1CqpvsV9dIWhhRQIqUJkcRg/ohx+M+esnDB600hPppqu309tHElBe2AnWd52rfgLcJBxbG1Yc7KVZiq2AXA==", "dev": true, "license": "Apache-2.0", "peerDependencies": { @@ -513,6 +513,7 @@ "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.20.0", "@typescript-eslint/eslint-plugin": "^8.24.1", + "@vitest/eslint-plugin": "^1.1.39", "eslint": "^9.20.1", "eslint-config-love": "^118.0.0", "eslint-config-prettier": "^10.0.1", @@ -522,7 +523,7 @@ "eslint-plugin-prefer-arrow": "^1.2.3", "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-promise": "^7.2.1", - "eslint-plugin-svelte": "^2.46.1", + "eslint-plugin-svelte": "^3", "globals": "^15.15.0", "prettier": "^3.5.1", "prettier-plugin-organize-imports": "^4.1.0", @@ -1934,6 +1935,28 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@vitest/eslint-plugin": { + "version": "1.1.39", + "resolved": "https://registry.npmjs.org/@vitest/eslint-plugin/-/eslint-plugin-1.1.39.tgz", + "integrity": "sha512-l5/MUFCYI8nxwr62JHlWwXfeQNS8E7xy71lSLGQ3CrjGjBdWLs1Rtee+BvYwy2m4YVPwYqUwdcAIOaZOwPUpfg==", + "dev": true, + "license": "MIT", + "peer": true, + "peerDependencies": { + "@typescript-eslint/utils": "^8.24.0", + "eslint": ">= 8.57.0", + "typescript": ">= 5.0.0", + "vitest": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "vitest": { + "optional": true + } + } + }, "node_modules/@vitest/expect": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.0.9.tgz", @@ -3535,33 +3558,31 @@ } }, "node_modules/eslint-plugin-svelte": { - "version": "2.46.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.46.1.tgz", - "integrity": "sha512-7xYr2o4NID/f9OEYMqxsEQsCsj4KaMy4q5sANaKkAb6/QeCjYFxRmDm2S3YC3A3pl1kyPZ/syOx/i7LcWYSbIw==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-3.5.1.tgz", + "integrity": "sha512-Qn1slddZHfqYiDO6IN8/iN3YL+VuHlgYjm30FT+hh0Jf/TX0jeZMTJXQMajFm5f6f6hURi+XO8P+NPYD+T4jkg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@jridgewell/sourcemap-codec": "^1.4.15", - "eslint-compat-utils": "^0.5.1", + "@eslint-community/eslint-utils": "^4.4.1", + "@jridgewell/sourcemap-codec": "^1.5.0", "esutils": "^2.0.3", "known-css-properties": "^0.35.0", - "postcss": "^8.4.38", + "postcss": "^8.4.49", "postcss-load-config": "^3.1.4", - "postcss-safe-parser": "^6.0.0", - "postcss-selector-parser": "^6.1.0", - "semver": "^7.6.2", - "svelte-eslint-parser": "^0.43.0" + "postcss-safe-parser": "^7.0.0", + "semver": "^7.6.3", + "svelte-eslint-parser": "^1.1.1" }, "engines": { - "node": "^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0-0 || ^9.0.0-0", + "eslint": "^8.57.1 || ^9.0.0", "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" }, "peerDependenciesMeta": { @@ -5441,21 +5462,31 @@ } }, "node_modules/postcss-safe-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", - "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz", + "integrity": "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "license": "MIT", "peer": true, "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" + "node": ">=18.0" }, "peerDependencies": { - "postcss": "^8.3.3" + "postcss": "^8.4.31" } }, "node_modules/postcss-scss": { @@ -5487,9 +5518,9 @@ } }, "node_modules/postcss-selector-parser": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", - "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz", + "integrity": "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==", "dev": true, "license": "MIT", "peer": true, @@ -6246,21 +6277,22 @@ } }, "node_modules/svelte-eslint-parser": { - "version": "0.43.0", - "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.43.0.tgz", - "integrity": "sha512-GpU52uPKKcVnh8tKN5P4UZpJ/fUDndmq7wfsvoVXsyP+aY0anol7Yqo01fyrlaWGMFfm4av5DyrjlaXdLRJvGA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-1.1.2.tgz", + "integrity": "sha512-vqFBRamDKo1l70KMfxxXj1/0Cco5TfMDnqaAjgz6D8PyoMhfMcDOLRkAwPg8WkMyZjMtQL3wW66TZ0x59iqO2w==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "postcss": "^8.4.39", - "postcss-scss": "^4.0.9" + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.0.0", + "postcss": "^8.4.49", + "postcss-scss": "^4.0.9", + "postcss-selector-parser": "^7.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" @@ -6274,38 +6306,15 @@ } } }, - "node_modules/svelte-eslint-parser/node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "license": "BSD-2-Clause", - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/svelte-eslint-parser/node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "node_modules/svelte-eslint-parser/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, - "license": "BSD-2-Clause", + "license": "Apache-2.0", "peer": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" diff --git a/package.json b/package.json index b9cea0b..512bd3a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "author": "", "license": "MIT", "devDependencies": { - "@dfinity/eslint-config-oisy-wallet": "^0.1.1", + "@dfinity/eslint-config-oisy-wallet": "^0.1.6", "@types/node": "^22.13.10", "jiti": "^2.4.2", "prettier": "^3.5.3", diff --git a/plugins/nextjs-plugin/src/index.ts b/plugins/nextjs-plugin/src/index.ts index adec019..04e5af0 100644 --- a/plugins/nextjs-plugin/src/index.ts +++ b/plugins/nextjs-plugin/src/index.ts @@ -1,4 +1,9 @@ -import {ConfigArgs, JunoParams, JunoPluginError, initConfig} from '@junobuild/plugin-tools'; +import { + type ConfigArgs, + type JunoParams, + JunoPluginError, + initConfig +} from '@junobuild/plugin-tools'; import type {NextConfig} from 'next'; /** diff --git a/plugins/plugin-tools/src/config.spec.ts b/plugins/plugin-tools/src/config.spec.ts index 5bbdb00..fa52f8c 100644 --- a/plugins/plugin-tools/src/config.spec.ts +++ b/plugins/plugin-tools/src/config.spec.ts @@ -1,4 +1,4 @@ -import {JunoConfig} from '@junobuild/config'; +import type {JunoConfig} from '@junobuild/config'; import * as configLoader from '@junobuild/config-loader'; import {beforeEach, describe, expect, it, vi} from 'vitest'; import { @@ -19,6 +19,7 @@ import { import {JunoPluginError} from './error'; vi.mock('@junobuild/config-loader', async () => { + // eslint-disable-next-line @typescript-eslint/consistent-type-imports const actual = await vi.importActual( '@junobuild/config-loader' ); diff --git a/plugins/plugin-tools/src/init.spec.ts b/plugins/plugin-tools/src/init.spec.ts index 96f962f..ec431a8 100644 --- a/plugins/plugin-tools/src/init.spec.ts +++ b/plugins/plugin-tools/src/init.spec.ts @@ -1,6 +1,6 @@ import type {JunoConfig} from '@junobuild/config'; import * as configLoader from '@junobuild/config-loader'; -import {beforeEach, describe, expect, it, MockInstance, vi} from 'vitest'; +import {type MockInstance, beforeEach, describe, expect, it, vi} from 'vitest'; import { DOCKER_CONTAINER_URL, DOCKER_SATELLITE_ID, @@ -13,6 +13,7 @@ import {initConfig} from './init'; import type {ConfigArgs} from './types'; vi.mock('@junobuild/config-loader', async () => { + // eslint-disable-next-line @typescript-eslint/consistent-type-imports const actual = await vi.importActual( '@junobuild/config-loader' ); diff --git a/plugins/plugin-tools/src/init.ts b/plugins/plugin-tools/src/init.ts index e036b33..15eab58 100644 --- a/plugins/plugin-tools/src/init.ts +++ b/plugins/plugin-tools/src/init.ts @@ -6,7 +6,7 @@ import { satelliteId as satelliteIdConfig, useDockerContainer } from './config'; -import {ConfigArgs, IcpIds} from './types'; +import type {ConfigArgs, IcpIds} from './types'; export const initConfig = async ( args: ConfigArgs diff --git a/plugins/vite-plugin/src/index.ts b/plugins/vite-plugin/src/index.ts index 841c6aa..530da35 100644 --- a/plugins/vite-plugin/src/index.ts +++ b/plugins/vite-plugin/src/index.ts @@ -1,4 +1,9 @@ -import {ConfigArgs, JunoParams, JunoPluginError, initConfig} from '@junobuild/plugin-tools'; +import { + type ConfigArgs, + type JunoParams, + JunoPluginError, + initConfig +} from '@junobuild/plugin-tools'; import {type Plugin, type UserConfig} from 'vite'; /**