@willbooster/eslint-config-js-react 11.1.0 → 11.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,10 +6,12 @@ You need to do the following command to install peer dependencies.
6
6
  ```sh
7
7
  yarn add -D @willbooster/eslint-config-js-react \
8
8
  eslint \
9
+ eslint-config-flat-gitignore \
9
10
  eslint-config-prettier \
10
11
  eslint-plugin-import-x \
11
12
  eslint-plugin-prettier \
12
13
  eslint-plugin-react \
14
+ eslint-plugin-react-compiler \
13
15
  eslint-plugin-react-hooks \
14
16
  eslint-plugin-sort-class-members \
15
17
  eslint-plugin-sort-destructure-keys \
package/eslint.config.js CHANGED
@@ -2,6 +2,7 @@ import jsConfig from '@willbooster/eslint-config-js';
2
2
  import eslintConfigFlatGitignore from 'eslint-config-flat-gitignore';
3
3
  import eslintConfigPrettier from 'eslint-config-prettier';
4
4
  import eslintPluginReact from 'eslint-plugin-react';
5
+ import eslintPluginReactCompiler from 'eslint-plugin-react-compiler';
5
6
  import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
6
7
 
7
8
  export default [
@@ -14,6 +15,8 @@ export default [
14
15
  eslintPluginReact.configs.flat['jsx-runtime'],
15
16
  // cf. https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#flat-config-eslintconfigjsts
16
17
  eslintPluginReactHooks.configs['recommended-latest'],
18
+ // cf. https://www.npmjs.com/package/eslint-plugin-react-compiler
19
+ eslintPluginReactCompiler.configs.recommended,
17
20
  {
18
21
  settings: {
19
22
  react: {
@@ -38,7 +41,6 @@ export default [
38
41
  'react/prop-types': 'off',
39
42
  },
40
43
  },
41
- // Add eslint-config-flat-gitignore before eslintConfigPrettier
42
44
  eslintConfigFlatGitignore(),
43
45
  // cf. https://github.com/prettier/eslint-config-prettier#installation
44
46
  eslintConfigPrettier,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-js-react",
3
- "version": "11.1.0",
3
+ "version": "11.3.0",
4
4
  "description": "A ESLint flat config for JavaScript projects using React",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -10,6 +10,7 @@
10
10
  "eslint.config.js"
11
11
  ],
12
12
  "scripts": {
13
+ "check-for-ai": "yarn install > /dev/null && yarn format > /dev/null && yarn lint-fix --quiet && yarn typecheck && yarn test --silent",
13
14
  "cleanup": "yarn format && yarn lint-fix",
14
15
  "format": "sort-package-json && yarn prettify",
15
16
  "lint": "eslint --color",
@@ -19,27 +20,28 @@
19
20
  },
20
21
  "prettier": "@willbooster/prettier-config",
21
22
  "dependencies": {
22
- "@willbooster/eslint-config-js": "11.1.0"
23
+ "@willbooster/eslint-config-js": "11.2.0"
23
24
  },
24
25
  "devDependencies": {
25
- "@eslint/js": "9.22.0",
26
+ "@eslint/js": "9.28.0",
26
27
  "@willbooster/prettier-config": "10.0.0",
27
- "eslint": "9.21.0",
28
+ "eslint": "9.27.0",
28
29
  "eslint-config-flat-gitignore": "2.1.0",
29
- "eslint-config-prettier": "10.1.1",
30
- "eslint-plugin-import-x": "4.6.1",
31
- "eslint-plugin-react": "7.37.4",
30
+ "eslint-config-prettier": "10.1.5",
31
+ "eslint-plugin-import-x": "4.15.0",
32
+ "eslint-plugin-react": "7.37.5",
33
+ "eslint-plugin-react-compiler": "19.1.0-rc.2",
32
34
  "eslint-plugin-react-hooks": "5.2.0",
33
35
  "eslint-plugin-sort-class-members": "1.21.0",
34
36
  "eslint-plugin-sort-destructure-keys": "2.0.0",
35
- "eslint-plugin-unicorn": "57.0.0",
37
+ "eslint-plugin-unicorn": "59.0.1",
36
38
  "eslint-plugin-unused-imports": "4.1.4",
37
- "globals": "16.0.0",
38
- "lint-staged": "15.4.3",
39
+ "globals": "16.2.0",
40
+ "lint-staged": "16.1.0",
39
41
  "micromatch": "4.0.8",
40
42
  "prettier": "3.5.3",
41
- "react": "19.0.0",
42
- "sort-package-json": "3.0.0"
43
+ "react": "19.1.0",
44
+ "sort-package-json": "3.2.1"
43
45
  },
44
46
  "peerDependencies": {
45
47
  "@eslint/js": ">=9",
@@ -48,6 +50,7 @@
48
50
  "eslint-config-prettier": ">=10",
49
51
  "eslint-plugin-import-x": ">=4",
50
52
  "eslint-plugin-react": ">=7",
53
+ "eslint-plugin-react-compiler": ">=19",
51
54
  "eslint-plugin-react-hooks": ">=5",
52
55
  "eslint-plugin-sort-class-members": ">=1.21",
53
56
  "eslint-plugin-sort-destructure-keys": ">=2",