@storm-software/eslint-config-react 0.0.80 → 0.0.82

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 CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.0.78-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.0.80-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/dist/index.cjs CHANGED
@@ -1,17 +1,36 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var preset = require('./preset');
6
-
7
- var index_default = preset.defineConfig;
8
-
9
- exports.default = index_default;
10
- Object.keys(preset).forEach(function (k) {
11
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
12
- enumerable: true,
13
- get: function () { return preset[k]; }
14
- });
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
15
4
  });
16
-
17
- module.exports = exports.default;
5
+ let _storm_software_eslint = require("@storm-software/eslint");
6
+ //#region src/preset.ts
7
+ /**
8
+ * Get the ESLint React configuration for a Storm workspace.
9
+ *
10
+ * @param options - The preset options.
11
+ * @param userConfigs - Additional ESLint configurations.
12
+ */
13
+ function preset(options, ...userConfigs) {
14
+ const { strict = false, mdx: enableMdx = true, react = true, "react-native": enableReactNative = false, storybook: enableStorybook = true, ...rest } = options;
15
+ return (0, _storm_software_eslint.preset)({
16
+ ...rest,
17
+ jsx: true,
18
+ mdx: enableMdx,
19
+ react: typeof react === "object" ? {
20
+ ...react,
21
+ strict
22
+ } : { strict },
23
+ "react-native": enableReactNative,
24
+ storybook: enableStorybook
25
+ }, ...userConfigs);
26
+ }
27
+ const getConfig = preset;
28
+ const defineConfig = preset;
29
+ //#endregion
30
+ //#region src/index.ts
31
+ var src_default = defineConfig;
32
+ //#endregion
33
+ exports.default = src_default;
34
+ exports.defineConfig = defineConfig;
35
+ exports.getConfig = getConfig;
36
+ exports.preset = preset;
package/dist/index.d.cts CHANGED
@@ -1,8 +1,63 @@
1
- import { defineConfig } from './preset.cjs';
2
- export { getConfig, default as preset } from './preset.cjs';
3
- export { OptionsConfig } from './types.cjs';
4
- import '@storm-software/eslint';
5
-
6
-
7
-
8
- export { defineConfig as default, defineConfig };
1
+ import { OptionsConfig as OptionsConfig$1, OptionsOverrides, OptionsReact, OptionsStorybook, PresetConfig, PresetResult, UserConfig } from "@storm-software/eslint";
2
+ //#region src/types.d.ts
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"];
10
+ /**
11
+ * Enable linting for mdx files.
12
+ *
13
+ * @defaultValue true
14
+ */
15
+ mdx?: false | OptionsOverrides;
16
+ /**
17
+ * Enable Storybook support.
18
+ *
19
+ * @defaultValue true
20
+ */
21
+ storybook?: false | OptionsStorybook;
22
+ /**
23
+ * Override React rules.
24
+ */
25
+ react?: Omit<OptionsReact, "strict">;
26
+ /**
27
+ * Enable react native rules.
28
+ *
29
+ * @defaultValue true
30
+ */
31
+ "react-native"?: false | OptionsOverrides;
32
+ /**
33
+ * Enable Astro rules.
34
+ *
35
+ * @defaultValue false
36
+ */
37
+ astro?: true | OptionsOverrides;
38
+ /**
39
+ * Enable Next.js rules.
40
+ *
41
+ * @defaultValue false
42
+ */
43
+ next?: true | OptionsOverrides;
44
+ /**
45
+ * Enable UnoCSS rules.
46
+ *
47
+ * @defaultValue false
48
+ */
49
+ unocss?: true | OptionsOverrides;
50
+ }
51
+ //#endregion
52
+ //#region src/preset.d.ts
53
+ /**
54
+ * Get the ESLint React configuration for a Storm workspace.
55
+ *
56
+ * @param options - The preset options.
57
+ * @param userConfigs - Additional ESLint configurations.
58
+ */
59
+ declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
60
+ declare const getConfig: typeof preset;
61
+ declare const defineConfig: typeof preset;
62
+ //#endregion
63
+ export { type OptionsConfig, defineConfig as default, defineConfig, getConfig, preset };
@@ -0,0 +1,63 @@
1
+ import { OptionsConfig as OptionsConfig$1, OptionsOverrides, OptionsReact, OptionsStorybook, PresetConfig, PresetResult, UserConfig } from "@storm-software/eslint";
2
+ //#region src/types.d.ts
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"];
10
+ /**
11
+ * Enable linting for mdx files.
12
+ *
13
+ * @defaultValue true
14
+ */
15
+ mdx?: false | OptionsOverrides;
16
+ /**
17
+ * Enable Storybook support.
18
+ *
19
+ * @defaultValue true
20
+ */
21
+ storybook?: false | OptionsStorybook;
22
+ /**
23
+ * Override React rules.
24
+ */
25
+ react?: Omit<OptionsReact, "strict">;
26
+ /**
27
+ * Enable react native rules.
28
+ *
29
+ * @defaultValue true
30
+ */
31
+ "react-native"?: false | OptionsOverrides;
32
+ /**
33
+ * Enable Astro rules.
34
+ *
35
+ * @defaultValue false
36
+ */
37
+ astro?: true | OptionsOverrides;
38
+ /**
39
+ * Enable Next.js rules.
40
+ *
41
+ * @defaultValue false
42
+ */
43
+ next?: true | OptionsOverrides;
44
+ /**
45
+ * Enable UnoCSS rules.
46
+ *
47
+ * @defaultValue false
48
+ */
49
+ unocss?: true | OptionsOverrides;
50
+ }
51
+ //#endregion
52
+ //#region src/preset.d.ts
53
+ /**
54
+ * Get the ESLint React configuration for a Storm workspace.
55
+ *
56
+ * @param options - The preset options.
57
+ * @param userConfigs - Additional ESLint configurations.
58
+ */
59
+ declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
60
+ declare const getConfig: typeof preset;
61
+ declare const defineConfig: typeof preset;
62
+ //#endregion
63
+ export { type OptionsConfig, defineConfig as default, defineConfig, getConfig, preset };
package/dist/index.mjs ADDED
@@ -0,0 +1,29 @@
1
+ import { preset as preset$1 } from "@storm-software/eslint";
2
+ //#region src/preset.ts
3
+ /**
4
+ * Get the ESLint React configuration for a Storm workspace.
5
+ *
6
+ * @param options - The preset options.
7
+ * @param userConfigs - Additional ESLint configurations.
8
+ */
9
+ function preset(options, ...userConfigs) {
10
+ const { strict = false, mdx: enableMdx = true, react = true, "react-native": enableReactNative = false, storybook: enableStorybook = true, ...rest } = options;
11
+ return preset$1({
12
+ ...rest,
13
+ jsx: true,
14
+ mdx: enableMdx,
15
+ react: typeof react === "object" ? {
16
+ ...react,
17
+ strict
18
+ } : { strict },
19
+ "react-native": enableReactNative,
20
+ storybook: enableStorybook
21
+ }, ...userConfigs);
22
+ }
23
+ const getConfig = preset;
24
+ const defineConfig = preset;
25
+ //#endregion
26
+ //#region src/index.ts
27
+ var src_default = defineConfig;
28
+ //#endregion
29
+ export { src_default as default, defineConfig, getConfig, preset };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint-config-react",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
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": [
@@ -51,68 +51,20 @@
51
51
  "sideEffects": false,
