From a30e435f00b3c5406a894ecc9ead649820ad9e54 Mon Sep 17 00:00:00 2001 From: xuyanfeng Date: Sat, 3 Apr 2021 19:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=99=A8=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=EF=BC=8C=E5=AF=BC=E8=87=B4ts=E7=9A=84=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E7=89=B9=E6=80=A7=E4=B8=8D=E8=83=BD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E7=9C=9F=E5=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/.eslintrc.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/source/.eslintrc.js b/source/.eslintrc.js index e86d226..e8eb3c4 100644 --- a/source/.eslintrc.js +++ b/source/.eslintrc.js @@ -1,15 +1,19 @@ module.exports = { root: true, env: { - webextensions: true + node: true, + webextensions: true, }, - parser: "vue-eslint-parser", + // parser: "vue-eslint-parser", + // parserOptions: { + // "parser": "babel-eslint", + // "ecmaVersion": 2020, + // ecmaFeatures: { + // legacyDecorators: true + // } + // }, parserOptions: { - "parser": "babel-eslint", - "ecmaVersion": 2020, - ecmaFeatures: { - legacyDecorators: true - } + parser: "@typescript-eslint/parser" }, extends: [ "plugin:vue/essential", @@ -29,5 +33,7 @@ module.exports = { "no-undef": "off", "no-debugger": "off", "no-unreachable": "off", + "@typescript-eslint/no-inferrable-types":"off", + "@typescript-eslint/ban-types":"off", } };