@michaelhelvey/vite-config 2.0.1 → 2.0.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.d.mts CHANGED
@@ -6008,7 +6008,11 @@ declare const ruleSelector: (sources: RuleSource[], categories: RuleCategory[],
6008
6008
  * });
6009
6009
  * ```
6010
6010
  */
6011
- declare const FileTypes: Record<string, string[]>;
6011
+ declare const FileTypes: {
6012
+ JS_SOURCE: string[];
6013
+ REACT_SOURCE: string[];
6014
+ TEST_SOURCE: string[];
6015
+ };
6012
6016
  /**
6013
6017
  * Returns a `UserConfig` for `vite-plus` pre-configured with sensible defaults for
6014
6018
  * testing, linting, formatting, and staged-file checks. Pass an `overrides` object
package/dist/index.mjs CHANGED
@@ -6881,6 +6881,7 @@ const defineConfig = async (overrides) => {
6881
6881
  mockReset: true
6882
6882
  },
6883
6883
  lint: {
6884
+ settings: { react: { version: "19.2.8" } },
6884
6885
  env: {
6885
6886
  browser: true,
6886
6887
  builtin: true,
@@ -6922,11 +6923,14 @@ const defineConfig = async (overrides) => {
6922
6923
  {
6923
6924
  files: FileTypes.REACT_SOURCE,
6924
6925
  plugins: ["react", "react-perf"],
6925
- rules: { ...ruleSelector(["react"], [
6926
- "correctness",
6927
- "perf",
6928
- "suspicious"
6929
- ]) }
6926
+ rules: {
6927
+ ...ruleSelector(["react"], [
6928
+ "correctness",
6929
+ "perf",
6930
+ "suspicious"
6931
+ ]),
6932
+ "react/react-in-jsx-scope": "off"
6933
+ }
6930
6934
  },
6931
6935
  {
6932
6936
  files: FileTypes.TEST_SOURCE,