@zendeskgarden/eslint-config 44.0.0 → 44.0.1

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.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/plugins/react.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/eslint-config",
3
- "version": "44.0.0",
3
+ "version": "44.0.1",
4
4
  "description": "Garden ESLint config",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/eslint-parser": "7.25.1",
28
+ "@eslint/compat": "1.1.1",
28
29
  "eslint-plugin-jest": "28.8.3",
29
30
  "eslint-plugin-jsx-a11y": "6.10.0",
30
31
  "eslint-plugin-n": "17.10.2",
package/plugins/react.js CHANGED
@@ -5,6 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
 
8
+ import { fixupPluginRules } from '@eslint/compat';
8
9
  import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
9
10
  import reactHooksPlugin from 'eslint-plugin-react-hooks';
10
11
  import reactPlugin from 'eslint-plugin-react';
@@ -12,7 +13,8 @@ import reactPlugin from 'eslint-plugin-react';
12
13
  export default {
13
14
  plugins: {
14
15
  react: reactPlugin,
15
- 'react-hooks': reactHooksPlugin,
16
+ // TODO remove fixup when eslint-plugin-react-hooks 5.x is released
17
+ 'react-hooks': fixupPluginRules(reactHooksPlugin),
16
18
  'jsx-a11y': jsxA11yPlugin
17
19
  },
18
20
  languageOptions: {