Skip to content

Commit

Permalink
feat: storybook과 tanstack-query lint 설정을 추가합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero-1016 committed Jul 21, 2024
1 parent 4547c30 commit f9186f2
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ module.exports = {
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
'plugin:@tanstack/eslint-plugin-query/recommended',
],
plugins: [
'prettier',
'@typescript-eslint',
'unused-imports',
'simple-import-sort',
'@tanstack/query',
],
plugins: ['prettier', '@typescript-eslint', 'unused-imports', 'simple-import-sort'],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'prettier/prettier': 'error',
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"@storybook/react": "^7.6.18",
"@storybook/react-native": "^7.6.18",
"@storybook/react-webpack5": "^7.6.18",
"@tanstack/eslint-plugin-query": "^5.51.12",
"@types/jest": "^29.5.12",
"@types/react": "~18.2.45",
"@types/react-test-renderer": "^18.0.7",
Expand All @@ -73,6 +74,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.4",
"eslint-plugin-storybook": "^0.8.0",
"globals": "^15.8.0",
"jest": "^29.2.1",
"jest-expo": "~51.0.3",
Expand Down
187 changes: 182 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5075,6 +5075,15 @@ __metadata:
languageName: node
linkType: hard

"@storybook/csf@npm:^0.0.1":
version: 0.0.1
resolution: "@storybook/csf@npm:0.0.1"
dependencies:
lodash: "npm:^4.17.15"
checksum: 10c0/7b0f75763415f9147692a460b44417ee56ea9639433716a1fd4d1df4c8b0221cbc71b8da0fbed4dcecb3ccd6c7ed64be39f5c255c713539a6088a1d6488aaa24
languageName: node
linkType: hard

"@storybook/csf@npm:^0.1.1, @storybook/csf@npm:^0.1.2":
version: 0.1.11
resolution: "@storybook/csf@npm:0.1.11"
Expand Down Expand Up @@ -5555,6 +5564,17 @@ __metadata:
languageName: node
linkType: hard

"@tanstack/eslint-plugin-query@npm:^5.51.12":
version: 5.51.12
resolution: "@tanstack/eslint-plugin-query@npm:5.51.12"
dependencies:
"@typescript-eslint/utils": "npm:8.0.0-alpha.30"
peerDependencies:
eslint: ^8 || ^9
checksum: 10c0/9cb013f1dc77f2e7146a2bb96940b4f8732a5af7738c706cd508b828a801ac6a10c26831a8b95532e81c949369af96a33e6c6894fe662494acd1d47285a8906f
languageName: node
linkType: hard

"@tanstack/query-core@npm:5.51.9":
version: 5.51.9
resolution: "@tanstack/query-core@npm:5.51.9"
Expand Down Expand Up @@ -6006,7 +6026,7 @@ __metadata:
languageName: node
linkType: hard

"@types/semver@npm:^7.3.4":
"@types/semver@npm:^7.3.12, @types/semver@npm:^7.3.4":
version: 7.5.8
resolution: "@types/semver@npm:7.5.8"
checksum: 10c0/8663ff927234d1c5fcc04b33062cb2b9fcfbe0f5f351ed26c4d1e1581657deebd506b41ff7fdf89e787e3d33ce05854bc01686379b89e9c49b564c4cfa988efa
Expand Down Expand Up @@ -6137,6 +6157,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:5.62.0":
version: 5.62.0
resolution: "@typescript-eslint/scope-manager@npm:5.62.0"
dependencies:
"@typescript-eslint/types": "npm:5.62.0"
"@typescript-eslint/visitor-keys": "npm:5.62.0"
checksum: 10c0/861253235576c1c5c1772d23cdce1418c2da2618a479a7de4f6114a12a7ca853011a1e530525d0931c355a8fd237b9cd828fac560f85f9623e24054fd024726f
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:7.16.1":
version: 7.16.1
resolution: "@typescript-eslint/scope-manager@npm:7.16.1"
Expand All @@ -6147,6 +6177,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:8.0.0-alpha.30":
version: 8.0.0-alpha.30
resolution: "@typescript-eslint/scope-manager@npm:8.0.0-alpha.30"
dependencies:
"@typescript-eslint/types": "npm:8.0.0-alpha.30"
"@typescript-eslint/visitor-keys": "npm:8.0.0-alpha.30"
checksum: 10c0/5b07786348660b687c877a0db91c2d38a19e6d3d584e01844aa15b6179eabfc27ecf27b5f575f7ec141811e7fe4f7a3ba71f8c36bbf04eef304505c327e50f6b
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:7.16.1":
version: 7.16.1
resolution: "@typescript-eslint/type-utils@npm:7.16.1"
Expand All @@ -6164,13 +6204,45 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/types@npm:5.62.0":
version: 5.62.0
resolution: "@typescript-eslint/types@npm:5.62.0"
checksum: 10c0/7febd3a7f0701c0b927e094f02e82d8ee2cada2b186fcb938bc2b94ff6fbad88237afc304cbaf33e82797078bbbb1baf91475f6400912f8b64c89be79bfa4ddf
languageName: node
linkType: hard

