From 7c5bd3b377915968a452319f064d6d2af12704fb Mon Sep 17 00:00:00 2001 From: xcatliu Date: Wed, 21 Oct 2020 19:17:33 +0800 Subject: [PATCH 1/3] Upgrade eslint-plugin-vue to 7.1.0 and turn off vue/array-bracket-newline --- README.md | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- vue.js | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 17cde2e..da52505 100644 --- a/README.md +++ b/README.md @@ -702,7 +702,7 @@ eslint-config-prettier has been tested with: - eslint-plugin-react 7.21.4 - eslint-plugin-standard 4.0.1 - eslint-plugin-unicorn 22.0.0 -- eslint-plugin-vue 7.0.1 +- eslint-plugin-vue 7.1.0 Have new rules been added since those versions? Have we missed any rules? Is there a plugin you would like to see exclusions for? Open an issue or a pull request! diff --git a/package-lock.json b/package-lock.json index ff45fa9..3fda1ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2924,15 +2924,15 @@ } }, "eslint-plugin-vue": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-7.0.1.tgz", - "integrity": "sha512-Pzl88S8Gue9BPcvSg+K/Av2V5UlwGeBxiZW5cLYbDngHm7vLnSuO/q2n54kIyCqfPmuD5PKlJrNSzoN+Ur9HRg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-7.1.0.tgz", + "integrity": "sha512-9dW7kj8/d2IkDdgNpvIhJdJ3XzU3x4PThXYMzWt49taktYnGyrTY6/bXCYZ/VtQKU9kXPntPrZ41+8Pw0Nxblg==", "dev": true, "requires": { "eslint-utils": "^2.1.0", "natural-compare": "^1.4.0", "semver": "^7.3.2", - "vue-eslint-parser": "^7.1.0" + "vue-eslint-parser": "^7.1.1" } }, "eslint-rule-composer": { diff --git a/package.json b/package.json index ba34b78..126c3e3 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "eslint-plugin-react": "7.21.4", "eslint-plugin-standard": "4.0.1", "eslint-plugin-unicorn": "22.0.0", - "eslint-plugin-vue": "7.0.1", + "eslint-plugin-vue": "^7.1.0", "jest": "26.5.3", "prettier": "2.1.2", "replace": "1.2.0", diff --git a/vue.js b/vue.js index fa05625..8fdd38b 100644 --- a/vue.js +++ b/vue.js @@ -5,6 +5,7 @@ module.exports = { "vue/html-self-closing": 0, "vue/max-len": 0, + "vue/array-bracket-newline": "off", "vue/array-bracket-spacing": "off", "vue/arrow-spacing": "off", "vue/block-spacing": "off", From 1ade3e2ff169e0bdb7636ddf9ae74c0fb2d8ea8c Mon Sep 17 00:00:00 2001 From: xcatliu Date: Wed, 21 Oct 2020 19:19:47 +0800 Subject: [PATCH 2/3] Turn off vue/block-tag-newline --- vue.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vue.js b/vue.js index 8fdd38b..d1b0b67 100644 --- a/vue.js +++ b/vue.js @@ -9,6 +9,7 @@ module.exports = { "vue/array-bracket-spacing": "off", "vue/arrow-spacing": "off", "vue/block-spacing": "off", + "vue/block-tag-newline": "off", "vue/brace-style": "off", "vue/comma-dangle": "off", "vue/comma-spacing": "off", From 4bbfac87a3c5b1ae0e0e920eec4574b4c6a45794 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Wed, 21 Oct 2020 13:45:21 +0200 Subject: [PATCH 3/3] Remove `^` in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 126c3e3..a164707 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "eslint-plugin-react": "7.21.4", "eslint-plugin-standard": "4.0.1", "eslint-plugin-unicorn": "22.0.0", - "eslint-plugin-vue": "^7.1.0", + "eslint-plugin-vue": "7.1.0", "jest": "26.5.3", "prettier": "2.1.2", "replace": "1.2.0",