]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
refactor: use import assertions for json imports
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 12 Jul 2022 09:13:11 +0000 (17:13 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 13 Jul 2022 04:20:52 +0000 (12:20 +0800)
utils/renderEslint.ts

index db5c15ed73f7c59e77a669f3801b12f86cf57b00..0bb0279c910a7bcd89862e410716681496d8d3b6 100644 (file)
@@ -3,7 +3,7 @@ import * as path from 'path'
 
 import type { ESLint, Linter } from 'eslint'
 
-import { devDependencies as allEslintDeps } from '../template/eslint/package.json'
+import { devDependencies as allEslintDeps } from '../template/eslint/package.json' assert { type: 'json' }
 import deepMerge from './deepMerge'
 import sortDependencies from './sortDependencies'