mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-18 07:58:40 +00:00
解析器不一致,导致ts的某些特性不能使用,真坑
This commit is contained in:
parent
e6aed721ae
commit
a30e435f00
@ -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",
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user