【发布时间】:2019-05-19 12:50:46
【问题描述】:
目前,我遇到了这些 linting 错误:
ESLint: UNSAFE_componentWillUpdate should be placed after someFunction (react/sort-comp)
和
ESLint: Identifier 'UNSAFE_componentWillUpdate' is not in camel case. (camelcase)
目前,我找不到要添加到 .eslintrc 以应用于前置 UNSAFE_ 组件生命周期的正确规则。我正在尝试使其适用于 react/sort-comp 和 camelcase 规则,任何线索/帮助将不胜感激
【问题讨论】:
标签: javascript html reactjs frontend eslint