Skip to content

Commit

Permalink
Fix recommended config (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmev authored Aug 1, 2023
1 parent abbe094 commit 092a97b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ $ npm install eslint eslint-plugin-react-prefer-function-component --save-dev

```js
module.exports = {
plugins: ["react-prefer-function-component"],
extends: ["plugin:react-prefer-function-component/recommended"],
};
```
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import PreferFunctionComponent from "./prefer-function-component";

module.exports = {
configs: {
plugins: ["react-prefer-function-component"],
recommended: {
plugins: ["react-prefer-function-component"],
rules: {
"react-prefer-function-component/react-prefer-function-component":
"error",
Expand Down

0 comments on commit 092a97b

Please sign in to comment.