Skip to content

Commit 179b81d

Browse files
committed
fix: move eslint hooks rule extension to src config
1 parent 10b4bf5 commit 179b81d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.eslintrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"extends": ["@gravity-ui/eslint-config", "prettier"],
33
"root": true,
4-
"rules": {
5-
"react-hooks/exhaustive-deps": ["warn", {
6-
"additionalHooks": "(useAutofetcher)"
7-
}]
8-
},
94
"overrides": [
105
{
116
"files": [

src/.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"extends": "@gravity-ui/eslint-config/client",
33
"rules": {
44
"react/jsx-uses-react": "off",
5-
"react/react-in-jsx-scope": "off"
5+
"react/react-in-jsx-scope": "off",
6+
"react-hooks/exhaustive-deps": ["warn", {
7+
"additionalHooks": "(useAutofetcher)"
8+
}]
69
}
710
}

0 commit comments

Comments
 (0)