Skip to content

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 f2cfc32 commit b8ce4a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eslint/rules/react.js
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 b8ce4a0

Please sign in to comment.