Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Commit fb6939e

Browse files
committed
add eslint
1 parent 7b04a39 commit fb6939e

File tree

3 files changed

+64
-10
lines changed

3 files changed

+64
-10
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,19 @@
121121
"videojs-hotkeys": "^0.2.27",
122122
"videojs-landscape-fullscreen": "^11.1.0",
123123
"videojs-theater-mode": "^1.0.0",
124-
"webpack": "^5.44.0",
124+
"webpack": "^5.54.0",
125125
"workbox-webpack-plugin": "^6.2.0-alpha.0"
126126
},
127127
"devDependencies": {
128128
"@lingui/cli": "^3.9.0",
129129
"@lingui/loader": "^3.9.0",
130130
"@lingui/macro": "^3.9.0",
131131
"babel-plugin-add-module-exports": "^1.0.0",
132-
"babel-plugin-inline-react-svg": "^2.0.1"
132+
"babel-plugin-inline-react-svg": "^2.0.1",
133+
"eslint-config-next": "11.1.2"
133134
},
134135
"resolutions": {
135-
"webpack": "^5.44.0",
136+
"webpack": "^5.54.0",
136137
"workbox-webpack-plugin": "^6.2.0-alpha.0"
137138
}
138139
}

yarn.lock

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,13 @@
19271927
resolved "https://registry.yarnpkg.com/@next/env/-/env-11.1.3-canary.33.tgz#76d66a808fbf89375e03e7e095d1385eb91a9c26"
19281928
integrity sha512-cKlpNR/tZslKq7oWMsLYGo20aQrno43wdmVTeoMIzukLJae5MC6+Q0jrPC4K+k+qp+rF63A3U9NGIFXEO/rl/A==
19291929

1930+
"@next/eslint-plugin-next@11.1.2":
1931+
version "11.1.2"
1932+
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-11.1.2.tgz#f26cf90bcb6cd2e4645e2ba253bbc9aaaa43a170"
1933+
integrity sha512-cN+ojHRsufr9Yz0rtvjv8WI5En0RPZRJnt0y16Ha7DD+0n473evz8i1ETEJHmOLeR7iPJR0zxRrxeTN/bJMOjg==
1934+
dependencies:
1935+
glob "7.1.7"
1936+
19301937
"@next/polyfill-module@11.1.3-canary.33":
19311938
version "11.1.3-canary.33"
19321939
resolved "https://registry.yarnpkg.com/@next/polyfill-module/-/polyfill-module-11.1.3-canary.33.tgz#13584c50fae08e06a008972b80ffba6ade3d3bb4"
@@ -2120,6 +2127,11 @@
21202127
estree-walker "^1.0.1"
21212128
picomatch "^2.2.2"
21222129

2130+
"@rushstack/eslint-patch@^1.0.6":
2131+
version "1.0.7"
2132+
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.0.7.tgz#82f83dcc2eb9b1e1d559b3aca96783e285eb8592"
2133+
integrity sha512-3Zi2LGbCLDz4IIL7ir6wD0u/ggHotLkK5SlVzFzTcYaNgPR4MAt/9JYZqXWKcofPWEoptfpnCJU8Bq9sxw8QUg==
2134+
21232135
"@sentry/browser@^6.3.0-beta.4":
21242136
version "6.13.2"
21252137
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.13.2.tgz#8b731ecf8c3cdd92a4b6893a26f975fd5844056d"
@@ -2675,7 +2687,7 @@
26752687
eslint-scope "^5.0.0"
26762688
eslint-utils "^2.0.0"
26772689

2678-
"@typescript-eslint/parser@^4.5.0":
2690+
"@typescript-eslint/parser@^4.20.0", "@typescript-eslint/parser@^4.5.0":
26792691
version "4.31.2"
26802692
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.31.2.tgz#54aa75986e3302d91eff2bbbaa6ecfa8084e9c34"
26812693
integrity sha512-EcdO0E7M/sv23S/rLvenHkb58l3XhuSZzKf6DBvLgHqOYdL6YFMYVtreGFWirxaU2mS1GYDby3Lyxco7X5+Vjw==
@@ -5820,21 +5832,47 @@ escodegen@^2.0.0:
58205832
optionalDependencies:
58215833
source-map "~0.6.1"
58225834

5835+
eslint-config-next@11.1.2:
5836+
version "11.1.2"
5837+
resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-11.1.2.tgz#73c918f2fa6120d5f65080bf3fcf6b154905707e"
5838+
integrity sha512-dFutecxX2Z5/QVlLwdtKt+gIfmNMP8Qx6/qZh3LM/DFVdGJEAnUKrr4VwGmACB2kx/PQ5bx3R+QxnEg4fDPiTg==
5839+
dependencies:
5840+
"@next/eslint-plugin-next" "11.1.2"
5841+
"@rushstack/eslint-patch" "^1.0.6"
5842+
"@typescript-eslint/parser" "^4.20.0"
5843+
eslint-import-resolver-node "^0.3.4"
5844+
eslint-import-resolver-typescript "^2.4.0"
5845+
eslint-plugin-import "^2.22.1"
5846+
eslint-plugin-jsx-a11y "^6.4.1"
5847+
eslint-plugin-react "^7.23.1"
5848+
eslint-plugin-react-hooks "^4.2.0"
5849+
58235850
eslint-config-react-app@^6.0.0:
58245851
version "6.0.0"
58255852
resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-6.0.0.tgz#ccff9fc8e36b322902844cbd79197982be355a0e"
58265853
integrity sha512-bpoAAC+YRfzq0dsTk+6v9aHm/uqnDwayNAXleMypGl6CpxI9oXXscVHo4fk3eJPIn+rsbtNetB4r/ZIidFIE8A==
58275854
dependencies:
58285855
confusing-browser-globals "^1.0.10"
58295856

