mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 08:58:41 +00:00
解析器不一致,导致ts的某些特性不能使用,真坑
This commit is contained in:
parent
e6aed721ae
commit
a30e435f00
@ -1,15 +1,19 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
env: {
|
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: {
|
parserOptions: {
|
||||||
"parser": "babel-eslint",
|
parser: "@typescript-eslint/parser"
|
||||||
"ecmaVersion": 2020,
|
|
||||||
ecmaFeatures: {
|
|
||||||
legacyDecorators: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
"plugin:vue/essential",
|
"plugin:vue/essential",
|
||||||
@ -29,5 +33,7 @@ module.exports = {
|
|||||||
"no-undef": "off",
|
"no-undef": "off",
|
||||||
"no-debugger": "off",
|
"no-debugger": "off",
|
||||||
"no-unreachable": "off",
|
"no-unreachable": "off",
|
||||||
|
"@typescript-eslint/no-inferrable-types":"off",
|
||||||
|
"@typescript-eslint/ban-types":"off",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user