52
52
  "type": "module",
53
53
  "exports": {
54
- "./package.json": "./package.json",
55
- ".": {
56
- "import": {
57
- "types": "./dist/preset.d.ts",
58
- "default": "./dist/preset.js"
59
- },
60
- "require": {
61
- "types": "./dist/preset.d.cts",
62
- "default": "./dist/preset.cjs"
63
- },
64
- "default": {
65
- "types": "./dist/preset.d.ts",
66
- "default": "./dist/preset.js"
67
- }
68
- },
69
- "./index": {
70
- "import": {
71
- "types": "./dist/preset.d.ts",
72
- "default": "./dist/preset.js"
73
- },
74
- "require": {
75
- "types": "./dist/preset.d.cts",
76
- "default": "./dist/preset.cjs"
77
- },
78
- "default": {
79
- "types": "./dist/preset.d.ts",
80
- "default": "./dist/preset.js"
81
- }
82
- },
83
- "./preset": {
84
- "import": {
85
- "types": "./dist/preset.d.ts",
86
- "default": "./dist/preset.js"
87
- },
88
- "require": {
89
- "types": "./dist/preset.d.cts",
90
- "default": "./dist/preset.cjs"
91
- },
92
- "default": {
93
- "types": "./dist/preset.d.ts",
94
- "default": "./dist/preset.js"
95
- }
96
- },
97
- "./types": {
98
- "import": { "types": "./dist/types.d.ts", "default": "./dist/types.js" },
99
- "require": {
100
- "types": "./dist/types.d.cts",
101
- "default": "./dist/types.cjs"
102
- },
103
- "default": { "types": "./dist/types.d.ts", "default": "./dist/types.js" }
104
- }
54
+ ".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs" },
55
+ "./*": "./*"
105
56
  },
