[英]Can not get rule explicit-function-return-type to turn off in eslint for typescript linting
我正在使用:eslint v7.5.0 - 在命令行上運行 Angular 文件 typescript-eslint/eslint-plugin v3.7.0 typescript-eslint/parser v3.7.0。
盡管禁用了規則'@typescript-eslint/explicit-function-return-type': 'off',
但我一直收到warning Missing return type on function
。
在未禁用此規則的情況下,我做錯了什么?
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/recommended",
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
},
};
這實際上是 eslint 和 typescript 的回歸。 此處提交的錯誤報告https://github.com/typescript-eslint/typescript-eslint/issues/2267
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.