js-style-kit 0.5.1 → 0.5.3
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/README.md +3 -1
- package/dist/bin/index.cjs +33 -33
- package/dist/bin/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ interface EslintConfigOptions {
|
|
|
53
53
|
requireJsdoc?: boolean;
|
|
54
54
|
};
|
|
55
55
|
react?: boolean | {
|
|
56
|
-
framework?: "next" | "none" | "vite";
|
|
56
|
+
framework?: "next" | "none" | "react-router" | "remix" | "vite";
|
|
57
57
|
reactCompiler?: boolean;
|
|
58
58
|
reactRefresh?: boolean;
|
|
59
59
|
};
|
|
@@ -74,9 +74,10 @@ interface EslintConfigOptions {
|
|
|
74
74
|
* @param options.importPlugin - Whether to include the import plugin. Defaults to true.
|
|
75
75
|
* @param options.jsdoc - Whether to include JSDoc rules. Set to false to disable, or provide an object to configure.
|
|
76
76
|
* @param options.react - Whether to include React, React hooks, and React compiler rules.
|
|
77
|
-
* Can specify framework as "next", "none", or "vite" to control related configs:
|
|
77
|
+
* Can specify framework as "next", "none", "react-router", "remix", or "vite" to control related configs:
|
|
78
78
|
* - "next": Includes Next.js config, excludes React Refresh.
|
|
79
79
|
* - "vite" or "none": Includes React Refresh, excludes Next.js.
|
|
80
|
+
* - "remix" or "react-router": Excludes both Next.js and React Refresh (these frameworks handle their own refresh logic).
|
|
80
81
|
* - The reactRefresh property can override this framework-based behavior.
|
|
81
82
|
* @param options.sorting - Whether to include sorting rules from Perfectionist. Defaults to true.
|
|
82
83
|
* @param options.storybook - Whether to include Storybook rules. Defaults to false.
|