Skip to content

Commit

Permalink
Fix #349 Add eslint-plugin-react-form-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Jan 20, 2022
1 parent e5b0c3e commit 18244a2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The most strict (yet practical) ESLint config.
Aims to include as many plugins and rules as possible to make your code
extremely consistent and robust.

**33 plugins. 1032 rules.**
**34 plugins. 1036 rules.**

## Usage

Expand Down Expand Up @@ -151,10 +151,11 @@ Config for React.
| [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) | 77 |
| [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) | 32 |
| [eslint-plugin-react-perf](https://github.com/cvazac/eslint-plugin-react-perf) | 4 |
| [eslint-plugin-react-form-fields](https://github.com/kotarella1110/eslint-plugin-react-form-fields) | 4 |
| [@shopify/eslint-plugin](https://github.com/Shopify/web-configs/tree/main/packages/eslint-plugin) | 3 |
| [eslint-plugin-react-hook-form](https://github.com/andykao1213/eslint-plugin-react-hook-form) | 3 |
| [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks) | 2 |
| **Total:** | **121** |
| **Total:** | **125** |

### `hardcore/react-testing-library`

Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"eslint-plugin-putout": "^13.5.0",
"eslint-plugin-ramda": "^2.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-form-fields": "^1.2.0",
"eslint-plugin-react-hook-form": "^0.2.2",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-perf": "^3.3.1",
Expand Down
4 changes: 4 additions & 0 deletions react.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"plugin:react-perf/all",
"plugin:jsx-a11y/recommended",
"plugin:react-hook-form/recommended",
"plugin:react-form-fields/recommended",
"./prettier.json"
],

Expand Down Expand Up @@ -55,6 +56,9 @@
"@shopify/react-hooks-strict-return": "error",
"@shopify/react-no-multiple-render-methods": "error",

"react-form-fields/styled-no-mix-controlled-with-uncontrolled": "error",
"react-form-fields/styled-no-only-value-prop": "error",

"react/jsx-no-literals": "off",
"react/react-in-jsx-scope": "off"
},
Expand Down

0 comments on commit 18244a2

Please sign in to comment.