Skip to content

Commit 843010b

Browse files
committed
fix web deployment issue
1 parent 0d08b1e commit 843010b

3 files changed

Lines changed: 89 additions & 2 deletions

File tree

craco.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ function isDevelopmentEnv() {
77

88
module.exports = {
99
webpack: {
10+
eslint: {
11+
enable: isDevelopmentEnv(),
12+
},
1013
plugins: {
1114
add: [
1215
new webpack.DefinePlugin({

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@
7676
"@types/react-dom": "^18.0.6",
7777
"@types/react-modal": "^3.13.1",
7878
"@types/react-toggle": "^4.0.3",
79-
"@typescript-eslint/eslint-plugin": "^5.40.1",
79+
"@typescript-eslint/eslint-plugin": "^5.45.0",
8080
"@typescript-eslint/parser": "^5.40.1",
8181
"eslint-config-airbnb": "19.0.4",
8282
"eslint-config-airbnb-typescript": "^17.0.0",
8383
"eslint-config-prettier": "^8.5.0",
84+
"eslint-config-react": "^1.1.7",
8485
"eslint-config-react-app": "^7.0.1",
8586
"eslint-plugin-import": "^2.25.3",
8687
"eslint-plugin-jest": "^27.1.3",

yarn.lock

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2403,7 +2403,22 @@
24032403
semver "^7.3.5"
24042404
tsutils "^3.21.0"
24052405

2406-
"@typescript-eslint/eslint-plugin@^5.40.1", "@typescript-eslint/eslint-plugin@^5.5.0":
2406+
"@typescript-eslint/eslint-plugin@^5.45.0":
2407+
version "5.48.0"
2408+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.0.tgz#54f8368d080eb384a455f60c2ee044e948a8ce67"
2409+
integrity sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==
2410+
dependencies:
2411+
"@typescript-eslint/scope-manager" "5.48.0"
2412+
"@typescript-eslint/type-utils" "5.48.0"
2413+
"@typescript-eslint/utils" "5.48.0"
2414+
debug "^4.3.4"
2415+
ignore "^5.2.0"
2416+
natural-compare-lite "^1.4.0"
2417+
regexpp "^3.2.0"
2418+
semver "^7.3.7"
2419+
tsutils "^3.21.0"
2420+
2421+
"@typescript-eslint/eslint-plugin@^5.5.0":
24072422
version "5.40.1"
24082423
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.1.tgz#3203a6ff396b1194083faaa6e5110c401201d7d5"
24092424
integrity sha512-FsWboKkWdytGiXT5O1/R9j37YgcjO8MKHSUmWnIEjVaz0krHkplPnYi7mwdb+5+cs0toFNQb0HIrN7zONdIEWg==
@@ -2483,6 +2498,14 @@
24832498
"@typescript-eslint/types" "5.40.1"
24842499
"@typescript-eslint/visitor-keys" "5.40.1"
24852500

2501+
"@typescript-eslint/scope-manager@5.48.0":
2502+
version "5.48.0"
2503+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.48.0.tgz#607731cb0957fbc52fd754fd79507d1b6659cecf"
2504+
integrity sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==
2505+
dependencies:
2506+
"@typescript-eslint/types" "5.48.0"
2507+
"@typescript-eslint/visitor-keys" "5.48.0"
2508+
24862509
"@typescript-eslint/type-utils@5.40.1":
24872510
version "5.40.1"
24882511
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.40.1.tgz#091e4ce3bebbdb68f4980bae9dee2e4e1725f601"
@@ -2493,6 +2516,16 @@
24932516
debug "^4.3.4"
24942517
tsutils "^3.21.0"
24952518

2519+
"@typescript-eslint/type-utils@5.48.0":
2520+
version "5.48.0"
2521+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.48.0.tgz#40496dccfdc2daa14a565f8be80ad1ae3882d6d6"
2522+
integrity sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==
2523+
dependencies:
2524+
"@typescript-eslint/typescript-estree" "5.48.0"
2525+
"@typescript-eslint/utils" "5.48.0"
2526+
debug "^4.3.4"
2527+
tsutils "^3.21.0"
2528+
24962529
"@typescript-eslint/types@3.10.1":
24972530
version "3.10.1"
24982531
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727"
@@ -2508,6 +2541,11 @@
25082541
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.1.tgz#de37f4f64de731ee454bb2085d71030aa832f749"
25092542
integrity sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw==
25102543

2544+
"@typescript-eslint/types@5.48.0":
2545+
version "5.48.0"
2546+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.48.0.tgz#d725da8dfcff320aab2ac6f65c97b0df30058449"
2547+
integrity sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==
2548+
25112549
"@typescript-eslint/typescript-estree@3.10.1":
25122550
version "3.10.1"
25132551
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853"
@@ -2548,6 +2586,19 @@
25482586
semver "^7.3.7"
25492587
tsutils "^3.21.0"
25502588

2589+
"@typescript-eslint/typescript-estree@5.48.0":
2590+
version "5.48.0"
2591+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.0.tgz#a7f04bccb001003405bb5452d43953a382c2fac2"
2592+
integrity sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==
2593+
dependencies:
2594+
"@typescript-eslint/types" "5.48.0"
2595+
"@typescript-eslint/visitor-keys" "5.48.0"
2596+
debug "^4.3.4"
2597+
globby "^11.1.0"
2598+
is-glob "^4.0.3"
2599+
semver "^7.3.7"
2600+
tsutils "^3.21.0"
2601+
25512602
"@typescript-eslint/utils@5.40.1", "@typescript-eslint/utils@^5.10.0", "@typescript-eslint/utils@^5.13.0":
25522603
version "5.40.1"
25532604
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.40.1.tgz#3204fb73a559d3b7bab7dc9d3c44487c2734a9ca"
@@ -2562,6 +2613,20 @@
25622613
eslint-utils "^3.0.0"
25632614
semver "^7.3.7"
25642615

2616+
"@typescript-eslint/utils@5.48.0":
2617+
version "5.48.0"
2618+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.48.0.tgz#eee926af2733f7156ad8d15e51791e42ce300273"
2619+
integrity sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==
2620+
dependencies:
2621+
"@types/json-schema" "^7.0.9"
2622+
"@types/semver" "^7.3.12"
2623+
"@typescript-eslint/scope-manager" "5.48.0"
2624+
"@typescript-eslint/types" "5.48.0"
2625+
"@typescript-eslint/typescript-estree" "5.48.0"
2626+
eslint-scope "^5.1.1"
2627+
eslint-utils "^3.0.0"
2628+
semver "^7.3.7"
2629+
25652630
"@typescript-eslint/visitor-keys@3.10.1":
25662631
version "3.10.1"
25672632
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931"
@@ -2585,6 +2650,14 @@
25852650
"@typescript-eslint/types" "5.40.1"
25862651
eslint-visitor-keys "^3.3.0"
25872652

2653+
"@typescript-eslint/visitor-keys@5.48.0":
2654+
version "5.48.0"
2655+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.0.tgz#4446d5e7f6cadde7140390c0e284c8702d944904"
2656+
integrity sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==
2657+
dependencies:
2658+
"@typescript-eslint/types" "5.48.0"
2659+
eslint-visitor-keys "^3.3.0"
2660+
25882661
"@webassemblyjs/ast@1.9.0":
25892662
version "1.9.0"
25902663
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964"
@@ -5340,6 +5413,11 @@ eslint-config-react-app@^7.0.1:
53405413
eslint-plugin-react-hooks "^4.3.0"
53415414
eslint-plugin-testing-library "^5.0.1"
53425415

5416+
eslint-config-react@^1.1.7:
5417+
version "1.1.7"
5418+
resolved "https://registry.yarnpkg.com/eslint-config-react/-/eslint-config-react-1.1.7.tgz#a0918d0fc47d0e9bd161a47308021da85d2585b3"
5419+
integrity sha512-P4Z6u68wf0BvIvZNu+U8uQsk3DcZ1CcCI1XpUkJlG6vOa+iVcSQLgE01f2DB2kXlKRcT8/3dsH+wveLgvEgbkQ==
5420+
53435421
eslint-import-resolver-node@^0.3.6:
53445422
version "0.3.6"
53455423
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd"
@@ -8762,6 +8840,11 @@ native-url@^0.2.6:
87628840
dependencies:
87638841
querystring "^0.2.0"
87648842

8843+
natural-compare-lite@^1.4.0:
8844+
version "1.4.0"
8845+
resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4"
8846+
integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==
8847+
87658848
natural-compare@^1.4.0:
87668849
version "1.4.0"
87678850
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"

0 commit comments

Comments
 (0)