Skip to content

Commit 31d9615

Browse files
authored
feat(generator)!: bump eslint-plugin-vue to v8 (#6795)
1 parent 0d0a485 commit 31d9615

File tree

9 files changed

+63
-20
lines changed

9 files changed

+63
-20
lines changed

docs/migrations/migrate-from-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The [`transpileDependencies` option](../config/#transpiledependencies) now accep
129129
### ESLint Plugin
130130

131131
* `eslint-loader` is replaced by [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin), dropping support for ESLint <= 6.
132-
* New projects are now generated with `eslint-plugin-vue` v7, see its [release notes](https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0) for breaking changes.
132+
* New projects are now generated with `eslint-plugin-vue` v8, see the release notes ([v7](https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0), [v8](https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.0.0)) for breaking changes.
133133
* `@vue/eslint-config-prettier` is deprecated. See <https://github.com/vuejs/eslint-config-prettier> for the migration guide.
134134

135135
### PWA Plugin

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@typescript-eslint/parser": "^4.15.1",
3737
"@vue/eslint-config-airbnb": "^5.3.0",
3838
"@vue/eslint-config-standard": "^6.1.0",
39-
"@vue/eslint-config-typescript": "^7.0.0",
39+
"@vue/eslint-config-typescript": "^9.0.0",
4040
"@vuepress/plugin-pwa": "^1.8.1",
4141
"@vuepress/theme-vue": "^1.8.1",
4242
"babel-core": "7.0.0-bridge.0",

packages/@vue/cli-plugin-eslint/eslintDeps.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const DEPS_MAP = {
22
base: {
33
eslint: '^7.20.0',
4-
'eslint-plugin-vue': '^7.6.0'
4+
'eslint-plugin-vue': '^8.0.1'
55
},
66
airbnb: {
77
'@vue/eslint-config-airbnb': '^5.3.0',
@@ -19,9 +19,9 @@ const DEPS_MAP = {
1919
'eslint-plugin-promise': '^5.1.0'
2020
},
2121
typescript: {
22-
'@vue/eslint-config-typescript': '^7.0.0',
23-
'@typescript-eslint/eslint-plugin': '^4.15.1',
24-
'@typescript-eslint/parser': '^4.15.1'
22+
'@vue/eslint-config-typescript': '^9.0.0',
23+
'@typescript-eslint/eslint-plugin': '^5.2.0',
24+
'@typescript-eslint/parser': '^5.2.0'
2525
}
2626
}
2727

@@ -30,10 +30,6 @@ exports.DEPS_MAP = DEPS_MAP
3030
exports.getDeps = function (api, preset, rootOptions = {}) {
3131
const deps = Object.assign({}, DEPS_MAP.base, DEPS_MAP[preset])
3232

33-
if (rootOptions.vueVersion === '3') {
34-
Object.assign(deps, { 'eslint-plugin-vue': '^7.2.0' })
35-
}
36-
3733
if (api.hasPlugin('typescript')) {
3834
Object.assign(deps, DEPS_MAP.typescript)
3935
}

packages/@vue/cli-ui-addon-webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"eslint-plugin-import": "^2.20.2",
3030
"eslint-plugin-node": "^11.1.0",
3131
"eslint-plugin-promise": "^5.1.0",
32-
"eslint-plugin-vue": "^7.6.0",
32+
"eslint-plugin-vue": "^8.0.1",
3333
"stylus": "^0.55.0",
3434
"stylus-loader": "^6.1.0",
3535
"vue-progress-path": "^0.0.2",

packages/@vue/cli-ui-addon-webpack/src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Vue.use(VueProgress, {
77
defaultShape: 'circle'
88
})
99

10+
/* eslint-disable vue/multi-word-component-names */
1011
ClientAddonApi.component('org.vue.webpack.components.dashboard', WebpackDashboard)
1112
ClientAddonApi.component('org.vue.webpack.components.analyzer', WebpackAnalyzer)
1213

packages/@vue/cli-ui-addon-widgets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"eslint-plugin-import": "^2.20.2",
3030
"eslint-plugin-node": "^11.1.0",
3131
"eslint-plugin-promise": "^5.1.0",
32-
"eslint-plugin-vue": "^7.6.0",
32+
"eslint-plugin-vue": "^8.0.1",
3333
"stylus": "^0.55.0",
3434
"stylus-loader": "^6.1.0",
3535
"vue-template-compiler": "^2.6.14"

packages/@vue/cli-ui-addon-widgets/src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import VulnerabilityDetails from './components/VulnerabilityDetails.vue'
77
import RunTask from './components/RunTask.vue'
88
import News from './components/News.vue'
99

10+
/* eslint-disable vue/multi-word-component-names */
1011
ClientAddonApi.component('org.vue.widgets.components.welcome', Welcome)
1112
ClientAddonApi.component('org.vue.widgets.components.kill-port', KillPort)
1213
ClientAddonApi.component('org.vue.widgets.components.plugin-updates', PluginUpdates)

packages/@vue/cli-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"eslint-plugin-import": "^2.20.2",
8484
"eslint-plugin-node": "^11.1.0",
8585
"eslint-plugin-promise": "^5.1.0",
86-
"eslint-plugin-vue": "^7.6.0",
86+
"eslint-plugin-vue": "^8.0.1",
8787
"lint-staged": "^11.1.2",
8888
"lodash.debounce": "^4.0.8",
8989
"portal-vue": "^2.1.7",

yarn.lock

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4026,12 +4026,12 @@
40264026
eslint-import-resolver-node "^0.3.4"
40274027
eslint-import-resolver-webpack "^0.13.1"
40284028

4029-
"@vue/eslint-config-typescript@^7.0.0":
4030-
version "7.0.0"
4031-
resolved "https://registry.yarnpkg.com/@vue/eslint-config-typescript/-/eslint-config-typescript-7.0.0.tgz#220c70c2edf7a253e739298525f4d401b8ef0038"
4032-
integrity sha512-UxUlvpSrFOoF8aQ+zX1leYiEBEm7CZmXYn/ZEM1zwSadUzpamx56RB4+Htdjisv1mX2tOjBegNUqH3kz2OL+Aw==
4029+
"@vue/eslint-config-typescript@^9.0.0":
4030+
version "9.0.0"
4031+
resolved "https://registry.yarnpkg.com/@vue/eslint-config-typescript/-/eslint-config-typescript-9.0.0.tgz#e6a46d4ffb2c82b639fe183ec734569f33b47605"
4032+
integrity sha512-X5inaB7c8ADWt2ygFshuT5GRw1obXWQKFR7GTvK0q+H9Cuz/BRDLXEHZTx7AxHiA5Qri1q1C1uMCPFiCBAg+6w==
40334033
dependencies:
4034-
vue-eslint-parser "^7.0.0"
4034+
vue-eslint-parser "^8.0.0"
40354035

40364036
40374037
version "3.2.20"
@@ -4802,7 +4802,7 @@ acorn@^7.1.0, acorn@^7.1.1, acorn@^7.4.0:
48024802
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
48034803
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
48044804

4805-
acorn@^8.0.4, acorn@^8.0.5, acorn@^8.2.4, acorn@^8.4.1:
4805+
acorn@^8.0.4, acorn@^8.0.5, acorn@^8.2.4, acorn@^8.4.1, acorn@^8.5.0:
48064806
version "8.5.0"
48074807
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2"
48084808
integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==
@@ -9739,6 +9739,16 @@ eslint-plugin-vue@^7.6.0:
97399739
semver "^6.3.0"
97409740
vue-eslint-parser "^7.10.0"
97419741

9742+
eslint-plugin-vue@^8.0.1:
9743+
version "8.0.1"
9744+
resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-8.0.1.tgz#1d27d976ab6471c5833397cbc8dec78c3b772606"
9745+
integrity sha512-h7SJFNECfkx89CeH3VCGGhLcm4VLOsOZ+DUSGk0h/aCqm9Outm/sIkoOvNpCebsb0U+uBzb93v2yZ6k7Vzy6LQ==
9746+
dependencies:
9747+
eslint-utils "^3.0.0"
9748+
natural-compare "^1.4.0"
9749+
semver "^7.3.5"
9750+
vue-eslint-parser "^8.0.0"
9751+
97429752
eslint-plugin-wdio@^7.0.0:
97439753
version "7.4.2"
97449754
resolved "https://registry.yarnpkg.com/eslint-plugin-wdio/-/eslint-plugin-wdio-7.4.2.tgz#c60a3227900bf651b11892624b730c2a20584601"
@@ -9760,6 +9770,14 @@ eslint-scope@^4.0.3:
97609770
esrecurse "^4.1.0"
97619771
estraverse "^4.1.1"
97629772

9773+
eslint-scope@^6.0.0:
9774+
version "6.0.0"
9775+
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-6.0.0.tgz#9cf45b13c5ac8f3d4c50f46a5121f61b3e318978"
9776+
integrity sha512-uRDL9MWmQCkaFus8RF5K9/L/2fn+80yoW3jkD53l4shjCh26fCtvJGasxjUqP5OT87SYTxCVA3BwTUzuELx9kA==
9777+
dependencies:
9778+
esrecurse "^4.3.0"
9779+
estraverse "^5.2.0"
9780+
97639781
eslint-utils@^2.0.0, eslint-utils@^2.1.0:
97649782
version "2.1.0"
97659783
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27"
@@ -9784,6 +9802,11 @@ eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0:
97849802
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
97859803
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
97869804

9805+
eslint-visitor-keys@^3.0.0:
9806+
version "3.0.0"
9807+
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.0.0.tgz#e32e99c6cdc2eb063f204eda5db67bfe58bb4186"
9808+
integrity sha512-mJOZa35trBTb3IyRmo8xmKBZlxf+N7OnUl4+ZhJHs/r+0770Wh/LEACE2pqMGMe27G/4y8P2bYGk4J70IC5k1Q==
9809+
97879810
eslint-webpack-plugin@^3.1.0:
97889811
version "3.1.0"
97899812
resolved "https://registry.yarnpkg.com/eslint-webpack-plugin/-/eslint-webpack-plugin-3.1.0.tgz#86ee426f076e2d82f9d9eaab12db1de4311c35b2"
@@ -9864,6 +9887,15 @@ espree@^7.3.0, espree@^7.3.1:
98649887
acorn-jsx "^5.3.1"
98659888
eslint-visitor-keys "^1.3.0"
98669889

9890+
espree@^9.0.0:
9891+
version "9.0.0"
9892+
resolved "https://registry.yarnpkg.com/espree/-/espree-9.0.0.tgz#e90a2965698228502e771c7a58489b1a9d107090"
9893+
integrity sha512-r5EQJcYZ2oaGbeR0jR0fFVijGOcwai07/690YRXLINuhmVeRY4UKSAsQPe/0BNuDgwP7Ophoc1PRsr2E3tkbdQ==
9894+
dependencies:
9895+
acorn "^8.5.0"
9896+
acorn-jsx "^5.3.1"
9897+
eslint-visitor-keys "^3.0.0"
9898+
98679899
esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0:
98689900
version "4.0.1"
98699901
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
@@ -22121,7 +22153,7 @@ vue-color@^2.8.1:
2212122153
material-colors "^1.0.0"
2212222154
tinycolor2 "^1.1.2"
2212322155

22124-
vue-eslint-parser@^7.0.0, vue-eslint-parser@^7.10.0:
22156+
vue-eslint-parser@^7.10.0:
2212522157
version "7.11.0"
2212622158
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-7.11.0.tgz#214b5dea961007fcffb2ee65b8912307628d0daf"
2212722159
integrity sha512-qh3VhDLeh773wjgNTl7ss0VejY9bMMa0GoDG2fQVyDzRFdiU3L7fw74tWZDHNQXdZqxO3EveQroa9ct39D2nqg==
@@ -22134,6 +22166,19 @@ vue-eslint-parser@^7.0.0, vue-eslint-parser@^7.10.0:
2213422166
lodash "^4.17.21"
2213522167
semver "^6.3.0"
2213622168

22169+
vue-eslint-parser@^8.0.0:
22170+
version "8.0.0"
22171+
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-8.0.0.tgz#d77fe0f47a378a7022d3d10c44d5c3df158bd27a"
22172+
integrity sha512-YxN5bkPDji+XLQ4sx+ULLxckL+y/oS3xzgFRkcjJL2asfVcRhzbrNRwMtWgj/70fXsrr+hkFjkxze8PBZ5O3ug==
22173+
dependencies:
22174+
debug "^4.3.2"
22175+
eslint-scope "^6.0.0"
22176+
eslint-visitor-keys "^3.0.0"
22177+
espree "^9.0.0"
22178+
esquery "^1.4.0"
22179+
lodash "^4.17.21"
22180+
semver "^7.3.5"
22181+
2213722182
vue-hot-reload-api@^2.3.0:
2213822183
version "2.3.4"
2213922184
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"

0 commit comments

Comments
 (0)