Skip to content

Commit

Permalink
🧹 chore: eslint config
Browse files Browse the repository at this point in the history
Plugin "react" was confilcted... 관련 에러 해결 링크
facebook/create-react-app#10463
  • Loading branch information
kasterra committed May 10, 2022
1 parent 2fd596b commit fe04d44
Show file tree
Hide file tree
Showing 9 changed files with 181 additions and 141 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "google"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {}
}
241 changes: 129 additions & 112 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
yarnPath: .yarn/releases/yarn-3.2.0.cjs

packageExtensions:
react-scripts@*:
peerDependencies:
eslint-config-react-app: "*"
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
},
"packageManager": "yarn@3.2.0",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"eslint": "^8.15.0",
"eslint-config-google": "^0.14.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-react": "^7.29.4",
"prettier": "^2.6.2",
"typescript": "^4.6.4"
}
Expand Down
54 changes: 25 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2562,17 +2562,7 @@ __metadata:
languageName: node
linkType: hard

"@types/eslint@npm:*":
version: 8.4.2
resolution: "@types/eslint@npm:8.4.2"
dependencies:
"@types/estree": "*"
"@types/json-schema": "*"
checksum: e81268cdeb8d64d84af649344df88f064ece0f05db62072657c976b6162ffe16f94b6480a5367d627c629272c2d86d0ee8c24f7095e98f8e743b16f98500673b
languageName: node
linkType: hard

"@types/eslint@npm:^7.28.2":
"@types/eslint@npm:*, @types/eslint@npm:^7.28.2":
version: 7.29.0
resolution: "@types/eslint@npm:7.29.0"
dependencies:
Expand Down Expand Up @@ -2700,14 +2690,7 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*, @types/node@npm:>=12":
version: 17.0.31
resolution: "@types/node@npm:17.0.31"
checksum: 704618350f8420d5c47db0f7778398e821b7724369946f5c441a7e6b9343295553936400eb8309f0b07d5e39c240988ab3456b983712ca86265dabc9aee4ad3d
languageName: node
linkType: hard

"@types/node@npm:^16.11.33":
"@types/node@npm:*, @types/node@npm:>=12, @types/node@npm:^16.11.33":
version: 16.11.33
resolution: "@types/node@npm:16.11.33"
checksum: 5c86d3f1e3b996607b41405d368d2e19d410eee0054595cef73d230368a609a2863926e75ad19f5091f0fd742cd018b667d54c51292018dd8020a202a5b29fa9
Expand Down Expand Up @@ -2884,7 +2867,7 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^5.5.0":
"@typescript-eslint/eslint-plugin@npm:^5.22.0, @typescript-eslint/eslint-plugin@npm:^5.5.0":
version: 5.22.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.22.0"
dependencies:
Expand Down Expand Up @@ -2918,7 +2901,7 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^5.5.0":
"@typescript-eslint/parser@npm:^5.22.0, @typescript-eslint/parser@npm:^5.5.0":
version: 5.22.0
resolution: "@typescript-eslint/parser@npm:5.22.0"
dependencies:
Expand Down Expand Up @@ -5644,6 +5627,15 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-google@npm:^0.14.0":
version: 0.14.0
resolution: "eslint-config-google@npm:0.14.0"
peerDependencies:
eslint: ">=5.16.0"
checksum: 52ad84c0df2d33703024e5b7fd73a9a1b2a87413d25cee1826c891b3f8fba89f9188f3c5ed6d57b4315851c6a3c82847cc9f6c747278bf4395341f9ad79ed0d0
languageName: node
linkType: hard

"eslint-config-react-app@npm:^7.0.1":
version: 7.0.1
resolution: "eslint-config-react-app@npm:7.0.1"
Expand Down Expand Up @@ -5773,7 +5765,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-react@npm:^7.27.1":
"eslint-plugin-react@npm:^7.27.1, eslint-plugin-react@npm:^7.29.4":
version: 7.29.4
resolution: "eslint-plugin-react@npm:7.29.4"
dependencies:
Expand Down Expand Up @@ -8618,8 +8610,8 @@ __metadata:
linkType: hard

"make-fetch-happen@npm:^10.0.3":
version: 10.1.2
resolution: "make-fetch-happen@npm:10.1.2"
version: 10.1.3
resolution: "make-fetch-happen@npm:10.1.3"
dependencies:
agentkeepalive: ^4.2.1
cacache: ^16.0.2
Expand All @@ -8637,7 +8629,7 @@ __metadata:
promise-retry: ^2.0.1
socks-proxy-agent: ^6.1.1
ssri: ^9.0.0
checksum: 42825d119a7e4f5b1a8e7048a86d328cd36bb1ff875d155ce7079d9a0afdd310c198fb310096af358cfa9ecdf643cecf960380686792457dccb36e17efe89eb0
checksum: 14b9bc5fb65a1a1f53b4579c947d1ebdb18db71eb0b35a2eab612e9642a14127917528fe4ffb2c37aaa0d27dfd7507e4044e6e2e47b43985e8fa18722f535b8f
languageName: node
linkType: hard

Expand Down Expand Up @@ -8944,14 +8936,14 @@ __metadata:
languageName: node
linkType: hard

"ms@npm:2.1.2":
"ms@npm:2.1.2, ms@npm:^2.1.1":
version: 2.1.2
resolution: "ms@npm:2.1.2"
checksum: 673cdb2c3133eb050c745908d8ce632ed2c02d85640e2edb3ace856a2266a813b30c613569bf3354fdf4ea7d1a1494add3bfa95e2713baa27d0c2c71fc44f58f
languageName: node
linkType: hard

"ms@npm:2.1.3, ms@npm:^2.0.0, ms@npm:^2.1.1":
"ms@npm:2.1.3, ms@npm:^2.0.0":
version: 2.1.3
resolution: "ms@npm:2.1.3"
checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d
Expand Down Expand Up @@ -10716,8 +10708,12 @@ __metadata:
version: 0.0.0-use.local
resolution: "react-mini-proj@workspace:."
dependencies:
"@typescript-eslint/eslint-plugin": ^5.22.0
"@typescript-eslint/parser": ^5.22.0
eslint: ^8.15.0
eslint-config-google: ^0.14.0
eslint-config-react-app: ^7.0.1
eslint-plugin-react: ^7.29.4
prettier: ^2.6.2
typescript: ^4.6.4
languageName: unknown
Expand Down Expand Up @@ -11250,14 +11246,14 @@ __metadata:
languageName: node
linkType: hard

"safe-buffer@npm:5.1.2, safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1":
"safe-buffer@npm:5.1.2, safe-buffer@npm:>=5.1.0, safe-buffer@npm:^5.1.0, safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1":
version: 5.1.2
resolution: "safe-buffer@npm:5.1.2"
checksum: f2f1f7943ca44a594893a852894055cf619c1fbcb611237fc39e461ae751187e7baf4dc391a72125e0ac4fb2d8c5c0b3c71529622e6a58f46b960211e704903c
languageName: node
linkType: hard

"safe-buffer@npm:5.2.1, safe-buffer@npm:>=5.1.0, safe-buffer@npm:^5.1.0, safe-buffer@npm:~5.2.0":
"safe-buffer@npm:5.2.1, safe-buffer@npm:~5.2.0":
version: 5.2.1
resolution: "safe-buffer@npm:5.2.1"
checksum: b99c4b41fdd67a6aaf280fcd05e9ffb0813654894223afb78a31f14a19ad220bba8aba1cb14eddce1fcfb037155fe6de4e861784eb434f7d11ed58d1e70dd491
Expand Down

0 comments on commit fe04d44

Please sign in to comment.