diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 73a2579..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = { - root: true, - env: { - node: true, - }, - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], - extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], - rules: { - "no-trailing-spaces": "error", - }, -}; diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e47f44c..c70d804 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x, 22.x, latest] + node-version: [20.x, 22.x, latest] steps: - name: Checkout code diff --git a/CHANGELOG.md b/CHANGELOG.md index b350a66..6c19ded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Release Notes -## [Unreleased](https://github.com/laravel/vite-plugin/compare/v1.2.0...1.x) +## [Unreleased](https://github.com/laravel/vite-plugin/compare/v1.3.0...1.x) + +## [v1.3.0](https://github.com/laravel/vite-plugin/compare/v1.2.0...v1.3.0) - 2025-06-03 + +* Use rollup types from Vite by [@sapphi-red](https://github.com/sapphi-red) in https://github.com/laravel/vite-plugin/pull/325 ## [v1.2.0](https://github.com/laravel/vite-plugin/compare/v1.1.1...v1.2.0) - 2025-01-21 diff --git a/eslint.config.cjs b/eslint.config.cjs new file mode 100644 index 0000000..d42b893 --- /dev/null +++ b/eslint.config.cjs @@ -0,0 +1,38 @@ +const { + defineConfig, +} = require("eslint/config"); + +const globals = require("globals"); +const tsParser = require("@typescript-eslint/parser"); +const typescriptEslint = require("@typescript-eslint/eslint-plugin"); +const js = require("@eslint/js"); + +const { + FlatCompat, +} = require("@eslint/eslintrc"); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all +}); + +module.exports = defineConfig([{ + languageOptions: { + globals: { + ...globals.node, + }, + + parser: tsParser, + }, + + plugins: { + "@typescript-eslint": typescriptEslint, + }, + + extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), + + rules: { + "no-trailing-spaces": "error", + }, +}]); diff --git a/package.json b/package.json index a05fea8..680eec9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "laravel-vite-plugin", - "version": "1.3.0", + "version": "2.0.0", "description": "Laravel plugin for Vite.", "keywords": [ "laravel", @@ -43,20 +43,23 @@ "test": "vitest run" }, "devDependencies": { - "@types/node": "^18.11.9", - "@typescript-eslint/eslint-plugin": "^5.21.0", - "@typescript-eslint/parser": "^5.21.0", - "esbuild": "0.16.10", - "eslint": "^8.14.0", - "typescript": "^4.6.4", - "vite": "^6.0.0", - "vitest": "^0.34.4" + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "^9.30.1", + "@types/node": "^20.19.0 || >=22.12.0", + "@typescript-eslint/eslint-plugin": "^8.0.0", + "@typescript-eslint/parser": "^8.0.0", + "esbuild": "0.25.6", + "eslint": "^9.0.0", + "globals": "^16.3.0", + "typescript": "^5.0.0", + "vite": "^7.0.0", + "vitest": "^3.0.0" }, "peerDependencies": { - "vite": "^5.0.0 || ^6.0.0" + "vite": "^7.0.0" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.19.0 || >=22.12.0" }, "dependencies": { "picocolors": "^1.0.0",