Skip to content

Commit 96f5419

Browse files
authored
v4 (#22)
1 parent 35c9afc commit 96f5419

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v4.0.0
4+
5+
- Add `react-` prefix to the flat configuration rule name. When using ESLint's flat configuration, the exported configuration from this package now "react-prefer-function-component". Previously it was "prefer-function-component". Practically speaking, no changes are expected from consumers of this package.
6+
7+
Action would only be necessary if there is an existing plugin in your ESLint configuration using the "react-prefer-function-component" name, or if you're programmatically processing your ESLint configuration and expecting to find "prefer-function-component".
8+
9+
See [#20](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/pull/20). Thanks @MariaSolOs!
10+
311
## v3.4.0
412

513
- Improved TypeScript type for the configuration object. See [#17](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/pull/17). Thanks @PrettyCoffee!

packages/eslint-plugin-react-prefer-function-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-prefer-function-component",
3-
"version": "3.4.0",
3+
"version": "4.0.0",
44
"description": "ESLint plugin that prevents the use of JSX class components",
55
"license": "MIT",
66
"author": "Tate <tatethurston@gmail.com>",

0 commit comments

Comments
 (0)