Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/busy-clowns-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@naverpay/eslint-config": minor
"@naverpay/eslint-plugin": minor
---

react@19 지원을 위한 react hooks 버전업

PR: [react@19 지원을 위한 react hooks 버전업](https://github.com/NaverPayDev/code-style/pull/128)
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"eslint-plugin-n": "^17.19.0",
"eslint-plugin-package-json": ">=0.33.2",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-hooks": "^7.0.0",
"eslint-plugin-sonarjs": "^3.0.1",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-unused-imports": "^4.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/rules/svg-unique-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function insertCustomImport({fixer, scope}) {
if (!targetNode) {
const lastestImportDeclarationRange =
importDeclarations.length > 0
? importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE
? (importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE)
: FIRST_RANGE

result.push(fixer.insertTextBeforeRange(lastestImportDeclarationRange, textToInsert))
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/utils/svg/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function insertCustomImport({fixer, scope, context}) {
if (!targetNode) {
const latestImportDeclarationRange =
importDeclarations.length > 0
? importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE
? (importDeclarations[importDeclarations.length - 1].range ?? FIRST_RANGE)
: FIRST_RANGE

result.push(fixer.insertTextBeforeRange(latestImportDeclarationRange, textToInsert))
Expand Down
Loading