From 233330610d630010cd2d79f7521098b0fc24d4e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 15:45:38 +0100 Subject: [PATCH] Bump eslint-plugin-package-json from 0.20.1 to 0.21.1 (#789) Co-authored-by: Flo Edelmann --- eslint.config.mts | 8 +++++++- package-lock.json | 24 ++++++++++++++++++++---- package.json | 2 +- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/eslint.config.mts b/eslint.config.mts index f99bbf5..1c26041 100644 --- a/eslint.config.mts +++ b/eslint.config.mts @@ -29,7 +29,13 @@ export default typescriptEslint.config( name: 'vue-ts-types/ignore-dist', ignores: ['dist'], }, - eslintConfigPackageJson, + { + ...eslintConfigPackageJson, + rules: { + ...eslintConfigPackageJson.rules, + 'package-json/no-redundant-files': 'error', + }, + }, { files: ['**/*.ts', '**/*.mjs'], extends: [ diff --git a/package-lock.json b/package-lock.json index 74a72d9..99992f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@vitest/eslint-plugin": "^1.1.25", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", - "eslint-plugin-package-json": "^0.20.1", + "eslint-plugin-package-json": "^0.21.1", "eslint-plugin-unicorn": "^56.0.1", "jiti": "^2.4.2", "lefthook": "^1.10.10", @@ -2312,15 +2312,31 @@ "eslint": ">=7.0.0" } }, + "node_modules/eslint-fix-utils": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eslint-fix-utils/-/eslint-fix-utils-0.2.0.tgz", + "integrity": "sha512-2z/I/1VfyL1mkLjk18W7Q3X+gqzeFmc2aNxSY/RmT6vNPyzQfT1MR/yP/+RUbqRuNUNMhTTYeP7AK7UUpcUD4w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.3.0" + }, + "peerDependencies": { + "@types/estree": ">=1", + "eslint": ">=8" + } + }, "node_modules/eslint-plugin-package-json": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-package-json/-/eslint-plugin-package-json-0.20.1.tgz", - "integrity": "sha512-AR6SNUvllaKyFWCohaRkuTT5MfCO2sA2KAdf3ZHz5/l4fyfDh3NEwugmiBMEYzunH0ZK/3a5gw2OU/dXFy6cjw==", + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-package-json/-/eslint-plugin-package-json-0.21.1.tgz", + "integrity": "sha512-nrZyddyLGRxYLBhND17b+IAZYcDJqcOu12Bk/HvGKmWKp36ja/oz7+1YL597/p3mNVhww2SVF8jA9syqYWvgNA==", "dev": true, + "license": "MIT", "dependencies": { "@altano/repository-tools": "^0.1.1", "detect-indent": "6.1.0", "detect-newline": "3.1.0", + "eslint-fix-utils": "^0.2.0", "package-json-validator": "^0.8.0", "semver": "^7.5.4", "sort-object-keys": "^1.1.3", diff --git a/package.json b/package.json index c32b991..9f9e6a2 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@vitest/eslint-plugin": "^1.1.25", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", - "eslint-plugin-package-json": "^0.20.1", + "eslint-plugin-package-json": "^0.21.1", "eslint-plugin-unicorn": "^56.0.1", "jiti": "^2.4.2", "lefthook": "^1.10.10",