Skip to content

Commit 25923b7

Browse files
committed
Fix linting for UNSAFE_ prefix
1 parent b3f1c4c commit 25923b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@
4141
}
4242
],
4343
"no-param-reassign": ["error", { "props": false }],
44-
"camelcase": "error",
44+
"camelcase": [
45+
"error",
46+
{
47+
"allow": ["UNSAFE_componentDidMount", "_id$", "^UNSAFE_"]
48+
}
49+
],
4550
"react-hooks/rules-of-hooks": "error",
4651
"react-hooks/exhaustive-deps": "warn",
4752
"jsx-a11y/href-no-hash": "off",

0 commit comments

Comments
 (0)