Skip to content

Commit 5d6b3e3

Browse files
Merge pull request #128 from NaverPayDev/feature/react-hooks-7
react@19 지원을 위한 react hooks 버전업
2 parents b66ff41 + b955392 commit 5d6b3e3

File tree

5 files changed

+182
-529
lines changed

5 files changed

+182
-529
lines changed

.changeset/busy-clowns-deny.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@naverpay/eslint-config": minor
3+
"@naverpay/eslint-plugin": minor
4+
---
5+
6+
react@19 지원을 위한 react hooks 버전업
7+
8+
PR: [react@19 지원을 위한 react hooks 버전업](https://github.com/NaverPayDev/code-style/pull/128)

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-plugin-n": "^17.19.0",
5454
"eslint-plugin-package-json": ">=0.33.2",
5555
"eslint-plugin-react": "^7.37.2",
56-
"eslint-plugin-react-hooks": "^5.2.0",
56+
"eslint-plugin-react-hooks": "^7.0.0",
5757
"eslint-plugin-sonarjs": "^3.0.1",
5858
"eslint-plugin-unicorn": "^56.0.1",
5959
"eslint-plugin-unused-imports": "^4.1.4",

packages/eslint-plugin/lib/rules/svg-unique-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function insertCustomImport({fixer, scope}) {
3030
if (!targetNode) {
3131
const lastestImportDeclarationRange =
3232
importDeclarations.length > 0
33-
? importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE
33+
? (importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE)
3434
: FIRST_RANGE
3535

3636
result.push(fixer.insertTextBeforeRange(lastestImportDeclarationRange, textToInsert))

packages/eslint-plugin/lib/utils/svg/transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function insertCustomImport({fixer, scope, context}) {
123123
if (!targetNode) {
124124
const latestImportDeclarationRange =
125125
importDeclarations.length > 0
126-
? importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE
126+
? (importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE)
127127
: FIRST_RANGE
128128

129129
result.push(fixer.insertTextBeforeRange(latestImportDeclarationRange, textToInsert))

0 commit comments

Comments
 (0)