eslint-config-decent 3.0.13 → 3.1.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/dist/index.cjs CHANGED
@@ -626,6 +626,7 @@ const base$6 = {
626
626
  "react/require-render-return": "error",
627
627
  "react/self-closing-comp": "error",
628
628
  "react/style-prop-object": "error",
629
+ ...reactHooks__default.configs.flat["recommended-latest"].rules,
629
630
  "react-hooks/rules-of-hooks": "error",
630
631
  "react-hooks/exhaustive-deps": "error"
631
632
  }
package/dist/index.mjs CHANGED
@@ -602,6 +602,7 @@ const base$6 = {
602
602
  "react/require-render-return": "error",
603
603
  "react/self-closing-comp": "error",
604
604
  "react/style-prop-object": "error",
605
+ ...reactHooks.configs.flat["recommended-latest"].rules,
605
606
  "react-hooks/rules-of-hooks": "error",
606
607
  "react-hooks/exhaustive-deps": "error"
607
608
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "3.0.13",
3
+ "version": "3.1.0",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/react.ts CHANGED
@@ -69,6 +69,7 @@ const base: Config = {
69
69
  'react/self-closing-comp': 'error',
70
70
  'react/style-prop-object': 'error',
71
71
 
72
+ ...reactHooks.configs.flat['recommended-latest'].rules,
72
73
  'react-hooks/rules-of-hooks': 'error',
73
74
  'react-hooks/exhaustive-deps': 'error',
74
75
  },
@@ -1,6 +1,12 @@
1
1
  declare module 'eslint-plugin-react-hooks' {
2
- import type { Plugin } from '@eslint/config-helpers';
2
+ import type { Config, Plugin } from '@eslint/config-helpers';
3
3
 
4
- const value: Plugin;
4
+ const value: Plugin & {
5
+ configs: {
6
+ flat: {
7
+ 'recommended-latest': Config;
8
+ };
9
+ };
10
+ };
5
11
  export default value;
6
12
  }