Skip to content

Commit

Permalink
Bump eslint-plugin-react from 7.28.0 to 7.29.3
Browse files Browse the repository at this point in the history
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.28.0 to 7.29.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.28.0...v7.29.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and kodiakhq[bot] committed Mar 5, 2022
1 parent de3f5b4 commit 3b3e1e4
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/eslint-config-adeira/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- New rule [`@next/next/no-script-component-in-head`](https://github.com/vercel/next.js/blob/a52bd712fe797b59cfd05ceaa4c33096a0c346ff/errors/no-script-component-in-head-component.md) enabled (warnings or errors in strict mode).
- New rules [`react/iframe-missing-sandbox`](https://github.com/yannickcr/eslint-plugin-react/blob/24bf5947e9495808ef14fd0fbdd6a670a13bc443/docs/rules/iframe-missing-sandbox.md) and [`@next/next/no-script-component-in-head`](https://github.com/vercel/next.js/blob/a52bd712fe797b59cfd05ceaa4c33096a0c346ff/errors/no-script-component-in-head-component.md) enabled (warnings or errors in strict mode).
- Rule `react/jsx-key` is now a bit more strict (possibly catching previously missed errors).

# 7.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,8 @@ Object {
"react/forbid-foreign-prop-types": 0,
"react/forbid-prop-types": 0,
"react/function-component-definition": 0,
"react/hook-use-state": 0,
"react/iframe-missing-sandbox": 1,
"react/jsx-boolean-value": 0,
"react/jsx-child-element-spacing": "off",
"react/jsx-closing-bracket-location": "off",
Expand All @@ -869,7 +871,14 @@ Object {
"react/jsx-handler-names": 0,
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-key": 2,
"react/jsx-key": Array [
2,
Object {
"checkFragmentShorthand": true,
"checkKeyMustBeforeSpread": true,
"warnOnDuplicates": true,
},
],
"react/jsx-max-depth": 0,
"react/jsx-max-props-per-line": "off",
"react/jsx-newline": "off",
Expand Down Expand Up @@ -1178,4 +1187,9 @@ Snapshot Diff:
+ "jest/prefer-comparison-matcher": 2,
+ "jest/prefer-equality-matcher": 2,
"jest/prefer-expect-assertions": 0,
@@ --- --- @@
"react/hook-use-state": 0,
- "react/iframe-missing-sandbox": 1,
+ "react/iframe-missing-sandbox": 2,
"react/jsx-boolean-value": 0,
`;
Original file line number Diff line number Diff line change
Expand Up @@ -1005,12 +1005,21 @@ Object {
"react/forbid-foreign-prop-types": 0,
"react/forbid-prop-types": 0,
"react/function-component-definition": 0,
"react/hook-use-state": 0,
"react/iframe-missing-sandbox": 1,
"react/jsx-boolean-value": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-filename-extension": 0,
"react/jsx-fragments": 0,
"react/jsx-handler-names": 0,
"react/jsx-key": 2,
"react/jsx-key": Array [
2,
Object {
"checkFragmentShorthand": true,
"checkKeyMustBeforeSpread": true,
"warnOnDuplicates": true,
},
],
"react/jsx-max-depth": 0,
"react/jsx-no-bind": Array [
2,
Expand Down
2 changes: 1 addition & 1 deletion src/eslint-config-adeira/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"eslint-plugin-n": "^15.0.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-native": "^4.0.0",
"eslint-plugin-relay": "^1.8.3",
Expand Down
11 changes: 10 additions & 1 deletion src/eslint-config-adeira/src/presets/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,21 @@ module.exports = ({
'react/forbid-elements': OFF,
'react/forbid-foreign-prop-types': OFF,
'react/forbid-prop-types': OFF,
'react/hook-use-state': OFF,
'react/iframe-missing-sandbox': NEXT_VERSION_ERROR,
'react/jsx-boolean-value': OFF,
'react/jsx-curly-brace-presence': OFF,
'react/jsx-filename-extension': OFF,
'react/jsx-fragments': OFF,
'react/jsx-handler-names': OFF,
'react/jsx-key': ERROR,
'react/jsx-key': [
ERROR,
{
checkFragmentShorthand: true,
checkKeyMustBeforeSpread: true,
warnOnDuplicates: true,
},
],
'react/jsx-max-depth': OFF,
'react/jsx-no-bind': [
ERROR,
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7113,22 +7113,22 @@ eslint-plugin-react-native@^4.0.0:
"@babel/traverse" "^7.7.4"
eslint-plugin-react-native-globals "^0.1.1"

eslint-plugin-react@^7.28.0:
version "7.28.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.28.0.tgz#8f3ff450677571a659ce76efc6d80b6a525adbdf"
integrity sha512-IOlFIRHzWfEQQKcAD4iyYDndHwTQiCMcJVJjxempf203jnNLUnW34AXLrV33+nEXoifJE2ZEGmcjKPL8957eSw==
eslint-plugin-react@^7.29.3:
version "7.29.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.3.tgz#f4eab757f2756d25d6d4c2a58a9e20b004791f05"
integrity sha512-MzW6TuCnDOcta67CkpDyRfRsEVx9FNMDV8wZsDqe1luHPdGTrQIUaUXD27Ja3gHsdOIs/cXzNchWGlqm+qRVRg==
dependencies:
array-includes "^3.1.4"
array.prototype.flatmap "^1.2.5"
doctrine "^2.1.0"
estraverse "^5.3.0"
jsx-ast-utils "^2.4.1 || ^3.0.0"
minimatch "^3.0.4"
minimatch "^3.1.2"
object.entries "^1.1.5"
object.fromentries "^2.0.5"
object.hasown "^1.1.0"
object.values "^1.1.5"
prop-types "^15.7.2"
prop-types "^15.8.1"
resolve "^2.0.0-next.3"
semver "^6.3.0"
string.prototype.matchall "^4.0.6"
Expand Down Expand Up @@ -10860,10 +10860,10 @@ minimalistic-crypto-utils@^1.0.1:
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=

minimatch@^3.0.2, minimatch@^3.0.4:
version "3.0.5"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.5.tgz#4da8f1290ee0f0f8e83d60ca69f8f134068604a3"
integrity sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==
minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"

Expand Down

0 comments on commit 3b3e1e4

Please sign in to comment.