Skip to content

Commit 941ca15

Browse files
authored
build(deps-dev): upgrade eslint plugin react (webpack#6383)
* upgrade eslint-plugin-react * fix lint error
1 parent d75188c commit 941ca15

File tree

3 files changed

+15
-30
lines changed

3 files changed

+15
-30
lines changed

.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ module.exports = {
1919
'react/react-in-jsx-scope': 'off', // ditto
2020
'react-hooks/rules-of-hooks': 'error',
2121
'react-hooks/exhaustive-deps': 'warn',
22+
'react/no-unknown-property': [
23+
'error',
24+
{
25+
ignore: ['watch', 'align'],
26+
},
27+
],
2228
},
2329
settings: {
2430
react: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"eslint-config-prettier": "^8.5.0",
9595
"eslint-plugin-cypress": "^2.12.1",
9696
"eslint-plugin-mdx": "^2.0.4",
97-
"eslint-plugin-react": "^7.31.1",
97+
"eslint-plugin-react": "^7.31.7",
9898
"eslint-plugin-react-hooks": "^4.6.0",
9999
"front-matter": "^4.0.2",
100100
"github-slugger": "^1.4.0",

yarn.lock

+8-29
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,7 @@
148148
dependencies:
149149
"@babel/highlight" "^7.18.6"
150150

151-
"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.18.8":
152-
version "7.18.8"
153-
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.8.tgz#2483f565faca607b8535590e84e7de323f27764d"
154-
integrity sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==
155-
156-
"@babel/compat-data@^7.19.0":
151+
"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.18.8", "@babel/compat-data@^7.19.0":
157152
version "7.19.0"
158153
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.19.0.tgz#2a592fd89bacb1fcde68de31bee4f2f2dacb0e86"
159154
integrity sha512-y5rqgTTPTmaF5e2nVhOxw+Ur9HDJLsWb6U/KpgUzRZEdPfE6VOubXBKLdbcUTijzRptednSBDQbYZBOSqJxpJw==
@@ -267,15 +262,7 @@
267262
dependencies:
268263
"@babel/types" "^7.18.6"
269264

270-
"@babel/helper-function-name@^7.18.6", "@babel/helper-function-name@^7.18.9":
271-
version "7.18.9"
272-
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0"
273-
integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==
274-
dependencies:
275-
"@babel/template" "^7.18.6"
276-
"@babel/types" "^7.18.9"
277-
278-
"@babel/helper-function-name@^7.19.0":
265+
"@babel/helper-function-name@^7.18.6", "@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0":
279266
version "7.19.0"
280267
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c"
281268
integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==
@@ -1119,7 +1106,7 @@
11191106
dependencies:
11201107
regenerator-runtime "^0.13.4"
11211108

1122-
"@babel/template@^7.18.10", "@babel/template@^7.18.6", "@babel/template@^7.3.3":
1109+
"@babel/template@^7.18.10", "@babel/template@^7.3.3":
11231110
version "7.18.10"
11241111
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71"
11251112
integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==
@@ -5006,10 +4993,10 @@ eslint-plugin-react-hooks@^4.6.0:
50064993
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
50074994
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
50084995

5009-
eslint-plugin-react@^7.31.1:
5010-
version "7.31.1"
5011-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.1.tgz#d29793ed27743f3ed8a473c347b1bf5a0a8fb9af"
5012-
integrity sha512-j4/2xWqt/R7AZzG8CakGHA6Xa/u7iR8Q3xCxY+AUghdT92bnIDOBEefV456OeH0QvBcroVc0eyvrrLSyQGYIfg==
4996+
eslint-plugin-react@^7.31.7:
4997+
version "7.31.7"
4998+
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.7.tgz#36fb1c611a7db5f757fce09cbbcc01682f8b0fbb"
4999+
integrity sha512-8NldBTeYp/kQoTV1uT0XF6HcmDqbgZ0lNPkN0wlRw8DJKXEnaWu+oh/6gt3xIhzvQ35wB2Y545fJhIbJSZ2NNw==
50135000
dependencies:
50145001
array-includes "^3.1.5"
50155002
array.prototype.flatmap "^1.3.0"
@@ -5167,15 +5154,7 @@ estree-util-is-identifier-name@^2.0.0:
51675154
resolved "https://registry.yarnpkg.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-2.0.1.tgz#cf07867f42705892718d9d89eb2d85eaa8f0fcb5"
51685155
integrity sha512-rxZj1GkQhY4x1j/CSnybK9cGuMFQYFPLq0iNyopqf14aOVLFtMv7Esika+ObJWPWiOHuMOAHz3YkWoLYYRnzWQ==
51695156

5170-
estree-util-visit@^1.0.0:
5171-
version "1.1.0"
5172-
resolved "https://registry.yarnpkg.com/estree-util-visit/-/estree-util-visit-1.1.0.tgz#c0ea7942c40ac7889a77b57a11e92f987744bc6f"
5173-
integrity sha512-3lXJ4Us9j8TUif9cWcQy81t9p5OLasnDuuhrFiqb+XstmKC1d1LmrQWYsY49/9URcfHE64mPypDBaNK9NwWDPQ==
5174-
dependencies:
5175-
"@types/estree-jsx" "^0.0.1"
5176-
"@types/unist" "^2.0.0"
5177-
5178-
estree-util-visit@^1.2.0:
5157+
estree-util-visit@^1.0.0, estree-util-visit@^1.2.0:
51795158
version "1.2.0"
51805159
resolved "https://registry.yarnpkg.com/estree-util-visit/-/estree-util-visit-1.2.0.tgz#aa0311a9c2f2aa56e9ae5e8b9d87eac14e4ec8f8"
51815160
integrity sha512-wdsoqhWueuJKsh5hqLw3j8lwFqNStm92VcwtAOAny8g/KS/l5Y8RISjR4k5W6skCj3Nirag/WUCMS0Nfy3sgsg==

0 commit comments

Comments
 (0)