@storm-software/eslint 0.170.80 → 0.170.81

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.20"};
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.19"};
18463
18463
 
18464
18464
  // ../eslint-plugin-pnpm/src/plugin.ts
18465
18465
  var plugin4 = {
@@ -19798,7 +19798,7 @@ function getOverrides(options, key) {
19798
19798
  const sub = resolveSubOptions(options, key);
19799
19799
  return "overrides" in sub ? sub.overrides : {};
19800
19800
  }
19801
- function getStormConfig(options, ...userConfigs) {
19801
+ function preset(options, ...userConfigs) {
19802
19802
  const {
19803
19803
  name: name3,
19804
19804
  globals = {},
@@ -19808,6 +19808,7 @@ function getStormConfig(options, ...userConfigs) {
19808
19808
  componentExts = [],
19809
19809
  gitignore: enableGitignore = true,
19810
19810
  jsx: enableJsx = true,
19811
+ mdx: enableMdx = true,
19811
19812
  cspell: enableCSpell = true,
19812
19813
  react: enableReact = false,
19813
19814
  "react-native": enableReactNative = false,
@@ -20033,7 +20034,7 @@ function getStormConfig(options, ...userConfigs) {
20033
20034
  })
20034
20035
  );
20035
20036
  }
20036
- if (options.mdx ?? true) {
20037
+ if (enableMdx) {
20037
20038
  configs6.push(
20038
20039
  mdx({
20039
20040
  overrides: getOverrides(options, "mdx")
@@ -20078,14 +20079,14 @@ function getStormConfig(options, ...userConfigs) {
20078
20079
  }
20079
20080
  return composer;
20080
20081
  }
20081
- var getConfig = getStormConfig;
20082
- var defineConfig = getStormConfig;
20083
- var preset_default = getStormConfig;
20082
+ var getConfig = preset;
20083
+ var defineConfig = preset;
20084
+ var preset_default = preset;
20084
20085
 
20085
20086
  exports.default = preset_default;
20086
20087
  exports.defaultPluginRenaming = defaultPluginRenaming;
20087
20088
  exports.defineConfig = defineConfig;
20088
20089
  exports.getConfig = getConfig;
20089
20090
  exports.getOverrides = getOverrides;
20090
- exports.getStormConfig = getStormConfig;
20091
+ exports.preset = preset;
20091
20092
  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.20"};
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.19"};
18051
18051
 
18052
18052
  // ../eslint-plugin-pnpm/src/plugin.ts
18053
18053
  var plugin4 = {
@@ -19347,7 +19347,7 @@ function getOverrides(options, key) {
19347
19347
  const sub = resolveSubOptions(options, key);
19348
19348
  return "overrides" in sub ? sub.overrides : {};
19349
19349
  }
19350
- function getStormConfig(options, ...userConfigs) {
19350
+ function preset(options, ...userConfigs) {
19351
19351
  const {
19352
19352
  name: name3,
19353
19353
  globals = {},
@@ -19357,6 +19357,7 @@ function getStormConfig(options, ...userConfigs) {
19357
19357
  componentExts = [],
19358
19358
  gitignore: enableGitignore = true,
19359
19359
  jsx: enableJsx = true,
19360
+ mdx: enableMdx = true,
19360
19361
  cspell: enableCSpell = true,
19361
19362
  react: enableReact = false,
19362
19363
  "react-native": enableReactNative = false,
@@ -19582,7 +19583,7 @@ function getStormConfig(options, ...userConfigs) {
19582
19583
  })
19583
19584
  );
19584
19585
  }
19585
- if (options.mdx ?? true) {
19586
+ if (enableMdx) {
19586
19587
  configs6.push(
19587
19588
  mdx({
19588
19589
  overrides: getOverrides(options, "mdx")
@@ -19627,8 +19628,8 @@ function getStormConfig(options, ...userConfigs) {
19627
19628
  }
19628
19629
  return composer;
19629
19630
  }
19630
- var getConfig = getStormConfig;
19631
- var defineConfig = getStormConfig;
19632
- var preset_default = getStormConfig;
19631
+ var getConfig = preset;
19632
+ var defineConfig = preset;
19633
+ var preset_default = preset;
19633
19634
 
19634
- export { preset_default as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
19635
+ 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.81",
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": "8f0d34104a7e3ae91f28120ca9796f09f34b379d"
255
256
  }