[英]ESLint: ignore warning rules
The typescript files are filled with warning symbols and I am trying to ignore the following rules inside the .eslintrc.json file:打字稿文件充满了警告符号,我试图忽略 .eslintrc.json 文件中的以下规则:
These are the corresponding warnings:这些是相应的警告:
Is there a way to ignore these rules and make the warning disappear?有没有办法忽略这些规则并使警告消失?
For any
, you can use "no-explicit-any":false
对于
any
,您可以使用"no-explicit-any":false
For void
, you can use "no-void": false
对于
void
,您可以使用"no-void": false
For your other warnings, the eslint rule is explicit-module-boundary-types
对于您的其他警告,eslint 规则是
explicit-module-boundary-types
You probably need你可能需要
"@typescript-eslint/explicit-module-boundary-types": "off"
see看
Stop typescript-eslint/explicit-module-boundary-types to be applied on vue component not using Typescript 停止在不使用 Typescript 的 vue 组件上应用 typescript-eslint/explicit-module-boundary-types
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.