"@typescript-eslint/types@npm:7.16.1, @typescript-eslint/types@npm:^7.2.0":
version: 7.16.1
resolution: "@typescript-eslint/types@npm:7.16.1"
checksum: 10c0/5ab7bfcac81adb01672057270d0273da98dcf50d2add5819b4787b5973f6624d11ad33d6fb495f80fe628fefa3a5ed319b433ed57e9121e444cfc002e1e48625
languageName: node
linkType: hard

"@typescript-eslint/types@npm:8.0.0-alpha.30":
version: 8.0.0-alpha.30
resolution: "@typescript-eslint/types@npm:8.0.0-alpha.30"
checksum: 10c0/fdab2e22bfa337d73f37f4f218caf0623a64b242709a72dc50b3e928d320dbc322d1d2ce349b9154dde1180a3ab13624f56d9dcedff54d8c442f430cca9ca990
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:5.62.0":
version: 5.62.0
resolution: "@typescript-eslint/typescript-estree@npm:5.62.0"
dependencies:
"@typescript-eslint/types": "npm:5.62.0"
"@typescript-eslint/visitor-keys": "npm:5.62.0"
debug: "npm:^4.3.4"
globby: "npm:^11.1.0"
is-glob: "npm:^4.0.3"
semver: "npm:^7.3.7"
tsutils: "npm:^3.21.0"
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/d7984a3e9d56897b2481940ec803cb8e7ead03df8d9cfd9797350be82ff765dfcf3cfec04e7355e1779e948da8f02bc5e11719d07a596eb1cb995c48a95e38cf
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:7.16.1":
version: 7.16.1
resolution: "@typescript-eslint/typescript-estree@npm:7.16.1"
Expand All @@ -6190,6 +6262,25 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:8.0.0-alpha.30":
version: 8.0.0-alpha.30
resolution: "@typescript-eslint/typescript-estree@npm:8.0.0-alpha.30"
dependencies:
"@typescript-eslint/types": "npm:8.0.0-alpha.30"
"@typescript-eslint/visitor-keys": "npm:8.0.0-alpha.30"
debug: "npm:^4.3.4"
globby: "npm:^11.1.0"
is-glob: "npm:^4.0.3"
minimatch: "npm:^9.0.4"
semver: "npm:^7.6.0"
ts-api-utils: "npm:^1.3.0"
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/3d724e502831be7c96de5a57955a66ea46620b045ee38091bfd786b86c96c573db42a9aa26fc83e812e8d1b204d11bec7f0cd4f48d3a4287659113dc7557a598
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:7.16.1, @typescript-eslint/utils@npm:^7.2.0":
version: 7.16.1
resolution: "@typescript-eslint/utils@npm:7.16.1"
Expand All @@ -6204,6 +6295,48 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:8.0.0-alpha.30":
version: 8.0.0-alpha.30
resolution: "@typescript-eslint/utils@npm:8.0.0-alpha.30"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.4.0"
"@typescript-eslint/scope-manager": "npm:8.0.0-alpha.30"
"@typescript-eslint/types": "npm:8.0.0-alpha.30"
"@typescript-eslint/typescript-estree": "npm:8.0.0-alpha.30"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
checksum: 10c0/9b0bb7b6857de191ffabc9b1bdd3d0cfd58fac0bebc1584d65ae311ebad5932ed747d7ffd6b10b180c5d23c213494438a934669d75ec5928cfb704fe994f18c7
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:^5.62.0":
version: 5.62.0
resolution: "@typescript-eslint/utils@npm:5.62.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.2.0"
"@types/json-schema": "npm:^7.0.9"
"@types/semver": "npm:^7.3.12"
"@typescript-eslint/scope-manager": "npm:5.62.0"
"@typescript-eslint/types": "npm:5.62.0"
"@typescript-eslint/typescript-estree": "npm:5.62.0"
eslint-scope: "npm:^5.1.1"
semver: "npm:^7.3.7"
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 10c0/f09b7d9952e4a205eb1ced31d7684dd55cee40bf8c2d78e923aa8a255318d97279825733902742c09d8690f37a50243f4c4d383ab16bd7aefaf9c4b438f785e1
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.62.0":
version: 5.62.0
resolution: "@typescript-eslint/visitor-keys@npm:5.62.0"
dependencies:
"@typescript-eslint/types": "npm:5.62.0"
eslint-visitor-keys: "npm:^3.3.0"
checksum: 10c0/7c3b8e4148e9b94d9b7162a596a1260d7a3efc4e65199693b8025c71c4652b8042501c0bc9f57654c1e2943c26da98c0f77884a746c6ae81389fcb0b513d995d
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:7.16.1":
version: 7.16.1
resolution: "@typescript-eslint/visitor-keys@npm:7.16.1"
Expand All @@ -6214,6 +6347,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:8.0.0-alpha.30":
version: 8.0.0-alpha.30
resolution: "@typescript-eslint/visitor-keys@npm:8.0.0-alpha.30"
dependencies:
"@typescript-eslint/types": "npm:8.0.0-alpha.30"
eslint-visitor-keys: "npm:^3.4.3"
checksum: 10c0/fa9140adf211d6021663075f365390e23ccbb3844699e32e85e0a147098fda6067754a94da6bbba1bde0a1dd7f27e95d55163d0c49ce413e5f95a26bb3690240
languageName: node
linkType: hard

