diff --git a/eslint.config.mts b/eslint.config.mts index 1858a4d..ae253a3 100644 --- a/eslint.config.mts +++ b/eslint.config.mts @@ -30,8 +30,10 @@ export default typescriptEslint.config( ...eslintPluginPackageJson.configs.recommended.rules, 'package-json/no-redundant-files': 'error', 'package-json/require-author': 'error', + 'package-json/require-engines': 'error', 'package-json/require-files': 'error', 'package-json/require-keywords': 'error', + 'package-json/require-types': 'error', }, }, { diff --git a/package-lock.json b/package-lock.json index 9e71571..701fd0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@vitest/eslint-plugin": "^1.1.38", "eslint": "^9.22.0", "eslint-config-prettier": "^10.1.1", - "eslint-plugin-package-json": "^0.27.0", + "eslint-plugin-package-json": "^0.29.0", "eslint-plugin-unicorn": "^57.0.0", "jiti": "^2.4.2", "lefthook": "^1.11.3", @@ -2364,9 +2364,9 @@ } }, "node_modules/eslint-plugin-package-json": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-package-json/-/eslint-plugin-package-json-0.27.0.tgz", - "integrity": "sha512-Apikio9V5axc49f2GQKSHfdlbyrcDELer7RNgDcnF+MRK2vp/inFHmuX+Vr0Ss94tPNRIyVmXP13ahkr7d6XDA==", + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-package-json/-/eslint-plugin-package-json-0.29.0.tgz", + "integrity": "sha512-S2YjWLMb+vaI0QbvkSrM6F2lEulaehGWEgHAXSoJI0F2eDw4udp5gtdFyKMLP2GSrfJB5cnKPnSJiOO5RGuaKg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 02416f3..621c381 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@vitest/eslint-plugin": "^1.1.38", "eslint": "^9.22.0", "eslint-config-prettier": "^10.1.1", - "eslint-plugin-package-json": "^0.27.0", + "eslint-plugin-package-json": "^0.29.0", "eslint-plugin-unicorn": "^57.0.0", "jiti": "^2.4.2", "lefthook": "^1.11.3", @@ -66,5 +66,8 @@ }, "peerDependencies": { "vue": "^2.6 || ^3.2" + }, + "engines": { + "node": ">=12" } } diff --git a/tsconfig.json b/tsconfig.json index 48d6012..b57fc14 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,7 @@ { "compilerOptions": { "target": "es2019", - "module": "NodeNext", - "moduleResolution": "NodeNext", + "module": "node16", "declaration": true, "outDir": "./dist/", "esModuleInterop": true,