zixulu 1.69.1 → 1.69.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.
package/dist/index.js CHANGED
@@ -1577,10 +1577,11 @@ import globals from "globals"
1577
1577
  import tseslint from "typescript-eslint"
1578
1578
 
1579
1579
  export default defineConfig([
1580
- globalIgnores(["node_modules", "dist", "build", "public"]),
1580
+ globalIgnores(["node_modules", "dist", "build", "public"]),${isReact ? `
1581
+ reactHooks.configs.flat.recommended,` : ""}
1581
1582
  {
1582
1583
  files: ["**/*.{js,mjs,ts${isReact ? ",tsx" : ""}}"],
1583
- extends: [js.configs.recommended, tseslint.configs.recommended${isReact ? ', reactHooks.configs["recommended-latest"], reactRefresh.configs.vite' : ""}],
1584
+ extends: [js.configs.recommended, tseslint.configs.recommended${isReact ? ", reactRefresh.configs.vite" : ""}],
1584
1585
  languageOptions: {
1585
1586
  ecmaVersion: "latest",
1586
1587
  globals: globals.browser,
@@ -1624,8 +1625,7 @@ async function addEslint() {
1624
1625
  "globals"
1625
1626
  ];
1626
1627
  if (isReact) packages.push({
1627
- packageName: "eslint-plugin-react-hooks",
1628
- versionRange: "@rc"
1628
+ packageName: "eslint-plugin-react-hooks"
1629
1629
  }, "eslint-plugin-react-refresh");
1630
1630
  await addDependency({
1631
1631
  package: packages,