Skip to content

Commit

Permalink
Merge pull request #85 from NaverPayDev/feature/83
Browse files Browse the repository at this point in the history
📦 add eslint-plugin-package-json plugin for default setting
  • Loading branch information
yceffort-naver authored Feb 19, 2025
2 parents ca9aceb + 230bb8f commit 442dbfc
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 809 deletions.
7 changes: 7 additions & 0 deletions .changeset/puny-results-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@naverpay/eslint-config": minor
---

📦 add eslint-plugin-package-json plugin for default setting

PR: [📦 add eslint-plugin-package-json plugin for default setting](https://github.com/NaverPayDev/code-style/pull/85)
2 changes: 2 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import node from './node/index.js'
import pkg from './package.json'
import packageJson from './packageJson/index.js'
import react from './react/index.js'
import strict from './strict/index.js'
import typescript from './typescript/index.js'
Expand All @@ -14,5 +15,6 @@ export default {
react,
typescript,
strict,
packageJson,
},
}
1 change: 1 addition & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"eslint-plugin-import": ">=2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-package-json": "^0.26.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-sonarjs": "^3.0.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint-config/packageJson/configs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import packageJson from 'eslint-plugin-package-json/configs/recommended'

export default [packageJson]
3 changes: 3 additions & 0 deletions packages/eslint-config/packageJson/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import configs from './configs.js'

export default [...configs]
Loading

0 comments on commit 442dbfc

Please sign in to comment.