@storm-software/eslint-config-react 0.0.12 → 0.0.14

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/preset.cjs CHANGED
@@ -6,6 +6,7 @@ var eslint = require('@storm-software/eslint');
6
6
 
7
7
  function preset(options, ...userConfigs) {
8
8
  const {
9
+ strict = false,
9
10
  mdx: enableMdx = true,
10
11
  react = true,
11
12
  "react-native": enableReactNative = true,
@@ -17,7 +18,7 @@ function preset(options, ...userConfigs) {
17
18
  ...rest,
18
19
  jsx: true,
19
20
  mdx: enableMdx,
20
- react: typeof react === "object" ? react : true,
21
+ react: typeof react === "object" ? { ...react, strict } : { strict },
21
22
  "react-native": enableReactNative,
22
23
  storybook: enableStorybook
23
24
  },
package/dist/preset.js CHANGED
@@ -2,6 +2,7 @@ import { preset as preset$1 } from '@storm-software/eslint';
2
2
 
3
3
  function preset(options, ...userConfigs) {
4
4
  const {
5
+ strict = false,
5
6
  mdx: enableMdx = true,
6
7
  react = true,
7
8
  "react-native": enableReactNative = true,
@@ -13,7 +14,7 @@ function preset(options, ...userConfigs) {
13
14
  ...rest,
14
15
  jsx: true,
15
16
  mdx: enableMdx,
16
- react: typeof react === "object" ? react : true,
17
+ react: typeof react === "object" ? { ...react, strict } : { strict },
17
18
  "react-native": enableReactNative,
18
19
  storybook: enableStorybook
19
20
  },
package/dist/types.d.cts CHANGED
@@ -1,6 +1,12 @@
1
- import { OptionsConfig as OptionsConfig$1, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
1
+ import { OptionsConfig as OptionsConfig$1, OptionsReact, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
2
2
 
3
3
  interface OptionsConfig extends Omit<OptionsConfig$1, "jsx" | "react" | "react-native" | "mdx" | "storybook"> {
4
+ /**
5
+ * Use a strict mode for React rules, which will enable more strict rules that may cause more false positives but can catch more potential issues.
6
+ *
7
+ * @defaultValue false
8
+ */
9
+ strict?: OptionsReact["strict"];
4
10
  /**
5
11
  * Enable linting for mdx files.
6
12
  *
@@ -16,7 +22,7 @@ interface OptionsConfig extends Omit<OptionsConfig$1, "jsx" | "react" | "react-n
16
22
  /**
17
23
  * Override React rules.
18
24
  */
19
- react?: OptionsOverrides;
25
+ react?: Omit<OptionsReact, "strict">;
20
26
  /**
21
27
  * Enable react native rules.
22
28
  *
package/dist/types.d.ts CHANGED
@@ -1,6 +1,12 @@
1
- import { OptionsConfig as OptionsConfig$1, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
1
+ import { OptionsConfig as OptionsConfig$1, OptionsReact, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
2
2
 
3
3
  interface OptionsConfig extends Omit<OptionsConfig$1, "jsx" | "react" | "react-native" | "mdx" | "storybook"> {
4
+ /**
5
+ * Use a strict mode for React rules, which will enable more strict rules that may cause more false positives but can catch more potential issues.
6
+ *
7
+ * @defaultValue false
8
+ */
9
+ strict?: OptionsReact["strict"];
4
10
  /**
5
11
  * Enable linting for mdx files.
6
12
  *
@@ -16,7 +22,7 @@ interface OptionsConfig extends Omit<OptionsConfig$1, "jsx" | "react" | "react-n
16
22
  /**
17
23
  * Override React rules.
18
24
  */
19
- react?: OptionsOverrides;
25
+ react?: Omit<OptionsReact, "strict">;
20
26
  /**
21
27
  * Enable react native rules.
22
28
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint-config-react",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "description": "A package containing a shared ESLint configuration for React projects used by Storm Software across many projects.",
6
6
  "keywords": [
@@ -109,7 +109,7 @@
109
109
  "dependencies": {
110
110
  "@eslint-react/eslint-plugin": "^5.9.0",
111
111
  "@next/eslint-plugin-next": "^15.5.19",
112
- "@storm-software/eslint": "0.170.90",
112
+ "@storm-software/eslint": "0.170.92",
113
113
  "@unocss/eslint-plugin": "^65.5.0",
114
114
  "astro-eslint-parser": "^1.4.0",
115
115
  "eslint": "^10.5.0",
@@ -123,5 +123,5 @@
123
123
  },
124
124
  "devDependencies": { "tsup": "8.4.0", "typescript": "^5.9.3" },
125
125
  "publishConfig": { "access": "public" },
126
- "gitHead": "4c788d0e53b1bdc097166dd42dc6422f80ba6f1f"
126
+ "gitHead": "9922d1f0f3307b6823f994db8545e164984c8be7"
127
127
  }