Skip to content

Commit

Permalink
feat(deps): bump eslint-plugin-react from 7.26.1 to 7.27.1 (#1015)
Browse files Browse the repository at this point in the history
* build(deps): bump eslint-plugin-react from 7.26.1 to 7.27.1

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.26.1 to 7.27.1.
- [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.26.1...v7.27.1)

---
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>

* feat(react): add rules

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ybiquitous authored Nov 19, 2021
1 parent 92512a1 commit 6cf12e6
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 75 deletions.
147 changes: 73 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-regexp": "^1.5.0"
},
Expand Down
3 changes: 3 additions & 0 deletions rules/plugins/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ module.exports = {
"react/no-access-state-in-setstate": "error",
"react/no-adjacent-inline-elements": "error",
"react/no-array-index-key": "error",
"react/no-arrow-function-lifecycle": "error",
"react/no-danger": "warn",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-invalid-html-attribute": "error",
"react/no-multi-comp": ["error", { ignoreStateless: true }],
"react/no-namespace": "error",
"react/no-redundant-should-component-update": "error",
"react/no-set-state": "error",
"react/no-this-in-sfc": "error",
"react/no-typos": "error",
"react/no-unstable-nested-components": "error",
"react/no-unused-class-component-methods": "error",
"react/no-unused-prop-types": "error",
"react/no-unused-state": "error",
"react/no-will-update-set-state": "error",
Expand Down

0 comments on commit 6cf12e6

Please sign in to comment.