Skip to content

Commit 11380cb

Browse files
feat(deps): update dependency eslint-plugin-react to ^7.37.2 (#179)
* feat(deps): update dependency eslint-plugin-react to ^7.37.2 * fix: type failures in react plugin --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pelle Wessman <[email protected]>
1 parent dcf46c8 commit 11380cb

File tree

3 files changed

+91
-57
lines changed

3 files changed

+91
-57
lines changed

lib/configs/jsx.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

3-
// @ts-ignore
4-
const react = require('eslint-plugin-react')
3+
const reactPlugin = require('eslint-plugin-react')
54

65
const JSX_IGNORES = ['**/*.js', '**/*.mjs', '**/*.cjs', '**/*.ts']
76

@@ -19,7 +18,7 @@ module.exports.jsx = /** @satisfies {import('eslint').Linter.Config} */ ({
1918
},
2019

2120
plugins: {
22-
react,
21+
react: /** @type {import('eslint').ESLint.Plugin} */ (reactPlugin),
2322
},
2423

2524
settings: {

package-lock.json

Lines changed: 88 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"eslint-plugin-import": "^2.31.0",
8787
"eslint-plugin-n": "^17.14.0",
8888
"eslint-plugin-promise": "^7.2.1",
89-
"eslint-plugin-react": "^7.36.1",
89+
"eslint-plugin-react": "^7.37.2",
9090
"find-up": "^5.0.0",
9191
"globals": "^15.13.0",
9292
"peowly": "^1.3.2",

0 commit comments

Comments
 (0)