5830-
eslint-import-resolver-node@^0.3.6:
5857+
eslint-import-resolver-node@^0.3.4, eslint-import-resolver-node@^0.3.6:
58315858
version "0.3.6"
58325859
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd"
58335860
integrity sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==
58345861
dependencies:
58355862
debug "^3.2.7"
58365863
resolve "^1.20.0"
58375864

5865+
eslint-import-resolver-typescript@^2.4.0:
5866+
version "2.5.0"
5867+
resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.5.0.tgz#07661966b272d14ba97f597b51e1a588f9722f0a"
5868+
integrity sha512-qZ6e5CFr+I7K4VVhQu3M/9xGv9/YmwsEXrsm3nimw8vWaVHRDrQRp26BgCypTxBp3vUp4o5aVEJRiy0F2DFddQ==
5869+
dependencies:
5870+
debug "^4.3.1"
5871+
glob "^7.1.7"
5872+
is-glob "^4.0.1"
5873+
resolve "^1.20.0"
5874+
tsconfig-paths "^3.9.0"
5875+
58385876
eslint-module-utils@^2.6.2:
58395877
version "2.6.2"
58405878
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.2.tgz#94e5540dd15fe1522e8ffa3ec8db3b7fa7e7a534"
@@ -5879,7 +5917,7 @@ eslint-plugin-jest@^24.1.0:
58795917
dependencies:
58805918
"@typescript-eslint/experimental-utils" "^4.0.1"
58815919

5882-
eslint-plugin-jsx-a11y@^6.3.1:
5920+
eslint-plugin-jsx-a11y@^6.3.1, eslint-plugin-jsx-a11y@^6.4.1:
58835921
version "6.4.1"
58845922
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz#a2d84caa49756942f42f1ffab9002436391718fd"
58855923
integrity sha512-0rGPJBbwHoGNPU73/QCLP/vveMlM1b1Z9PponxO87jfr6tuH5ligXbDT6nHSSzBC8ovX2Z+BQu7Bk5D/Xgq9zg==
@@ -5901,7 +5939,7 @@ eslint-plugin-react-hooks@^4.2.0:
59015939
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556"
59025940
integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==
59035941

5904-
eslint-plugin-react@^7.21.5:
5942+
eslint-plugin-react@^7.21.5, eslint-plugin-react@^7.23.1:
59055943
version "7.26.0"
59065944
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.26.0.tgz#3ae019a35d542b98e5af9e2f96b89c232c74b55b"
59075945
integrity sha512-dceliS5itjk4EZdQYtLMz6GulcsasguIs+VTXuiC7Q5IPIdGTkyfXVdmsQOqEhlD9MciofH4cMcT1bw1WWNxCQ==
@@ -6746,7 +6784,19 @@ glob-to-regexp@^0.4.1:
67466784
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
67476785
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
67486786

6749-
glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
6787+
glob@7.1.7:
6788+
version "7.1.7"
6789+
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
6790+
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
6791+
dependencies:
6792+
fs.realpath "^1.0.0"
6793+
inflight "^1.0.4"
6794+
inherits "2"
6795+
minimatch "^3.0.4"
6796+
once "^1.3.0"
6797+
path-is-absolute "^1.0.0"
6798+
6799+
glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7:
67506800
version "7.2.0"
67516801
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
67526802
integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
@@ -13569,7 +13619,7 @@ ts-pnp@1.2.0, ts-pnp@^1.1.6:
1356913619
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.2.0.tgz#a500ad084b0798f1c3071af391e65912c86bca92"
1357013620
integrity sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==
1357113621

13572-
tsconfig-paths@^3.11.0:
13622+
tsconfig-paths@^3.11.0, tsconfig-paths@^3.9.0:
1357313623
version "3.11.0"
1357413624
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz#954c1fe973da6339c78e06b03ce2e48810b65f36"
1357513625
integrity sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA==
@@ -14295,7 +14345,7 @@ webpack-sources@^3.2.0:
1429514345
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.1.tgz#251a7d9720d75ada1469ca07dbb62f3641a05b6d"
1429614346
integrity sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==
1429714347

14298-
webpack@4.44.2, webpack@^5.44.0:
14348+
webpack@4.44.2, webpack@^5.54.0:
1429914349
version "5.54.0"
1430014350
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.54.0.tgz#629f0cd14c7a4340af758a3c7cef25c50670ae4d"
1430114351
integrity sha512-MAVKJMsIUotOQKzFOmN8ZkmMlj7BOyjDU6t1lomW9dWOme5WTStzGa3HMLdV1KYD1AiFETGsznL4LMSvj4tukw==

0 commit comments

Comments
 (0)