【发布时间】:2020-04-11 04:28:56
【问题描述】:
如果在 .eslintrc.js config 中关闭了 lint 规则,我们能否以某种方式重新启用特定文件中的 lint 规则
假设我有 (.eslintrc.js):
module.exports = {
// omiting extends and plugin etc...
rules: {
'react-hooks/exhaustive-deps': 'off'
}
}
【问题讨论】: