@storm-software/eslint 0.170.80 → 0.170.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.170.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.170.79-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/preset.cjs CHANGED
@@ -4439,7 +4439,7 @@ init_cjs_shims();
4439
4439
 
4440
4440
  // ../eslint-plugin-banner/package.json
4441
4441
  var package_default = {
4442
- version: "0.0.19"};
4442
+ version: "0.0.21"};
4443
4443
 
4444
4444
  // ../eslint-plugin-banner/src/rules/banner.ts
4445
4445
  init_cjs_shims();
@@ -18459,7 +18459,7 @@ plugin3.configs = configs3;
18459
18459
 
18460
18460
  // ../eslint-plugin-pnpm/package.json
18461
18461
  var package_default2 = {
18462
- version: "0.0.18"};
18462
+ version: "0.0.20"};
18463
18463
 
18464
18464
  // ../eslint-plugin-pnpm/src/plugin.ts
18465
18465
  var plugin4 = {
@@ -18714,17 +18714,17 @@ async function react(options = {}) {
18714
18714
  name: "storm/react/rules",
18715
18715
  rules: {
18716
18716
  // recommended rules from @eslint-react/dom
18717
- "react-dom/no-children-in-void-dom-elements": "warn",
18718
- "react-dom/no-dangerously-set-innerhtml": "warn",
18719
- "react-dom/no-dangerously-set-innerhtml-with-children": "error",
18720
- "react-dom/no-find-dom-node": "error",
18721
- "react-dom/no-missing-button-type": "warn",
18722
- "react-dom/no-missing-iframe-sandbox": "warn",
18723
- "react-dom/no-namespace": "error",
18724
- "react-dom/no-render-return-value": "error",
18725
- "react-dom/no-script-url": "warn",
18726
- "react-dom/no-unsafe-iframe-sandbox": "warn",
18727
- "react-dom/no-unsafe-target-blank": "warn",
18717
+ "@eslint-react/dom-no-void-elements-with-children": "warn",
18718
+ "@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
18719
+ "@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
18720
+ "@eslint-react/dom-no-find-dom-node": "error",
18721
+ "@eslint-react/dom-no-missing-button-type": "warn",
18722
+ "@eslint-react/dom-no-missing-iframe-sandbox": "warn",
18723
+ "@eslint-react/dom-no-namespace": "error",
18724
+ "@eslint-react/dom-no-render-return-value": "error",
18725
+ "@eslint-react/dom-no-script-url": "warn",
18726
+ "@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
18727
+ "@eslint-react/dom-no-unsafe-target-blank": "warn",
18728
18728
  // recommended rules react-hooks
18729
18729
  "react-hooks/exhaustive-deps": "warn",
18730
18730
  "react-hooks/rules-of-hooks": "error",
@@ -18753,51 +18753,52 @@ async function react(options = {}) {
18753
18753
  }
18754
18754
  ],
18755
18755
  // recommended rules from @eslint-react/web-api
18756
- "react-web-api/no-leaked-event-listener": "warn",
18757
- "react-web-api/no-leaked-interval": "warn",
18758
- "react-web-api/no-leaked-resize-observer": "warn",
18759
- "react-web-api/no-leaked-timeout": "warn",
18756
+ "@eslint-react/web-api-no-leaked-event-listener": "warn",
18757
+ "@eslint-react/web-api-no-leaked-interval": "warn",
18758
+ "@eslint-react/web-api-no-leaked-resize-observer": "warn",
18759
+ "@eslint-react/web-api-no-leaked-timeout": "warn",
18760
18760
  // recommended rules from @eslint-react
18761
- "react/ensure-forward-ref-using-ref": "warn",
18762
- "react/jsx-no-duplicate-props": "warn",
18763
- "react/jsx-uses-vars": "warn",
18764
- "react/no-access-state-in-setstate": "error",
18765
- "react/no-array-index-key": "warn",
18766
- "react/no-children-count": "warn",
18767
- "react/no-children-for-each": "warn",
18768
- "react/no-children-map": "warn",
18769
- "react/no-children-only": "warn",
18770
- "react/no-children-to-array": "warn",
18771
- "react/no-clone-element": "warn",
18772
- "react/no-comment-textnodes": "warn",
18773
- "react/no-component-will-mount": "error",
18774
- "react/no-component-will-receive-props": "error",
18775
- "react/no-component-will-update": "error",
18776
- "react/no-context-provider": "warn",
18777
- "react/no-create-ref": "error",
18778
- "react/no-default-props": "error",
18779
- "react/no-direct-mutation-state": "error",
18780
- "react/no-duplicate-key": "error",
18781
- "react/no-forward-ref": "warn",
18782
- "react/no-implicit-key": "warn",
18783
- "react/no-missing-key": "error",
18784
- "react/no-nested-components": "error",
18785
- "react/no-prop-types": "error",
18786
- "react/no-redundant-should-component-update": "error",
18787
- "react/no-set-state-in-component-did-mount": "warn",
18788
- "react/no-set-state-in-component-did-update": "warn",
18789
- "react/no-set-state-in-component-will-update": "warn",
18790
- "react/no-string-refs": "error",
18791
- "react/no-unsafe-component-will-mount": "warn",
18792
- "react/no-unsafe-component-will-receive-props": "warn",
18793
- "react/no-unsafe-component-will-update": "warn",
18794
- "react/no-unstable-context-value": "warn",
18795
- "react/no-unstable-default-props": "warn",
18796
- "react/no-unused-class-component-members": "warn",
18797
- "react/no-unused-state": "warn",
18798
- "react/prefer-destructuring-assignment": "warn",
18799
- "react/prefer-shorthand-boolean": "warn",
18800
- "react/prefer-shorthand-fragment": "warn",
18761
+ "@eslint-react/error-boundaries": "error",
18762
+ "@eslint-react/ensure-forward-ref-using-ref": "warn",
18763
+ "@eslint-react/jsx-no-duplicate-props": "warn",
18764
+ "@eslint-react/jsx-uses-vars": "warn",
18765
+ "@eslint-react/no-access-state-in-setstate": "error",
18766
+ "@eslint-react/no-array-index-key": "warn",
18767
+ "@eslint-react/no-children-count": "warn",
18768
+ "@eslint-react/no-children-for-each": "warn",
18769
+ "@eslint-react/no-children-map": "warn",
18770
+ "@eslint-react/no-children-only": "warn",
18771
+ "@eslint-react/no-children-to-array": "warn",
18772
+ "@eslint-react/no-clone-element": "warn",
18773
+ "@eslint-react/no-comment-textnodes": "warn",
18774
+ "@eslint-react/no-component-will-mount": "error",
18775
+ "@eslint-react/no-component-will-receive-props": "error",
18776
+ "@eslint-react/no-component-will-update": "error",
18777
+ "@eslint-react/no-context-provider": "warn",
18778
+ "@eslint-react/no-create-ref": "error",
18779
+ "@eslint-react/no-default-props": "error",
18780
+ "@eslint-react/no-direct-mutation-state": "error",
18781
+ "@eslint-react/no-duplicate-key": "error",
18782
+ "@eslint-react/no-forward-ref": "warn",
18783
+ "@eslint-react/no-implicit-key": "warn",
18784
+ "@eslint-react/no-missing-key": "error",
18785
+ "@eslint-react/no-nested-components": "error",
18786
+ "@eslint-react/no-prop-types": "error",
18787
+ "@eslint-react/no-redundant-should-component-update": "error",
18788
+ "@eslint-react/no-set-state-in-component-did-mount": "warn",
18789
+ "@eslint-react/no-set-state-in-component-did-update": "warn",
18790
+ "@eslint-react/no-set-state-in-component-will-update": "warn",
18791
+ "@eslint-react/no-string-refs": "error",
18792
+ "@eslint-react/no-unsafe-component-will-mount": "warn",
18793
+ "@eslint-react/no-unsafe-component-will-receive-props": "warn",
18794
+ "@eslint-react/no-unsafe-component-will-update": "warn",
18795
+ "@eslint-react/no-unstable-context-value": "warn",
18796
+ "@eslint-react/no-unstable-default-props": "warn",
18797
+ "@eslint-react/no-unused-class-component-members": "warn",
18798
+ "@eslint-react/no-unused-state": "warn",
18799
+ "@eslint-react/prefer-destructuring-assignment": "warn",
18800
+ "@eslint-react/prefer-shorthand-boolean": "warn",
18801
+ "@eslint-react/prefer-shorthand-fragment": "warn",
18801
18802
  // recommended rules from eslint-plugin-react-compiler
18802
18803
  "react-compiler/react-compiler": "error",
18803
18804
  // overrides
@@ -19798,7 +19799,7 @@ function getOverrides(options, key) {
19798
19799
  const sub = resolveSubOptions(options, key);
19799
19800
  return "overrides" in sub ? sub.overrides : {};
19800
19801
  }
19801
- function getStormConfig(options, ...userConfigs) {
19802
+ function preset(options, ...userConfigs) {
19802
19803
  const {
19803
19804
  name: name3,
19804
19805
  globals = {},
@@ -19808,6 +19809,7 @@ function getStormConfig(options, ...userConfigs) {
19808
19809
  componentExts = [],
19809
19810
  gitignore: enableGitignore = true,
19810
19811
  jsx: enableJsx = true,
19812
+ mdx: enableMdx = true,
19811
19813
  cspell: enableCSpell = true,
19812
19814
  react: enableReact = false,
19813
19815
  "react-native": enableReactNative = false,
@@ -20033,7 +20035,7 @@ function getStormConfig(options, ...userConfigs) {
20033
20035
  })
20034
20036
  );
20035
20037
  }
20036
- if (options.mdx ?? true) {
20038
+ if (enableMdx) {
20037
20039
  configs6.push(
20038
20040
  mdx({
20039
20041
  overrides: getOverrides(options, "mdx")
@@ -20078,14 +20080,14 @@ function getStormConfig(options, ...userConfigs) {
20078
20080
  }
20079
20081
  return composer;
20080
20082
  }
20081
- var getConfig = getStormConfig;
20082
- var defineConfig = getStormConfig;
20083
- var preset_default = getStormConfig;
20083
+ var getConfig = preset;
20084
+ var defineConfig = preset;
20085
+ var preset_default = preset;
20084
20086
 
20085
20087
  exports.default = preset_default;
20086
20088
  exports.defaultPluginRenaming = defaultPluginRenaming;
20087
20089
  exports.defineConfig = defineConfig;
20088
20090
  exports.getConfig = getConfig;
20089
20091
  exports.getOverrides = getOverrides;
20090
- exports.getStormConfig = getStormConfig;
20092
+ exports.preset = preset;
20091
20093
  exports.resolveSubOptions = resolveSubOptions;
package/dist/preset.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Linter } from 'eslint';
2
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
3
- import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames, RuleOptions } from './types.cjs';
2
+ import { PresetConfig, OptionsConfig, UserConfig, PresetResult, RuleOptions } from './types.cjs';
4
3
  import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
5
4
  import '@stylistic/eslint-plugin';
6
5
  import '@typescript-eslint/parser';
7
6
  import 'eslint-config-flat-gitignore';
7
+ import 'eslint-flat-config-utils';
8
8
 
9
9
  declare const defaultPluginRenaming: {
10
10
  "@eslint-react": string;
@@ -27,8 +27,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
27
27
  * @param options - The preset options.
28
28
  * @param userConfigs - Additional ESLint configurations.
29
29
  */
30
- declare function getStormConfig(options: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
31
- declare const getConfig: typeof getStormConfig;
32
- declare const defineConfig: typeof getStormConfig;
30
+ declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
31
+ declare const getConfig: typeof preset;
32
+ declare const defineConfig: typeof preset;
33
33
 
34
- export { type ResolvedOptions, getStormConfig as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
34
+ export { type ResolvedOptions, preset as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, preset, resolveSubOptions };
package/dist/preset.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Linter } from 'eslint';
2
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
3
- import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames, RuleOptions } from './types.js';
2
+ import { PresetConfig, OptionsConfig, UserConfig, PresetResult, RuleOptions } from './types.js';
4
3
  import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
5
4
  import '@stylistic/eslint-plugin';
6
5
  import '@typescript-eslint/parser';
7
6
  import 'eslint-config-flat-gitignore';
7
+ import 'eslint-flat-config-utils';
8
8
 
9
9
  declare const defaultPluginRenaming: {
10
10
  "@eslint-react": string;
@@ -27,8 +27,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
27
27
  * @param options - The preset options.
28
28
  * @param userConfigs - Additional ESLint configurations.
29
29
  */
30
- declare function getStormConfig(options: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
31
- declare const getConfig: typeof getStormConfig;
32
- declare const defineConfig: typeof getStormConfig;
30
+ declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
31
+ declare const getConfig: typeof preset;
32
+ declare const defineConfig: typeof preset;
33
33
 
34
- export { type ResolvedOptions, getStormConfig as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
34
+ export { type ResolvedOptions, preset as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, preset, resolveSubOptions };
package/dist/preset.js CHANGED
@@ -4285,7 +4285,7 @@ init_esm_shims();
4285
4285
 
4286
4286
  // ../eslint-plugin-banner/package.json
4287
4287
  var package_default = {
4288
- version: "0.0.19"};
4288
+ version: "0.0.21"};
4289
4289
 
4290
4290
  // ../eslint-plugin-banner/src/rules/banner.ts
4291
4291
  init_esm_shims();
@@ -18047,7 +18047,7 @@ plugin3.configs = configs3;
18047
18047
 
18048
18048
  // ../eslint-plugin-pnpm/package.json
18049
18049
  var package_default2 = {
18050
- version: "0.0.18"};
18050
+ version: "0.0.20"};
18051
18051
 
18052
18052
  // ../eslint-plugin-pnpm/src/plugin.ts
18053
18053
  var plugin4 = {
@@ -18302,17 +18302,17 @@ async function react(options = {}) {
18302
18302
  name: "storm/react/rules",
18303
18303
  rules: {
18304
18304
  // recommended rules from @eslint-react/dom
18305
- "react-dom/no-children-in-void-dom-elements": "warn",
18306
- "react-dom/no-dangerously-set-innerhtml": "warn",
18307
- "react-dom/no-dangerously-set-innerhtml-with-children": "error",
18308
- "react-dom/no-find-dom-node": "error",
18309
- "react-dom/no-missing-button-type": "warn",
18310
- "react-dom/no-missing-iframe-sandbox": "warn",
18311
- "react-dom/no-namespace": "error",
18312
- "react-dom/no-render-return-value": "error",
18313
- "react-dom/no-script-url": "warn",
18314
- "react-dom/no-unsafe-iframe-sandbox": "warn",
18315
- "react-dom/no-unsafe-target-blank": "warn",
18305
+ "@eslint-react/dom-no-void-elements-with-children": "warn",
18306
+ "@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
18307
+ "@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
18308
+ "@eslint-react/dom-no-find-dom-node": "error",
18309
+ "@eslint-react/dom-no-missing-button-type": "warn",
18310
+ "@eslint-react/dom-no-missing-iframe-sandbox": "warn",
18311
+ "@eslint-react/dom-no-namespace": "error",
18312
+ "@eslint-react/dom-no-render-return-value": "error",
18313
+ "@eslint-react/dom-no-script-url": "warn",
18314
+ "@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
18315
+ "@eslint-react/dom-no-unsafe-target-blank": "warn",
18316
18316
  // recommended rules react-hooks
18317
18317
  "react-hooks/exhaustive-deps": "warn",
18318
18318
  "react-hooks/rules-of-hooks": "error",
@@ -18341,51 +18341,52 @@ async function react(options = {}) {
18341
18341
  }
18342
18342
  ],
18343
18343
  // recommended rules from @eslint-react/web-api
18344
- "react-web-api/no-leaked-event-listener": "warn",
18345
- "react-web-api/no-leaked-interval": "warn",
18346
- "react-web-api/no-leaked-resize-observer": "warn",
18347
- "react-web-api/no-leaked-timeout": "warn",
18344
+ "@eslint-react/web-api-no-leaked-event-listener": "warn",
18345
+ "@eslint-react/web-api-no-leaked-interval": "warn",
18346
+ "@eslint-react/web-api-no-leaked-resize-observer": "warn",
18347
+ "@eslint-react/web-api-no-leaked-timeout": "warn",
18348
18348
  // recommended rules from @eslint-react
18349
- "react/ensure-forward-ref-using-ref": "warn",
18350
- "react/jsx-no-duplicate-props": "warn",
18351
- "react/jsx-uses-vars": "warn",
18352
- "react/no-access-state-in-setstate": "error",
18353
- "react/no-array-index-key": "warn",
18354
- "react/no-children-count": "warn",
18355
- "react/no-children-for-each": "warn",
18356
- "react/no-children-map": "warn",
18357
- "react/no-children-only": "warn",
18358
- "react/no-children-to-array": "warn",
18359
- "react/no-clone-element": "warn",
18360
- "react/no-comment-textnodes": "warn",
18361
- "react/no-component-will-mount": "error",
18362
- "react/no-component-will-receive-props": "error",
18363
- "react/no-component-will-update": "error",
18364
- "react/no-context-provider": "warn",
18365
- "react/no-create-ref": "error",
18366
- "react/no-default-props": "error",
18367
- "react/no-direct-mutation-state": "error",
18368
- "react/no-duplicate-key": "error",
18369
- "react/no-forward-ref": "warn",
18370
- "react/no-implicit-key": "warn",
18371
- "react/no-missing-key": "error",
18372
- "react/no-nested-components": "error",
18373
- "react/no-prop-types": "error",
18374
- "react/no-redundant-should-component-update": "error",
18375
- "react/no-set-state-in-component-did-mount": "warn",
18376
- "react/no-set-state-in-component-did-update": "warn",
18377
- "react/no-set-state-in-component-will-update": "warn",
18378
- "react/no-string-refs": "error",
18379
- "react/no-unsafe-component-will-mount": "warn",
18380
- "react/no-unsafe-component-will-receive-props": "warn",
18381
- "react/no-unsafe-component-will-update": "warn",
18382
- "react/no-unstable-context-value": "warn",
18383
- "react/no-unstable-default-props": "warn",
18384
- "react/no-unused-class-component-members": "warn",
18385
- "react/no-unused-state": "warn",
18386
- "react/prefer-destructuring-assignment": "warn",
18387
- "react/prefer-shorthand-boolean": "warn",
18388
- "react/prefer-shorthand-fragment": "warn",
18349
+ "@eslint-react/error-boundaries": "error",
18350
+ "@eslint-react/ensure-forward-ref-using-ref": "warn",
18351
+ "@eslint-react/jsx-no-duplicate-props": "warn",
18352
+ "@eslint-react/jsx-uses-vars": "warn",
18353
+ "@eslint-react/no-access-state-in-setstate": "error",
18354
+ "@eslint-react/no-array-index-key": "warn",
18355
+ "@eslint-react/no-children-count": "warn",
18356
+ "@eslint-react/no-children-for-each": "warn",
18357
+ "@eslint-react/no-children-map": "warn",
18358
+ "@eslint-react/no-children-only": "warn",
18359
+ "@eslint-react/no-children-to-array": "warn",
18360
+ "@eslint-react/no-clone-element": "warn",
18361
+ "@eslint-react/no-comment-textnodes": "warn",
18362
+ "@eslint-react/no-component-will-mount": "error",
18363
+ "@eslint-react/no-component-will-receive-props": "error",
18364
+ "@eslint-react/no-component-will-update": "error",
18365
+ "@eslint-react/no-context-provider": "warn",
18366
+ "@eslint-react/no-create-ref": "error",
18367
+ "@eslint-react/no-default-props": "error",
18368
+ "@eslint-react/no-direct-mutation-state": "error",
18369
+ "@eslint-react/no-duplicate-key": "error",
18370
+ "@eslint-react/no-forward-ref": "warn",
18371
+ "@eslint-react/no-implicit-key": "warn",
18372
+ "@eslint-react/no-missing-key": "error",
18373
+ "@eslint-react/no-nested-components": "error",
18374
+ "@eslint-react/no-prop-types": "error",
18375
+ "@eslint-react/no-redundant-should-component-update": "error",
18376
+ "@eslint-react/no-set-state-in-component-did-mount": "warn",
18377
+ "@eslint-react/no-set-state-in-component-did-update": "warn",
18378
+ "@eslint-react/no-set-state-in-component-will-update": "warn",
18379
+ "@eslint-react/no-string-refs": "error",
18380
+ "@eslint-react/no-unsafe-component-will-mount": "warn",
18381
+ "@eslint-react/no-unsafe-component-will-receive-props": "warn",
18382
+ "@eslint-react/no-unsafe-component-will-update": "warn",
18383
+ "@eslint-react/no-unstable-context-value": "warn",
18384
+ "@eslint-react/no-unstable-default-props": "warn",
18385
+ "@eslint-react/no-unused-class-component-members": "warn",
18386
+ "@eslint-react/no-unused-state": "warn",
18387
+ "@eslint-react/prefer-destructuring-assignment": "warn",
18388
+ "@eslint-react/prefer-shorthand-boolean": "warn",
18389
+ "@eslint-react/prefer-shorthand-fragment": "warn",
18389
18390
  // recommended rules from eslint-plugin-react-compiler
18390
18391
  "react-compiler/react-compiler": "error",
18391
18392
  // overrides
@@ -19347,7 +19348,7 @@ function getOverrides(options, key) {
19347
19348
  const sub = resolveSubOptions(options, key);
19348
19349
  return "overrides" in sub ? sub.overrides : {};
19349
19350
  }
19350
- function getStormConfig(options, ...userConfigs) {
19351
+ function preset(options, ...userConfigs) {
19351
19352
  const {
19352
19353
  name: name3,
19353
19354
  globals = {},
@@ -19357,6 +19358,7 @@ function getStormConfig(options, ...userConfigs) {
19357
19358
  componentExts = [],
19358
19359
  gitignore: enableGitignore = true,
19359
19360
  jsx: enableJsx = true,
19361
+ mdx: enableMdx = true,
19360
19362
  cspell: enableCSpell = true,
19361
19363
  react: enableReact = false,
19362
19364
  "react-native": enableReactNative = false,
@@ -19582,7 +19584,7 @@ function getStormConfig(options, ...userConfigs) {
19582
19584
  })
19583
19585
  );
19584
19586
  }
19585
- if (options.mdx ?? true) {
19587
+ if (enableMdx) {
19586
19588
  configs6.push(
19587
19589
  mdx({
19588
19590
  overrides: getOverrides(options, "mdx")
@@ -19627,8 +19629,8 @@ function getStormConfig(options, ...userConfigs) {
19627
19629
  }
19628
19630
  return composer;
19629
19631
  }
19630
- var getConfig = getStormConfig;
19631
- var defineConfig = getStormConfig;
19632
- var preset_default = getStormConfig;
19632
+ var getConfig = preset;
19633
+ var defineConfig = preset;
19634
+ var preset_default = preset;
19633
19635
 
19634
- export { preset_default as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
19636
+ export { preset_default as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, preset, resolveSubOptions };
package/dist/types.d.cts CHANGED
@@ -3,6 +3,7 @@ import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
3
3
  import { ParserOptions } from '@typescript-eslint/parser';
4
4
  import { Linter } from 'eslint';
5
5
  import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
6
+ import { FlatConfigComposer } from 'eslint-flat-config-utils';
6
7
 
7
8
  /* eslint-disable */
8
9
  /* prettier-ignore */
@@ -19301,7 +19302,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
19301
19302
  /**
19302
19303
  * Enable linting for mdx files.
19303
19304
  *
19304
- * @defaultValue true
19305
+ * @defaultValue false
19305
19306
  */
19306
19307
  mdx?: boolean | OptionsOverrides;
19307
19308
  /**
@@ -19392,5 +19393,8 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
19392
19393
  */
19393
19394
  autoRenamePlugins?: boolean;
19394
19395
  }
19396
+ type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>;
19397
+ type PresetConfig<TOptions> = TOptions & Omit<TypedFlatConfigItem, "files">;
19398
+ type PresetResult = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
19395
19399
 
19396
- export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem };
19400
+ export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, PresetConfig, PresetResult, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem, UserConfig };
package/dist/types.d.ts CHANGED
@@ -3,6 +3,7 @@ import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
3
3
  import { ParserOptions } from '@typescript-eslint/parser';
4
4
  import { Linter } from 'eslint';
5
5
  import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
6
+ import { FlatConfigComposer } from 'eslint-flat-config-utils';
6
7
 
7
8
  /* eslint-disable */
8
9
  /* prettier-ignore */
@@ -19301,7 +19302,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
19301
19302
  /**
19302
19303
  * Enable linting for mdx files.
19303
19304
  *
19304
- * @defaultValue true
19305
+ * @defaultValue false
19305
19306
  */
19306
19307
  mdx?: boolean | OptionsOverrides;
19307
19308
  /**
@@ -19392,5 +19393,8 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
19392
19393
  */
19393
19394
  autoRenamePlugins?: boolean;
19394
19395
  }
19396
+ type UserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>;
19397
+ type PresetConfig<TOptions> = TOptions & Omit<TypedFlatConfigItem, "files">;
19398
+ type PresetResult = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
19395
19399
 
19396
- export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem };
19400
+ export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsBanner, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSDoc, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTSDoc, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, PresetConfig, PresetResult, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem, UserConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.170.80",
3
+ "version": "0.170.82",
4
4
  "private": false,
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "keywords": [
@@ -141,9 +141,9 @@
141
141
  "@eslint/eslintrc": "^3.3.5",
142
142
  "@eslint/markdown": "^6.6.0",
143
143
  "@nx/eslint-plugin": "22.7.5",
144
- "@storm-software/config": "1.137.88",
145
- "@storm-software/config-tools": "1.190.56",
146
- "@storm-software/package-constants": "0.1.69",
144
+ "@storm-software/config": "^1.137.89",
145
+ "@storm-software/config-tools": "^1.190.57",
146
+ "@storm-software/package-constants": "^0.1.70",
147
147
  "@stylistic/eslint-plugin": "^4.4.1",
148
148
  "@typescript-eslint/eslint-plugin": "^8.61.0",
149
149
  "@typescript-eslint/parser": "^8.61.0",
@@ -162,7 +162,6 @@
162
162
  "eslint-plugin-jsx-a11y": "^6.10.2",
163
163
  "eslint-plugin-markdown": "^5.1.0",
164
164
  "eslint-plugin-markdownlint": "^0.6.0",
165
- "eslint-plugin-mdx": "^3.8.1",
166
165
  "eslint-plugin-n": "^17.24.0",
167
166
  "eslint-plugin-no-only-tests": "^3.4.0",
168
167
  "eslint-plugin-no-secrets": "^2.3.3",
@@ -197,9 +196,9 @@
197
196
  "@next/eslint-plugin-next": "^15.5.19",
198
197
  "@nx/eslint": "22.7.5",
199
198
  "@prettier/plugin-xml": "^3.4.2",
200
- "@storm-software/eslint-plugin-banner": "0.0.20",
201
- "@storm-software/eslint-plugin-pnpm": "0.0.19",
202
- "@storm-software/eslint-plugin-tsdoc": "0.0.19",
199
+ "@storm-software/eslint-plugin-banner": "^0.0.21",
200
+ "@storm-software/eslint-plugin-pnpm": "^0.0.20",
201
+ "@storm-software/eslint-plugin-tsdoc": "^0.0.20",
203
202
  "@stylistic/eslint-plugin-migrate": "^4.4.1",
204
203
  "@types/eslint": "^9.6.1",
205
204
  "@types/eslint__js": "^8.42.3",
@@ -212,6 +211,7 @@
212
211
  "eslint-plugin-format": "^1.5.0",
213
212
  "eslint-plugin-import-x": "^4.16.2",
214
213
  "eslint-plugin-import-zod": "^1.2.1",
214
+ "eslint-plugin-mdx": "^3.8.1",
215
215
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
216
216
  "eslint-plugin-react-hooks": "^7.1.1",
217
217
  "eslint-plugin-react-native": "^5.0.0",
@@ -240,6 +240,7 @@
240
240
  "eslint-plugin-astro": "^1.2.0",
241
241
  "eslint-plugin-format": ">=0.1.0",
242
242
  "eslint-plugin-import-zod": "^1.2.0",
243
+ "eslint-plugin-mdx": "^3.8.1",
243
244
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
244
245
  "eslint-plugin-react-hooks": "^7.1.1",
245
246
  "eslint-plugin-react-native": "^5.0.0",
@@ -251,5 +252,5 @@
251
252
  "zod": "^3.25.0 || ^4.0.0"
252
253
  },
253
254
  "publishConfig": { "access": "public" },
254
- "gitHead": "7a421a2d5b47e1e51d966ee4709c8346202edd7c"
255
+ "gitHead": "7fb312fc7be7b8242baacfa77919c5317f4df349"
255
256
  }