From 781282a830138b4b3b33d8752bd1e4129be8de8a Mon Sep 17 00:00:00 2001 From: Mater Date: Thu, 13 Oct 2022 11:41:20 +0800 Subject: [PATCH] Update index.js --- packages/vue-cli-plugin-mpx-eslint/generator/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-mpx-eslint/generator/index.js b/packages/vue-cli-plugin-mpx-eslint/generator/index.js index 414d1b03..141a0f51 100644 --- a/packages/vue-cli-plugin-mpx-eslint/generator/index.js +++ b/packages/vue-cli-plugin-mpx-eslint/generator/index.js @@ -8,7 +8,7 @@ module.exports = function (api, options = {}) { eslint: '^7.0.0' } } - if (options.needTs) { + if (!options.needTs) { deps.devDependencies['@mpxjs/eslint-config'] = '^1.0.5' } else { deps.devDependencies['@mpxjs/eslint-config-ts'] = '^1.0.5'