Skip to content

Commit fcb5c88

Browse files
committed
upgrade eslint packages #218
1 parent fdbd340 commit fcb5c88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+15332
-13361
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ npm-debug.log
77

88
.build/*
99
.next
10-
.vscode/
1110
node_modules/
1211
.coverage
1312
.env

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint"
4+
]
5+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"window.zoomLevel": -1,
3+
"files.autoSave": "afterDelay",
4+
"git.enableSmartCommit": true,
5+
"editor.formatOnSave": true,
6+
"eslint.autoFixOnSave": true,
7+
}

book/1-begin/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
"scripts": {
66
"dev": "next",
77
"build": "next build",
8-
"start": "next start",
9-
"lint": "eslint components pages lib"
8+
"start": "next start"
109
},
1110
"dependencies": {
12-
"@material-ui/core": "^4.1.3",
13-
"@material-ui/styles": "^4.1.2",
14-
"next": "^8.1.0",
15-
"prop-types": "^15.7.2",
16-
"react": "^16.8.6",
17-
"react-dom": "^16.8.6"
11+
"@material-ui/core": "4.1.3",
12+
"@material-ui/styles": "4.1.2",
13+
"next": "8.1.0",
14+
"prop-types": "15.7.2",
15+
"react": "16.8.6",
16+
"react-dom": "16.8.6"
1817
},
1918
"devDependencies": {}
2019
}

book/1-begin/yarn.lock

Lines changed: 547 additions & 423 deletions
Large diffs are not rendered by default.

book/1-end/package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@
1010
},
1111
"dependencies": {
1212
"@material-ui/core": "4.1.3",
13-
"@material-ui/styles": "^4.1.2",
13+
"@material-ui/styles": "4.1.2",
1414
"next": "8.1.0",
1515
"prop-types": "15.7.2",
1616
"react": "16.8.6",
1717
"react-dom": "16.8.6"
1818
},
1919
"devDependencies": {
2020
"babel-eslint": "10.0.2",
21-
"eslint": "6.0.1",
22-
"eslint-config-airbnb": "17.1.0",
23-
"eslint-config-prettier": "5.1.0",
24-
"eslint-plugin-import": "2.18.0",
25-
"eslint-plugin-jsx-a11y": "6.2.1",
26-
"eslint-plugin-prettier": "3.1.0",
27-
"eslint-plugin-react": "7.14.2"
21+
"eslint": "6.5.1",
22+
"eslint-config-airbnb": "18.0.1",
23+
"eslint-config-prettier": "6.4.0",
24+
"eslint-plugin-import": "2.18.2",
25+
"eslint-plugin-jsx-a11y": "6.2.3",
26+
"eslint-plugin-prettier": "3.1.1",
27+
"eslint-plugin-react": "7.16.0",
28+
"eslint-plugin-react-hooks": "1.7.0",
29+
"prettier": "1.18.2"
2830
}
2931
}

book/1-end/yarn.lock

Lines changed: 706 additions & 530 deletions
Large diffs are not rendered by default.

book/2-begin/.eslintrc.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

book/2-begin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@material-ui/core": "4.1.3",
13-
"@material-ui/styles": "^4.1.2",
13+
"@material-ui/styles": "4.1.2",
1414
"connect-mongo": "3.0.0",
1515
"dotenv": "8.0.0",
1616
"express": "4.17.1",
@@ -30,7 +30,7 @@
3030
"eslint-plugin-jsx-a11y": "6.2.3",
3131
"eslint-plugin-prettier": "3.1.1",
3232
"eslint-plugin-react": "7.16.0",
33-
"eslint-plugin-react-hooks": "^1.7.0",
33+
"eslint-plugin-react-hooks": "1.7.0",
3434
"nodemon": "1.19.1",
3535
"prettier": "1.18.2"
3636
}

book/2-begin/yarn.lock

Lines changed: 104 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,30 @@
747747
react-transition-group "^4.0.0"
748748
warning "^4.0.1"
749749

750+
"@material-ui/[email protected]":
751+
version "4.1.2"
752+
resolved "https://registry.yarnpkg.com/@material-ui/styles/-/styles-4.1.2.tgz#f22cb0d8f60a5e4a4b92f1ffb4b56f825ff89034"
753+
integrity sha512-IRwhGI3OzxMKIDXnYl/vi9FD/i5ZktVP2m/5PIf/HVdvhqUZGIzqR2OB/9f3W1hc+kKKExdOPlpZpVihIsJWkA==
754+
dependencies:
755+
"@babel/runtime" "^7.2.0"
756+
"@emotion/hash" "^0.7.1"
757+
"@material-ui/types" "^4.1.1"
758+
"@material-ui/utils" "^4.1.0"
759+
clsx "^1.0.2"
760+
csstype "^2.5.2"
761+
deepmerge "^3.0.0"
762+
hoist-non-react-statics "^3.2.1"
763+
jss "10.0.0-alpha.17"
764+
jss-plugin-camel-case "10.0.0-alpha.17"
765+
jss-plugin-default-unit "10.0.0-alpha.17"
766+
jss-plugin-global "10.0.0-alpha.17"
767+
jss-plugin-nested "10.0.0-alpha.17"
768+
jss-plugin-props-sort "10.0.0-alpha.17"
769+
jss-plugin-rule-value-function "10.0.0-alpha.17"
770+
jss-plugin-vendor-prefixer "10.0.0-alpha.17"
771+
prop-types "^15.7.2"
772+
warning "^4.0.1"
773+
750774
"@material-ui/styles@^4.1.2":
751775
version "4.5.0"
752776
resolved "https://registry.yarnpkg.com/@material-ui/styles/-/styles-4.5.0.tgz#4e591b8d44c7ecce318634bd8ac652499b6c277a"
@@ -1974,7 +1998,7 @@ crypto-random-string@^1.0.0:
19741998
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
19751999
integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=
19762000

1977-
css-vendor@^2.0.6:
2001+
css-vendor@^2.0.1, css-vendor@^2.0.6:
19782002
version "2.0.7"
19792003
resolved "https://registry.yarnpkg.com/css-vendor/-/css-vendor-2.0.7.tgz#4e6d53d953c187981576d6a542acc9fb57174bda"
19802004
integrity sha512-VS9Rjt79+p7M0WkPqcAza4Yq1ZHrsHrwf7hPL/bjQB+c1lwmAI+1FXxYTYt818D/50fFVflw0XKleiBN5RITkg==
@@ -2234,9 +2258,9 @@ [email protected]:
22342258
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
22352259

22362260
electron-to-chromium@^1.3.284:
2237-
version "1.3.285"
2238-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.285.tgz#909576db2ee4dfec74a87aa30c92f66ebfc78748"
2239-
integrity sha512-DYR9KW723sUbGK++DCmCmM95AbNXT4Q0tlCFMcYijFjayhuDqlGYR68OemlP8MJj0gjkwdeItIUfd0oLCgw+4A==
2261+
version "1.3.287"
2262+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.287.tgz#4aabb331e4eaa45c6af2730d32f57a0ae6c42b4c"
2263+
integrity sha512-0XlYcw6fJQ5Vh735iYJTMHysTMYjCwBFdOtyxhGbE3I9MQ2Wk2WXYIXjY1w8votvzh0fsQRaSVJ/bKUj073E9w==
22402264

22412265
elliptic@^6.0.0:
22422266
version "6.5.1"
@@ -2416,7 +2440,7 @@ [email protected]:
24162440
dependencies:
24172441
prettier-linter-helpers "^1.0.0"
24182442

2419-
eslint-plugin-react-hooks@^1.7.0:
2443+
24202444
version "1.7.0"
24212445
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
24222446
integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
@@ -2461,11 +2485,11 @@ eslint-scope@^5.0.0:
24612485
estraverse "^4.1.1"
24622486

24632487
eslint-utils@^1.4.2:
2464-
version "1.4.2"
2465-
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.2.tgz#166a5180ef6ab7eb462f162fd0e6f2463d7309ab"
2466-
integrity sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q==
2488+
version "1.4.3"
2489+
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f"
2490+
integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==
24672491
dependencies:
2468-
eslint-visitor-keys "^1.0.0"
2492+
eslint-visitor-keys "^1.1.0"
24692493

24702494
eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0:
24712495
version "1.1.0"
@@ -3554,6 +3578,15 @@ json5@^1.0.1:
35543578
dependencies:
35553579
minimist "^1.2.0"
35563580

3581+
3582+
version "10.0.0-alpha.17"
3583+
resolved "https://registry.yarnpkg.com/jss-plugin-camel-case/-/jss-plugin-camel-case-10.0.0-alpha.17.tgz#6f7c9d9742e349bb061e53cd9b1c3cb006169a67"
3584+
integrity sha512-aPY4kr6MwliH7KToLRzeSk1NxXUo9n7MQsAa0Hghwj01x9UnMkDkGAKENMKUtPjGkQZfiJpB9tTLFrSJ/6VrIQ==
3585+
dependencies:
3586+
"@babel/runtime" "^7.3.1"
3587+
hyphenate-style-name "^1.0.3"
3588+
jss "10.0.0-alpha.17"
3589+
35573590
jss-plugin-camel-case@^10.0.0:
35583591
version "10.0.0"
35593592
resolved "https://registry.yarnpkg.com/jss-plugin-camel-case/-/jss-plugin-camel-case-10.0.0.tgz#d601bae2e8e2041cc526add289dcd7062db0a248"
@@ -3563,6 +3596,14 @@ jss-plugin-camel-case@^10.0.0:
35633596
hyphenate-style-name "^1.0.3"
35643597
jss "10.0.0"
35653598

3599+
3600+
version "10.0.0-alpha.17"
3601+
resolved "https://registry.yarnpkg.com/jss-plugin-default-unit/-/jss-plugin-default-unit-10.0.0-alpha.17.tgz#4e3bf6d8e9691a8e05d50b5abf300515eb0f67ee"
3602+
integrity sha512-KQgiXczvzJ9AlFdD8NS7FZLub0NSctSrCA9Yi/GqdsfJg4ZCriU4DzIybCZBHCi/INFGJmLIESYWSxnuhAzgSQ==
3603+
dependencies:
3604+
"@babel/runtime" "^7.3.1"
3605+
jss "10.0.0-alpha.17"
3606+
35663607
jss-plugin-default-unit@^10.0.0:
35673608
version "10.0.0"
35683609
resolved "https://registry.yarnpkg.com/jss-plugin-default-unit/-/jss-plugin-default-unit-10.0.0.tgz#601caf5f576fc0c66986fbe8a9aa37307a3a3ea3"
@@ -3571,6 +3612,14 @@ jss-plugin-default-unit@^10.0.0:
35713612
"@babel/runtime" "^7.3.1"
35723613
jss "10.0.0"
35733614

3615+
3616+
version "10.0.0-alpha.17"
3617+
resolved "https://registry.yarnpkg.com/jss-plugin-global/-/jss-plugin-global-10.0.0-alpha.17.tgz#13005f6b963aee3c1498fe2bad767967ad2eb838"
3618+
integrity sha512-WYxiwwI+CLk0ozW8loeceqXBAZXBMsLBEZeRwVf9WX+FljdJkGwVZpRCk6LBX4aXnqAGyKqCxIAIJ3KP2yBdEg==
3619+
dependencies:
3620+
"@babel/runtime" "^7.3.1"
3621+
jss "10.0.0-alpha.17"
3622+
35743623
jss-plugin-global@^10.0.0:
35753624
version "10.0.0"
35763625
resolved "https://registry.yarnpkg.com/jss-plugin-global/-/jss-plugin-global-10.0.0.tgz#0fed1b6461e0d57d6e394f877529009bc1cb3cb6"
@@ -3579,6 +3628,15 @@ jss-plugin-global@^10.0.0:
35793628
"@babel/runtime" "^7.3.1"
35803629
jss "10.0.0"
35813630

3631+
3632+
version "10.0.0-alpha.17"
3633+
resolved "https://registry.yarnpkg.com/jss-plugin-nested/-/jss-plugin-nested-10.0.0-alpha.17.tgz#cb1c20cdc81558c164eaa333bbb24c88bef12202"
3634+
integrity sha512-onpFqv904KCujryf2t6IIV1/QoB7cSF7ojrd4UujcN5TPvYOvXF5bchi7jnHG5U0SLlRSDGMLJ9fhtoCknhEbw==
3635+
dependencies:
3636+
"@babel/runtime" "^7.3.1"
3637+
jss "10.0.0-alpha.17"
3638+
tiny-warning "^1.0.2"
3639+
35823640
jss-plugin-nested@^10.0.0:
35833641
version "10.0.0"
35843642
resolved "https://registry.yarnpkg.com/jss-plugin-nested/-/jss-plugin-nested-10.0.0.tgz#d37ecc013c3b0d0e4acc2b48f6b62da6ae53948b"
@@ -3588,6 +3646,14 @@ jss-plugin-nested@^10.0.0:
35883646
jss "10.0.0"
35893647
tiny-warning "^1.0.2"
35903648

3649+
3650+
version "10.0.0-alpha.17"
3651+
resolved "https://registry.yarnpkg.com/jss-plugin-props-sort/-/jss-plugin-props-sort-10.0.0-alpha.17.tgz#a49be72b8dc8e2861f8136661c53d130abb07ccd"
3652+
integrity sha512-KnbyrxCbtQTqpDx2mSZU/r/E5QnDPIVfIxRi8K+W/q4gZpomBvqWC+xgvAk9hbpmA6QBoQaOilV8o12w2IZ6fg==
3653+
dependencies:
3654+
"@babel/runtime" "^7.3.1"
3655+
jss "10.0.0-alpha.17"
3656+
35913657
jss-plugin-props-sort@^10.0.0:
35923658
version "10.0.0"
35933659
resolved "https://registry.yarnpkg.com/jss-plugin-props-sort/-/jss-plugin-props-sort-10.0.0.tgz#38a13407384c2a4a7c026659488350669b953b18"
@@ -3596,6 +3662,14 @@ jss-plugin-props-sort@^10.0.0:
35963662
"@babel/runtime" "^7.3.1"
35973663
jss "10.0.0"
35983664

3665+
3666+
version "10.0.0-alpha.17"
3667+
resolved "https://registry.yarnpkg.com/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.0.0-alpha.17.tgz#45617ccc2d695d77287554e7dbe3b9c37f5f5af4"
3668+
integrity sha512-8AuJB44Q+ehfkWVRi2XlRbUf6SrLmrHTa5EXd6dgQRCCRuvGmqX8Dl4fZvNeKRFjTLPZgzg9+31rqeOMhKa2vA==
3669+
dependencies:
3670+
"@babel/runtime" "^7.3.1"
3671+
jss "10.0.0-alpha.17"
3672+
35993673
jss-plugin-rule-value-function@^10.0.0:
36003674
version "10.0.0"
36013675
resolved "https://registry.yarnpkg.com/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.0.0.tgz#3ec1b781b7c86080136dbef6c36e91f20244b72e"
@@ -3604,6 +3678,15 @@ jss-plugin-rule-value-function@^10.0.0:
36043678
"@babel/runtime" "^7.3.1"
36053679
jss "10.0.0"
36063680

3681+
3682+
version "10.0.0-alpha.17"
3683+
resolved "https://registry.yarnpkg.com/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.0.0-alpha.17.tgz#7bb05076d1a14d20b567231c36e57ebf6cb6625f"
3684+
integrity sha512-wDq9EL0QaoMGSGifPEBb+/SA9LBcqPEW0jpL9ht+Z2t+lV7NNz0j7uCEOuE6FvNWqHzUKTsiATs1rTHPkzNBEQ==
3685+
dependencies:
3686+
"@babel/runtime" "^7.3.1"
3687+
css-vendor "^2.0.1"
3688+
jss "10.0.0-alpha.17"
3689+
36073690
jss-plugin-vendor-prefixer@^10.0.0:
36083691
version "10.0.0"
36093692
resolved "https://registry.yarnpkg.com/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.0.0.tgz#400280535b0f483a9c78105afe4eee61b70018eb"
@@ -3623,6 +3706,15 @@ [email protected], jss@^10.0.0:
36233706
is-in-browser "^1.1.3"
36243707
tiny-warning "^1.0.2"
36253708

3709+
3710+
version "10.0.0-alpha.17"
3711+
resolved "https://registry.yarnpkg.com/jss/-/jss-10.0.0-alpha.17.tgz#3057c85a846c3bd207c04aafd91c8277955d9c57"
3712+
integrity sha512-egGIUg+YRu0+U+XXlD0gmVtU/gW5sn7+qmDv7opwK5s8emZBE/VoN55X6CaMrAa0kLeGMldnI43KOWea6M9/mA==
3713+
dependencies:
3714+
"@babel/runtime" "^7.3.1"
3715+
is-in-browser "^1.1.3"
3716+
tiny-warning "^1.0.2"
3717+
36263718
jsx-ast-utils@^2.2.1:
36273719
version "2.2.1"
36283720
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.1.tgz#4d4973ebf8b9d2837ee91a8208cc66f3a2776cfb"
@@ -5162,9 +5254,9 @@ registry-url@^3.0.3:
51625254
rc "^1.0.1"
51635255

51645256
regjsgen@^0.5.0:
5165-
version "0.5.0"
5166-
resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.0.tgz#a7634dc08f89209c2049adda3525711fb97265dd"
5167-
integrity sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==
5257+
version "0.5.1"
5258+
resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz#48f0bf1a5ea205196929c0d9798b42d1ed98443c"
5259+
integrity sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==
51685260

51695261
regjsparser@^0.6.0:
51705262
version "0.6.0"

0 commit comments

Comments
 (0)