【发布时间】:2022-01-07 10:29:55
【问题描述】:
- “覆盖”属性的类型错误(预期为数组,但得到了
{"files":["**/*.ts","**/*.tsx"],"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":2018,"sourceType":"module","ecmaFeatures":{"jsx":true},"warnOnUnsupportedTypeScriptVersion":true},"plugins":["@typescript-eslint"],"rules":{"default-case":"off","no-dupe-class-members":"off","@typescript-eslint/no-angle-bracket-type-assertion":"warn","no-array-constructor":"off","@typescript-eslint/no-array-constructor":"warn","@typescript-eslint/no-namespace":"error","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["warn",{"args":"none","ignoreRestSiblings":true}],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"warn"}})。
引用自:D:{app folder}{app name}\package.json
【问题讨论】:
-
错误信息中有什么不清楚的地方?
"overrides"需要一个数组[...]但得到一个对象{...}。 -
我克隆了这个 repo,当我执行 npm start 时,我遇到了这个问题,你能帮帮我吗
-
你克隆了 what repo,你为什么不把它和维护它的人一起提出来呢?如果您在这里问我们需要minimal reproducible example - 我建议使用tour 并阅读How to Ask。
标签: typescript eslint