diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 2a5ebfe..099a461 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -22,7 +22,7 @@ jobs: uses: withastro/action@v3 with: path: docs - node-version: 22.11.0 + node-version: 22.13.1 package-manager: pnpm@latest deploy: diff --git a/.npmrc b/.npmrc index 61c1fc8..a61951e 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,2 @@ engine-strict=true -use-node-version=22.11.0 -manage-package-manager-versions=true \ No newline at end of file +use-node-version=22.13.1 \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js index ab9e98d..dc43171 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,11 +1,14 @@ -import js from '@eslint/js'; -import ts from 'typescript-eslint'; -import svelte from 'eslint-plugin-svelte'; import prettier from 'eslint-config-prettier'; +import js from '@eslint/js'; +import { includeIgnoreFile } from '@eslint/compat'; +import svelte from 'eslint-plugin-svelte'; import globals from 'globals'; +import { fileURLToPath } from 'node:url'; +import ts from 'typescript-eslint'; +const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); -/** @type {import('eslint').Linter.FlatConfig[]} */ -export default [ +export default ts.config( + includeIgnoreFile(gitignorePath), js.configs.recommended, ...ts.configs.recommended, ...svelte.configs['flat/recommended'], @@ -29,8 +32,5 @@ export default [ rules: { 'svelte/no-at-html-tags': 'off' } - }, - { - ignores: ['**/build/', '**/.svelte-kit/', '**/.astro/', '**/dist/'] } -]; +); diff --git a/package.json b/package.json index 945ccee..56d6ab8 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ }, "devDependencies": { "@changesets/cli": "^2.27.12", + "@eslint/compat": "^1.2.6", + "@eslint/js": "^9.20.0", "@types/eslint": "^9.6.1", "eslint": "^9.20.1", "eslint-config-prettier": "^10.0.1", @@ -24,8 +26,8 @@ "prettier-plugin-svelte": "^3.3.3", "typescript-eslint": "^8.24.0" }, - "packageManager": "pnpm@9.15.5", + "packageManager": "pnpm@10.4.0", "engines": { - "pnpm": "^9.15.5" + "pnpm": "^10.4.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6e05d5a..143835d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,12 @@ importers: '@changesets/cli': specifier: ^2.27.12 version: 2.27.12 + '@eslint/compat': + specifier: ^1.2.6 + version: 1.2.6(eslint@9.20.1) + '@eslint/js': + specifier: ^9.20.0 + version: 9.20.0 '@types/eslint': specifier: ^9.6.1 version: 9.6.1 @@ -479,6 +485,15 @@ packages: resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + '@eslint/compat@1.2.6': + resolution: {integrity: sha512-k7HNCqApoDHM6XzT30zGoETj+D+uUcZUb+IVAJmar3u6bvHf7hhHJcWx09QHj4/a2qrKZMWU0E16tvkiAdv06Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^9.10.0 + peerDependenciesMeta: + eslint: + optional: true + '@eslint/config-array@0.19.2': resolution: {integrity: sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3588,6 +3603,10 @@ snapshots: '@eslint-community/regexpp@4.12.1': {} + '@eslint/compat@1.2.6(eslint@9.20.1)': + optionalDependencies: + eslint: 9.20.1 + '@eslint/config-array@0.19.2': dependencies: '@eslint/object-schema': 2.1.6