]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: fix typo
authorHaoqun Jiang <haoqunjiang@gmail.com>
Sun, 26 Dec 2021 12:11:27 +0000 (20:11 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Sun, 26 Dec 2021 12:11:27 +0000 (20:11 +0800)
utils/renderEslint.js

index 2da4f7caeccef9edb936a729a611b74d7e3fa045..c566796dff191e5e13ef2fb5d3d95204054999e3 100644 (file)
@@ -54,7 +54,7 @@ function configureEslint({ language, styleGuide, needsPrettier, needsCypress })
 
   // generate the configuration file
   let configuration = '/* eslint-env node */\n'
-  if (styleGuide !== 'default' || language !== 'typescript' || needsPrettier) {
+  if (styleGuide !== 'default' || language !== 'javascript' || needsPrettier) {
     addEslintDependency('@rushstack/eslint-patch')
     configuration += `require("@rushstack/eslint-patch/modern-module-resolution");\n\n`
   }