@smartive/eslint-config 7.1.0-next.1 → 7.1.0-next.2

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/dist/configs.js +17 -8
  2. package/package.json +1 -1
package/dist/configs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { fixupConfigRules } from '@eslint/compat';
1
+ import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
2
2
  import js from '@eslint/js';
3
3
  import { flatConfigs as eslintPluginImportConfigs } from 'eslint-plugin-import';
4
4
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
@@ -63,13 +63,22 @@ export const flatConfigTypescript = (rulesOnly = false) => defineConfig([
63
63
  },
64
64
  baseConfig,
65
65
  ]);
66
- export const flatConfigReact = () => defineConfig([
67
- ...flatConfigTypescript(),
68
- fixupConfigRules(reactPlugin.configs.flat.recommended),
69
- fixupConfigRules(reactPlugin.configs.flat['jsx-runtime']),
70
- reactHooks.configs.flat.recommended,
71
- reactConfig,
72
- ]);
66
+ export const flatConfigReact = () => {
67
+ const reactPluginFixed = fixupPluginRules(reactPlugin);
68
+ return defineConfig([
69
+ ...flatConfigTypescript(),
70
+ {
71
+ ...reactPlugin.configs.flat.recommended,
72
+ plugins: { react: reactPluginFixed },
73
+ },
74
+ {
75
+ ...reactPlugin.configs.flat['jsx-runtime'],
76
+ plugins: { react: reactPluginFixed },
77
+ },
78
+ reactHooks.configs.flat.recommended,
79
+ reactConfig,
80
+ ]);
81
+ };
73
82
  export const flatConfigNext = () => defineConfig([
74
83
  ...createRequire(import.meta.url)('eslint-config-next/core-web-vitals'),
75
84
  ...flatConfigTypescript(true),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/eslint-config",
3
- "version": "7.1.0-next.1",
3
+ "version": "7.1.0-next.2",
4
4
  "description": "ESLint configuration by smartive",
5
5
  "files": [
6
6
  "README.md",