Skip to content

Commit d688c9f

Browse files
authored
v5.0.0 (#30)
1 parent fb0ca63 commit d688c9f

File tree

8 files changed

+749
-685
lines changed

8 files changed

+749
-685
lines changed

CHANGELOG.md

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

3+
## v5.0.0
4+
5+
- `allowComponentDidCatch` has been replaced with `allowErrorBoundary`. Like `allowComponentDidCatch`, `allowErrorBoundary` defaults to true, but `allowErrorBoundary` allows class components that use `componentDidCatch` and/or `getDerivedStateFromError`. No change is required if you're using the defaults for this lint rule. If you've disabled `allowComponentDidCatch`, you'll need to make the following change:
6+
7+
```diff
8+
rules: {
9+
"react-prefer-function-component/react-prefer-function-component": [
10+
"error",
11+
- { allowComponentDidCatch: false },
12+
+ { allowErrorBoundary: false },
13+
],
14+
},
15+
```
16+
17+
See [#29](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/pull/29), thanks @henryqdineen!
18+
319
## v4.0.1
420

521
- Fix flat config issue. See [#23](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/pull/23). Thanks @MariaSolOs!

examples/custom-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"license": "ISC",
1010
"main": "index.js",
1111
"devDependencies": {
12-
"eslint": "^9.22.0",
13-
"eslint-plugin-react": "^7.37.4",
12+
"eslint": "9.37.0",
13+
"eslint-plugin-react": "^7.37.5",
1414
"eslint-plugin-react-prefer-function-component": "workspace:*"
1515
}
1616
}

examples/flat-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"license": "ISC",
1111
"main": "index.js",
1212
"devDependencies": {
13-
"eslint": "^9.22.0",
14-
"eslint-plugin-react": "^7.37.4",
13+
"eslint": "9.37.0",
14+
"eslint-plugin-react": "^7.37.5",
1515
"eslint-plugin-react-prefer-function-component": "workspace:*"
1616
}
1717
}

examples/recommended-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"license": "ISC",
1010
"main": "index.js",
1111
"devDependencies": {
12-
"eslint": "^9.22.0",
13-
"eslint-plugin-react": "^7.37.4",
12+
"eslint": "9.37.0",
13+
"eslint-plugin-react": "^7.37.5",
1414
"eslint-plugin-react-prefer-function-component": "workspace:*"
1515
}
1616
}

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@
2525
},
2626
"devDependencies": {
2727
"@types/eslint": "^9.6.1",
28-
"@types/estree": "^1.0.6",
29-
"@types/node": "^22.13.10",
30-
"@typescript-eslint/eslint-plugin": "^8.27.0",
31-
"@typescript-eslint/parser": "^8.27.0",
28+
"@types/estree": "^1.0.8",
29+
"@types/node": "^22.19.1",
30+
"@typescript-eslint/eslint-plugin": "^8.48.0",
31+
"@typescript-eslint/parser": "^8.48.0",
3232
"@vitest/coverage-v8": "3.0.9",
33-
"eslint": "^9.22.0",
34-
"eslint-config-prettier": "^10.1.1",
35-
"eslint-plugin-react": "^7.37.4",
33+
"eslint": "9.37.0",
34+
"eslint-config-prettier": "^10.1.8",
35+
"eslint-plugin-react": "^7.37.5",
3636
"eslint-plugin-react-hooks": "^5.2.0",
3737
"husky": "^9.1.7",
38-
"prettier": "^3.5.3",
38+
"prettier": "^3.7.1",
3939
"prettier-package-json": "^2.8.0",
40-
"typescript": "^5.8.2",
41-
"vitest": "^3.0.9"
40+
"typescript": "^5.9.3",
41+
"vitest": "^3.2.4"
4242
},
4343
"packageManager": "pnpm@8.6.9"
4444
}

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

Lines changed: 2 additions & 2 deletions
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.1",
3+
"version": "5.0.0",
44
"description": "ESLint plugin that prevents the use of JSX class components",
55
"license": "MIT",
66
"author": "Tate <tatethurston@gmail.com>",
@@ -30,7 +30,7 @@
3030
"lint jsx class"
3131
],
3232
"devDependencies": {
33-
"eslint": "^9.22.0"
33+
"eslint": "9.37.0"
3434
},
3535
"exports": {
3636
"./package.json": "./package.json",

packages/flat-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"eslint": "^9.22.0",
14+
"eslint": "9.37.0",
1515
"eslint-plugin-react-prefer-function-component": "workspace:^"
1616
}
1717
}

0 commit comments

Comments
 (0)