We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a1bb46 commit 8166cb2Copy full SHA for 8166cb2
generator/codemods/vuex/index.js
@@ -1,14 +1,13 @@
1
const addImport = require('../utils/add-import')
2
const removeExtraneousImport = require('../utils/remove-extraneous-import')
3
4
+// new Store() -> createStore()
5
/** @type {import('jscodeshift').Transform} */
6
module.exports = function(fileInfo, api) {
7
const j = api.jscodeshift
8
const root = j(fileInfo.source)
9
const context = { j, root }
10
- // TODO: new Store() -> createStore()
11
-
12
const vuexImportDecls = root.find(j.ImportDeclaration, {
13
source: {
14
value: 'vuex'
0 commit comments