Skip to content

Commit 59c3bdc

Browse files
authored
v4.0.1 (#26)
1 parent e65ce41 commit 59c3bdc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
expected="Class component should be written as a function react-prefer-function-component/react-prefer-function-component"
4646
if [[ "$output" != *"$expected"* ]]; then
4747
echo "❌ Fail"
48+
exit 1
4849
else
4950
echo "✅ Pass"
5051
fi
@@ -62,7 +63,7 @@ jobs:
6263
expected="Class component should be written as a function react-prefer-function-component/react-prefer-function-component"
6364
if [[ "$output" != *"$expected"* ]]; then
6465
echo "❌ Fail"
65-
# exit 1
66+
exit 1
6667
else
6768
echo "✅ Pass"
6869
fi

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v4.0.1
4+
5+
- Fix flat config issue. See [#23](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/pull/23). Thanks @MariaSolOs!
6+
37
## v4.0.0
48

59
- 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.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-prefer-function-component",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "ESLint plugin that prevents the use of JSX class components",
55
"license": "MIT",
66
"author": "Tate <[email protected]>",

0 commit comments

Comments
 (0)