Skip to content

Commit fec160f

Browse files
committed
fix: no need to assertCliVersion. avoid breaking old versions
1 parent 81f8457 commit fec160f

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

packages/@vue/cli-plugin-eslint/generator/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ const fs = require('fs')
22
const path = require('path')
33

44
module.exports = (api, { config, lintOn = [] }, _, invoking) => {
5-
api.assertCliVersion('^4.0.0-alpha.4')
6-
api.assertCliServiceVersion('^4.0.0-alpha.4')
7-
85
if (typeof lintOn === 'string') {
96
lintOn = lintOn.split(',')
107
}

packages/@vue/cli-plugin-router/generator/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
module.exports = (api, options = {}) => {
2-
api.assertCliVersion('^4.0.0-alpha.3')
3-
api.assertCliServiceVersion('^4.0.0-alpha.3')
4-
52
api.injectImports(api.entryFile, `import router from './router'`)
63
api.injectRootOptions(api.entryFile, `router`)
74

packages/@vue/cli-plugin-vuex/generator/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
module.exports = (api, options = {}) => {
2-
api.assertCliVersion('^4.0.0-alpha.3')
3-
api.assertCliServiceVersion('^4.0.0-alpha.3')
4-
52
api.injectImports(api.entryFile, `import store from './store'`)
63
api.injectRootOptions(api.entryFile, `store`)
74

0 commit comments

Comments
 (0)