Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency eslint-plugin-react to ^7.31.7 #4976

Merged
merged 2 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,15 @@ exports[`rules snapshot: all stable rules 1`] = `
"react/no-this-in-sfc": 2,
"react/no-typos": 0,
"react/no-unescaped-entities": 2,
"react/no-unknown-property": 2,
"react/no-unknown-property": [
2,
{
"ignore": [
"jsx",
"global",
],
},
],
"react/no-unsafe": 0,
"react/no-unstable-nested-components": [
2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,15 @@ exports[`React preset: React preset 1`] = `
"react/no-this-in-sfc": 2,
"react/no-typos": 0,
"react/no-unescaped-entities": 2,
"react/no-unknown-property": 2,
"react/no-unknown-property": [
2,
{
"ignore": [
"jsx",
"global",
],
},
],
"react/no-unsafe": 0,
"react/no-unstable-nested-components": [
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.2.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react": "^7.31.7",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.0.0",
"eslint-plugin-relay": "^1.8.3",
Expand Down
12 changes: 11 additions & 1 deletion src/eslint-config-adeira/src/presets/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,17 @@ module.exports = ({
'react/no-this-in-sfc': ERROR,
'react/no-typos': OFF,
'react/no-unescaped-entities': ERROR,
'react/no-unknown-property': ERROR,
'react/no-unknown-property': [
ERROR,
{
ignore: [
// To support `<style global jsx>` from Next.js
// See: https://nextjs.org/docs/basic-features/built-in-css-support#css-in-js
'jsx',
'global',
],
},
],
'react/no-unsafe': OFF,
'react/no-unstable-nested-components': [ERROR, { allowAsProps: true }],
'react/no-unused-class-component-methods': ERROR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const ERROR = 2;

module.exports = {
rules: {
// we are having here fixtures with invalid SX definitions on purpose
// We are having here fixtures with invalid SX definitions (and other Eslint rules) on purpose:
'sx/no-unused-stylesheet': OFF,
'react/no-unknown-property': OFF,
},
};
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ __metadata:
eslint-plugin-n: ^15.2.5
eslint-plugin-prettier: ^4.2.1
eslint-plugin-promise: ^6.0.1
eslint-plugin-react: ^7.31.1
eslint-plugin-react: ^7.31.7
eslint-plugin-react-hooks: ^4.6.0
eslint-plugin-react-native: ^4.0.0
eslint-plugin-relay: ^1.8.3
Expand Down Expand Up @@ -9185,9 +9185,9 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-react@npm:^7.31.1":
version: 7.31.1
resolution: "eslint-plugin-react@npm:7.31.1"
"eslint-plugin-react@npm:^7.31.7":
version: 7.31.7
resolution: "eslint-plugin-react@npm:7.31.7"
dependencies:
array-includes: ^3.1.5
array.prototype.flatmap: ^1.3.0
Expand All @@ -9205,7 +9205,7 @@ __metadata:
string.prototype.matchall: ^4.0.7
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
checksum: 6217d4c4e36c8fea24facd0cdcf22b2fd38a3603db94ec7c0a6f430046c8564b6c6884e0a9d4a4b8766201f66e8b18af594002210421bf9b6623b1fc32e15a3a
checksum: 582d422f531d7d3894fc09ac941ef8b6ad595782cfca5e1d52af5895ce117def7a0ff8afeea0166bff7b6ceae8baec2313614b1571754f539575cfa9351cd2da
languageName: node
linkType: hard

Expand Down