"@ungap/structured-clone@npm:^1.2.0":
version: 1.2.0
resolution: "@ungap/structured-clone@npm:1.2.0"
Expand Down Expand Up @@ -8817,6 +8960,7 @@ __metadata:
"@storybook/react": "npm:^7.6.18"
"@storybook/react-native": "npm:^7.6.18"
"@storybook/react-webpack5": "npm:^7.6.18"
"@tanstack/eslint-plugin-query": "npm:^5.51.12"
"@tanstack/react-query": "npm:^5.51.11"
"@types/jest": "npm:^29.5.12"
"@types/react": "npm:~18.2.45"
Expand All @@ -8830,6 +8974,7 @@ __metadata:
eslint-plugin-prettier: "npm:^5.1.3"
eslint-plugin-react: "npm:^7.34.4"
eslint-plugin-simple-import-sort: "npm:^12.1.1"
eslint-plugin-storybook: "npm:^0.8.0"
eslint-plugin-unused-imports: "npm:^4.0.0"
expo: "npm:~51.0.21"
expo-constants: "npm:~16.0.2"
Expand Down Expand Up @@ -9644,6 +9789,20 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-storybook@npm:^0.8.0":
version: 0.8.0
resolution: "eslint-plugin-storybook@npm:0.8.0"
dependencies:
"@storybook/csf": "npm:^0.0.1"
"@typescript-eslint/utils": "npm:^5.62.0"
requireindex: "npm:^1.2.0"
ts-dedent: "npm:^2.2.0"
peerDependencies:
eslint: ">=6"
checksum: 10c0/c76f6decdd4c826cd6a8bb613085e0cde804f4648093a0464a39867cc0ba4e1d34be15ff91eed827730da5efbbf55ae5e71af648bb0b461946d5e41384669ab8
languageName: node
linkType: hard

"eslint-plugin-unused-imports@npm:^4.0.0":
version: 4.0.0
resolution: "eslint-plugin-unused-imports@npm:4.0.0"
Expand All @@ -9666,7 +9825,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-scope@npm:5.1.1":
"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.1.1":
version: 5.1.1
resolution: "eslint-scope@npm:5.1.1"
dependencies:
Expand Down Expand Up @@ -13318,7 +13477,7 @@ __metadata:
languageName: node
linkType: hard

"lodash@npm:^4.17.10, lodash@npm:^4.17.13, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21":
"lodash@npm:^4.17.10, lodash@npm:^4.17.13, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c
Expand Down Expand Up @@ -16207,6 +16366,13 @@ __metadata:
languageName: node
linkType: hard

"requireindex@npm:^1.2.0":
version: 1.2.0
resolution: "requireindex@npm:1.2.0"
checksum: 10c0/7fb42aed73bf8de9acc4d6716cf07acc7fbe180e58729433bafcf702e76e7bb10e54f8266c06bfec62d752e0ac14d50e8758833de539e6f4e2cd642077866153
languageName: node
linkType: hard

"requires-port@npm:^1.0.0":
version: 1.0.0
resolution: "requires-port@npm:1.0.0"
Expand Down Expand Up @@ -17842,7 +18008,7 @@ __metadata:
languageName: node
linkType: hard

"ts-dedent@npm:^2.0.0":
"ts-dedent@npm:^2.0.0, ts-dedent@npm:^2.2.0":
version: 2.2.0
resolution: "ts-dedent@npm:2.2.0"
checksum: 10c0/175adea838468cc2ff7d5e97f970dcb798bbcb623f29c6088cb21aa2880d207c5784be81ab1741f56b9ac37840cbaba0c0d79f7f8b67ffe61c02634cafa5c303
Expand Down Expand Up @@ -17875,7 +18041,7 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:^1.13.0":
"tslib@npm:^1.13.0, tslib@npm:^1.8.1":
version: 1.14.1
resolution: "tslib@npm:1.14.1"
checksum: 10c0/69ae09c49eea644bc5ebe1bca4fa4cc2c82b7b3e02f43b84bd891504edf66dbc6b2ec0eef31a957042de2269139e4acff911e6d186a258fb14069cd7f6febce2
Expand All @@ -17889,6 +18055,17 @@ __metadata:
languageName: node
linkType: hard

"tsutils@npm:^3.21.0":
version: 3.21.0
resolution: "tsutils@npm:3.21.0"
dependencies:
tslib: "npm:^1.8.1"
peerDependencies:
typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
checksum: 10c0/02f19e458ec78ead8fffbf711f834ad8ecd2cc6ade4ec0320790713dccc0a412b99e7fd907c4cda2a1dc602c75db6f12e0108e87a5afad4b2f9e90a24cabd5a2
languageName: node
linkType: hard

"turbo-stream@npm:2.2.0":
version: 2.2.0
resolution: "turbo-stream@npm:2.2.0"
Expand Down

0 comments on commit f9186f2

Please sign in to comment.