Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
feat(eslint): enable react/hook-use-state
Browse files Browse the repository at this point in the history
Resolves #1
  • Loading branch information
mrmckeb committed Sep 21, 2022
1 parent d634149 commit 09c4ee4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eslint/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ module.exports = {
* 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/button-has-type.md
*/
'react/button-has-type': 'warn',

/**
* Require consistent function type for function components.
*
* 🔧 Fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/function-component-definition.md
*/
'react/function-component-definition': 'warn',
/**
* Require destructuring and symmetric naming of `useState` hook value and setter variables.
*
* 🚫 Not fixable - https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md
*/
'react/hook-use-state': 'warn',
/**
* Require consistent boolean attributes notation in JSX.
*
Expand Down

0 comments on commit 09c4ee4

Please sign in to comment.