@wistia/eslint-config 2.3.0 → 2.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @wistia/eslint-config
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#448](https://github.com/wistia/eslint-config/pull/448) [`1ecf9aa`](https://github.com/wistia/eslint-config/commit/1ecf9aa3150c84b0ba8ca7dd40e2b3a6ffeebf31) Thanks [@okize](https://github.com/okize)! - feat: migrate from eslint-plugin-react to @eslint-react/eslint-plugin
8
+
9
+ ## 2.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#445](https://github.com/wistia/eslint-config/pull/445) [`cb7714e`](https://github.com/wistia/eslint-config/commit/cb7714ea382968ead847f9bac5f5b8eff6c27006) Thanks [@okize](https://github.com/okize)! - fix: `vitest/no-importing-vitest-globals` should be off because we enable `vitest/prefer-importing-vitest-globals`
14
+
3
15
  ## 2.3.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.12.0",
6
6
  "type": "module",
@@ -38,6 +38,7 @@
38
38
  "test:export": "check-export-map"
39
39
  },
40
40
  "dependencies": {
41
+ "@eslint-react/eslint-plugin": "^3.0.0",
41
42
  "@eslint/compat": "^2.0.3",
42
43
  "@eslint/js": "^10.0.1",
43
44
  "@stylistic/eslint-plugin": "^5.10.0",
@@ -57,9 +58,6 @@
57
58
  "eslint-plugin-playwright": "^2.10.1",
58
59
  "eslint-plugin-prettier": "^5.5.5",
59
60
  "eslint-plugin-promise": "^7.2.1",
60
- "eslint-plugin-react": "^7.37.5",
61
- "eslint-plugin-react-compiler": "^19.1.0-rc.2",
62
- "eslint-plugin-react-hooks": "^7.0.1",
63
61
  "eslint-plugin-react-hooks-ssr": "^0.1.5",
64
62
  "eslint-plugin-ssr-friendly": "^1.3.0",
65
63
  "eslint-plugin-storybook": "^10.3.3",
@@ -79,20 +77,16 @@
79
77
  "husky": "^9.1.7",
80
78
  "prettier": "^3.8.1",
81
79
  "storybook": "^10.3.3",
82
- "typescript": "^5.9.3",
80
+ "typescript": "^6.0.2",
83
81
  "vitest": "^4.1.1"
84
82
  },
85
83
  "peerDependencies": {
86
84
  "eslint": ">= 10",
87
- "storybook": ">= 9",
88
- "typescript": ">= 5"
85
+ "storybook": ">= 9"
89
86
  },
90
87
  "peerDependenciesMeta": {
91
88
  "storybook": {
92
89
  "optional": true
93
- },
94
- "typescript": {
95
- "optional": true
96
90
  }
97
91
  },
98
92
  "keywords": [
@@ -1,11 +1,8 @@
1
1
  import globals from 'globals';
2
- import reactPlugin from 'eslint-plugin-react';
2
+ import eslintReact from '@eslint-react/eslint-plugin';
3
3
  import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
4
- import reactHooksPlugin from 'eslint-plugin-react-hooks';
5
- import reactCompilerPlugin from 'eslint-plugin-react-compiler';
6
4
  import reactRules from '../rules/react.mjs';
7
5
  import reactA11yRules from '../rules/react-a11y.mjs';
8
- import reactHooksRules from '../rules/react-hooks.mjs';
9
6
 
10
7
  export default [
11
8
  {
@@ -19,21 +16,13 @@ export default [
19
16
  ...globals.browser,
20
17
  },
21
18
  },
22
- settings: {
23
- react: {
24
- version: 'detect',
25
- },
26
- },
27
19
  plugins: {
28
- react: reactPlugin,
20
+ ...eslintReact.configs.all.plugins,
29
21
  'jsx-a11y': jsxA11yPlugin,
30
- 'react-hooks': reactHooksPlugin,
31
- 'react-compiler': reactCompilerPlugin,
32
22
  },
33
23
  rules: {
34
24
  ...reactRules,
35
25
  ...reactA11yRules,
36
- ...reactHooksRules,
37
26
  },
38
27
  },
39
28
  ];