106
- "main": "./dist/index.js",
107
- "types": "./dist/index.d.ts",
57
+ "main": "./dist/index.cjs",
58
+ "module": "./dist/index.mjs",
59
+ "types": "./dist/index.d.cts",
108
60
  "files": ["dist"],
109
61
  "dependencies": {
110
62
  "@eslint-react/eslint-plugin": "^5.18.3",
111
63
  "@next/eslint-plugin-next": "^15.5.23",
112
- "@storm-software/eslint": "0.170.158",
64
+ "@storm-software/eslint": "0.170.160",
113
65
  "@unocss/eslint-plugin": "^65.5.0",
114
66
  "astro-eslint-parser": "^1.4.0",
115
- "eslint": "^10.8.0",
67
+ "eslint": "^10.8.1",
116
68
  "eslint-plugin-astro": "^1.7.0",
117
69
  "eslint-plugin-mdx": "^3.8.1",
118
70
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
@@ -148,5 +100,5 @@
148
100
  "react-dom": { "optional": false }
149
101
  },
150
102
  "publishConfig": { "access": "public" },
151
- "gitHead": "88e28b2c74d1a37c7f613a2e4cb0bbfb20f785aa"
103
+ "gitHead": "2421b5038a6045f6d516d3737c5209be1264ba21"
152
104
  }
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from './preset.js';
2
- export { getConfig, default as preset } from './preset.js';
3
- export { OptionsConfig } from './types.js';
4
- import '@storm-software/eslint';
5
-
6
-
7
-
8
- export { defineConfig as default, defineConfig };
package/dist/index.js DELETED
@@ -1,6 +0,0 @@
1
- import { defineConfig } from './preset';
2
- export * from './preset';
3
-
4
- var index_default = defineConfig;
5
-
6
- export { index_default as default };
package/dist/preset.cjs DELETED
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var eslint = require('@storm-software/eslint');
6
-
7
- function preset(options, ...userConfigs) {
8
- const {
9
- strict = false,
10
- mdx: enableMdx = true,
11
- react = true,
12
- "react-native": enableReactNative = true,
13
- storybook: enableStorybook = true,
14
- ...rest
15
- } = options;
16
- return eslint.preset(
17
- {
18
- ...rest,
19
- jsx: true,
20
- mdx: enableMdx,
21
- react: typeof react === "object" ? { ...react, strict } : { strict },
22
- "react-native": enableReactNative,
23
- storybook: enableStorybook
24
- },
25
- ...userConfigs
26
- );
27
- }
28
- const getConfig = preset;
29
- const defineConfig = preset;
30
- var preset_default = preset;
31
-
32
- exports.default = preset_default;
33
- exports.defineConfig = defineConfig;
34
- exports.getConfig = getConfig;
35
- exports.preset = preset;
package/dist/preset.d.cts DELETED
@@ -1,14 +0,0 @@
1
- import { PresetConfig, UserConfig, PresetResult } from '@storm-software/eslint';
2
- import { OptionsConfig } from './types.cjs';
3
-
4
- /**
5
- * Get the ESLint React configuration for a Storm workspace.
6
- *
7
- * @param options - The preset options.
8
- * @param userConfigs - Additional ESLint configurations.
9
- */
10
- declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
11
- declare const getConfig: typeof preset;
12
- declare const defineConfig: typeof preset;
13
-
14
- export { preset as default, defineConfig, getConfig, preset };
package/dist/preset.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { PresetConfig, UserConfig, PresetResult } from '@storm-software/eslint';
2
- import { OptionsConfig } from './types.js';
3
-
4
- /**
5
- * Get the ESLint React configuration for a Storm workspace.
6
- *
7
- * @param options - The preset options.
8
- * @param userConfigs - Additional ESLint configurations.
9
- */
10
- declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
11
- declare const getConfig: typeof preset;
12
- declare const defineConfig: typeof preset;
13
-
14
- export { preset as default, defineConfig, getConfig, preset };
package/dist/preset.js DELETED
@@ -1,28 +0,0 @@
1
- import { preset as preset$1 } from '@storm-software/eslint';
2
-
3
- function preset(options, ...userConfigs) {
4
- const {
5
- strict = false,
6
- mdx: enableMdx = true,
7
- react = true,
8
- "react-native": enableReactNative = true,
9
- storybook: enableStorybook = true,
10
- ...rest
11
- } = options;
12
- return preset$1(
13
- {
14
- ...rest,
15
- jsx: true,
16
- mdx: enableMdx,
17
- react: typeof react === "object" ? { ...react, strict } : { strict },
18
- "react-native": enableReactNative,
19
- storybook: enableStorybook
20
- },
21
- ...userConfigs
22
- );
23
- }
24
- const getConfig = preset;
25
- const defineConfig = preset;
26
- var preset_default = preset;
27
-
28
- export { preset_default as default, defineConfig, getConfig, preset };
package/dist/types.cjs DELETED
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
package/dist/types.d.cts DELETED
@@ -1,52 +0,0 @@
1
- import { OptionsConfig as OptionsConfig$1, OptionsReact, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
2
-
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"];
10
- /**
11
- * Enable linting for mdx files.
12
- *
13
- * @defaultValue true
14
- */
15
- mdx?: false | OptionsOverrides;
16
- /**
17
- * Enable Storybook support.
18
- *
19
- * @defaultValue true
20
- */
21
- storybook?: false | OptionsStorybook;
22
- /**
23
- * Override React rules.
24
- */
25
- react?: Omit<OptionsReact, "strict">;
26
- /**
27
- * Enable react native rules.
28
- *
29
- * @defaultValue true
30
- */
31
- "react-native"?: false | OptionsOverrides;
32
- /**
33
- * Enable Astro rules.
34
- *
35
- * @defaultValue false
36
- */
37
- astro?: true | OptionsOverrides;
38
- /**
39
- * Enable Next.js rules.
40
- *
41
- * @defaultValue false
42
- */
43
- next?: true | OptionsOverrides;
44
- /**
45
- * Enable UnoCSS rules.
46
- *
47
- * @defaultValue false
48
- */
49
- unocss?: true | OptionsOverrides;
50
- }
51
-
52
- export type { OptionsConfig };
package/dist/types.d.ts DELETED
@@ -1,52 +0,0 @@
1
- import { OptionsConfig as OptionsConfig$1, OptionsReact, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
2
-
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"];
10
- /**
11
- * Enable linting for mdx files.
12
- *
13
- * @defaultValue true
14
- */
15
- mdx?: false | OptionsOverrides;
16
- /**
17
- * Enable Storybook support.
18
- *
19
- * @defaultValue true
20
- */
21
- storybook?: false | OptionsStorybook;
22
- /**
23
- * Override React rules.
24
- */
25
- react?: Omit<OptionsReact, "strict">;
26
- /**
27
- * Enable react native rules.
28
- *
29
- * @defaultValue true
30
- */
31
- "react-native"?: false | OptionsOverrides;
32
- /**
33
- * Enable Astro rules.
34
- *
35
- * @defaultValue false
36
- */
37
- astro?: true | OptionsOverrides;
38
- /**
39
- * Enable Next.js rules.
40
- *
41
- * @defaultValue false
42
- */
43
- next?: true | OptionsOverrides;
44
- /**
45
- * Enable UnoCSS rules.
46
- *
47
- * @defaultValue false
48
- */
49
- unocss?: true | OptionsOverrides;
50
- }
51
-
52
- export type { OptionsConfig };
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
-