From 23ce920fc4c6b61676b1c163756aee27b45c4549 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Thu, 1 Aug 2024 10:24:39 +0200 Subject: [PATCH 1/2] Update development dependencies --- package.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 4816e225f..153ebe94f 100644 --- a/package.json +++ b/package.json @@ -60,41 +60,41 @@ "natural-compare": "^1.4.0", "nth-check": "^2.1.1", "postcss-selector-parser": "^6.0.15", - "semver": "^7.6.0", + "semver": "^7.6.3", "vue-eslint-parser": "^9.4.3", "xml-name-validator": "^4.0.0" }, "devDependencies": { - "@ota-meshi/site-kit-eslint-editor-vue": "^0.2.0", - "@stylistic/eslint-plugin": "^2.2.2", + "@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4", + "@stylistic/eslint-plugin": "^2.6.0", "@types/eslint": "^8.56.2", "@types/eslint-visitor-keys": "^3.3.0", "@types/natural-compare": "^1.4.3", "@types/node": "^14.18.63", - "@types/semver": "^7.5.7", + "@types/semver": "^7.5.8", "@types/xml-name-validator": "^4.0.3", - "@typescript-eslint/parser": "^7.13.1", - "@typescript-eslint/types": "^7.13.1", + "@typescript-eslint/parser": "^7.18.0", + "@typescript-eslint/types": "^7.18.0", "assert": "^2.1.0", "env-cmd": "^10.1.0", - "esbuild": "^0.21.5", - "eslint": "^8.56.0", + "esbuild": "^0.23.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-eslint-plugin": "~6.1.0", + "eslint-plugin-eslint-plugin": "~6.2.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsonc": "^2.16.0", "eslint-plugin-node-dependencies": "^0.12.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-unicorn": "^54.0.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-unicorn": "^55.0.0", "eslint-plugin-vue": "file:.", "espree": "^9.6.1", "events": "^3.3.0", "markdownlint-cli": "^0.41.0", - "mocha": "^10.3.0", + "mocha": "^10.7.0", "nyc": "^17.0.0", "pathe": "^1.1.2", - "prettier": "^3.2.5", - "typescript": "^5.3.3", - "vitepress": "^1.0.0-rc.42" + "prettier": "^3.3.3", + "typescript": "^5.5.4", + "vitepress": "^1.3.1" } } From 6973c2405e2cfdf1b328771d6241050e4389294b Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Thu, 1 Aug 2024 10:25:29 +0200 Subject: [PATCH 2/2] Format with Prettier --- lib/rules/require-prop-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/require-prop-types.js b/lib/rules/require-prop-types.js index 4102ad039..af2a956a4 100644 --- a/lib/rules/require-prop-types.js +++ b/lib/rules/require-prop-types.js @@ -75,7 +75,7 @@ module.exports = { return } const hasType = - prop.type === 'array' ? false : optionHasType(prop.value) ?? true + prop.type === 'array' ? false : (optionHasType(prop.value) ?? true) if (!hasType) { const { node, propName } = prop