@storm-software/eslint 0.137.4 → 0.138.1

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
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.137.3-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)
24
+ [![Version](https://img.shields.io/badge/version-0.138.0-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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileBanner
3
- } from "./chunk-KDHZD7SF.js";
3
+ } from "./chunk-ZUIV57VZ.js";
4
4
  import {
5
5
  GLOB_SRC
6
6
  } from "./chunk-AIKLBIPC.js";
@@ -166,11 +166,11 @@ var bannerRule = ESLintUtils.RuleCreator(() => `https://docs.stormsoftware.com/e
166
166
  {
167
167
  repositoryName: "",
168
168
  commentType: "block",
169
- numNewlines: 1,
169
+ numNewlines: 2,
170
170
  lineEndings: "unix"
171
171
  }
172
172
  ],
173
- create(context, [{ banner, repositoryName = "", commentType = "block", numNewlines = 1, lineEndings = "unix" }]) {
173
+ create(context, [{ banner, repositoryName = "", commentType = "block", numNewlines = 2, lineEndings = "unix" }]) {
174
174
  if (!banner) {
175
175
  banner = getFileBanner(repositoryName);
176
176
  }
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-SHUYVCID.js";
7
7
 
8
8
  // src/utils/get-file-banner.ts
9
- var getFileBanner = /* @__PURE__ */ __name((name = "") => {
10
- if (!name) {
11
- name = process.env.STORM_NAME || "";
9
+ var getFileBanner = /* @__PURE__ */ __name((repositoryName = "") => {
10
+ if (!repositoryName) {
11
+ repositoryName = process.env.STORM_NAME || "";
12
12
  }
13
13
  let padding = " ";
14
- for (let i = 0; i < name.length + 2 && padding.length > 4; i++) {
14
+ for (let i = 0; i < repositoryName.length + 2 && padding.length > 4; i++) {
15
15
  padding = padding.slice(0, -1);
16
16
  }
17
- let titleName = name;
17
+ let titleName = repositoryName;
18
18
  if (titleName) {
19
19
  if (titleName?.startsWith("@")) {
20
20
  titleName = titleName.slice(1);
@@ -36,10 +36,10 @@ ${padding}\u26A1 Storm Software ${titleName ? `- ${titleName}` : ""}
36
36
  our licensing page.
37
37
 
38
38
  Website: ${process.env.STORM_HOMEPAGE ?? "https://stormsoftware.com"}
39
- Repository: ${process.env.STORM_REPOSITORY ?? `https://github.com/storm-software${name ? `/${name}` : ""}`}
40
- Documentation: ${process.env.STORM_DOCS ? process.env.STORM_DOCS : `https://stormsoftware.com/${name ? `projects/${name}/` : ""}docs`}
39
+ Repository: ${process.env.STORM_REPOSITORY ?? `https://github.com/storm-software${repositoryName ? `/${repositoryName}` : ""}`}
40
+ Documentation: ${process.env.STORM_DOCS ? process.env.STORM_DOCS : `https://stormsoftware.com/${repositoryName ? `projects/${repositoryName}/` : ""}docs`}
41
41
  Contact: ${process.env.STORM_HOMEPAGE ? process.env.STORM_HOMEPAGE.endsWith("/") ? process.env.STORM_HOMEPAGE.slice(-1) : process.env.STORM_HOMEPAGE : "https://stormsoftware.com"}/contact
42
- License: ${process.env.STORM_LICENSING ? process.env.STORM_LICENSING : `https://stormsoftware.com/${name ? `projects/${name}/` : ""}license`}
42
+ License: ${process.env.STORM_LICENSING ? process.env.STORM_LICENSING : `https://stormsoftware.com/${repositoryName ? `projects/${repositoryName}/` : ""}license`}
43
43
 
44
44
  ------------------------------------------------------------------- `;
45
45
  }, "getFileBanner");
package/dist/preset.d.ts CHANGED
@@ -27,6 +27,6 @@ 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<any, any> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
30
+ declare function getStormConfig(options: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
31
31
 
32
32
  export { type ResolvedOptions, getStormConfig as default, defaultPluginRenaming, getOverrides, getStormConfig, resolveSubOptions };
package/dist/preset.js CHANGED
@@ -11,11 +11,11 @@ import {
11
11
  } from "./chunk-GXNMSXDL.js";
12
12
  import {
13
13
  banner_plugin_default
14
- } from "./chunk-BXVDD33Y.js";
14
+ } from "./chunk-VMGPCABA.js";
15
15
  import {
16
16
  joinPaths
17
17
  } from "./chunk-G7QVU75O.js";
18
- import "./chunk-KDHZD7SF.js";
18
+ import "./chunk-ZUIV57VZ.js";
19
19
  import {
20
20
  GLOB_ASTRO,
21
21
  GLOB_ASTRO_TS,
@@ -853,7 +853,7 @@ __name(imports, "imports");
853
853
  import defu2 from "defu";
854
854
  import globalsLib from "globals";
855
855
  async function javascript(options = {}) {
856
- const { lineEndings = "unix", overrides = {}, name = "", globals = {} } = options;
856
+ const { lineEndings = "unix", overrides = {}, repositoryName, globals = {} } = options;
857
857
  return [
858
858
  {
859
859
  name: "storm/javascript/setup",
@@ -871,10 +871,8 @@ async function javascript(options = {}) {
871
871
  ecmaFeatures: {
872
872
  jsx: true
873
873
  },
874
- ecmaVersion: 2022,
875
- sourceType: "module"
876
- },
877
- sourceType: "module"
874
+ ecmaVersion: 2022
875
+ }
878
876
  },
879
877
  linterOptions: {
880
878
  reportUnusedDisableDirectives: true
@@ -892,8 +890,8 @@ async function javascript(options = {}) {
892
890
  "error",
893
891
  {
894
892
  commentType: "block",
895
- numNewlines: 1,
896
- repositoryName: name,
893
+ numNewlines: 2,
894
+ repositoryName,
897
895
  lineEndings
898
896
  }
899
897
  ]
@@ -2425,6 +2423,7 @@ async function markdown(options = {}) {
2425
2423
  name: "storm/markdown/disables",
2426
2424
  rules: {
2427
2425
  "import/newline-after-import": "off",
2426
+ "banner/banner": "off",
2428
2427
  "no-alert": "off",
2429
2428
  "no-console": "off",
2430
2429
  "no-labels": "off",
@@ -2575,7 +2574,7 @@ __name(node, "node");
2575
2574
  // src/configs/nx.ts
2576
2575
  import defu3 from "defu";
2577
2576
  async function nx(options = {}) {
2578
- const { depsCheck = false, depsCheckSeverity = "error", moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
2577
+ const { depsCheck = {}, depsCheckSeverity = "error", moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
2579
2578
  return [
2580
2579
  {
2581
2580
  name: "storm/nx/setup",
@@ -3414,7 +3413,7 @@ __name(toml, "toml");
3414
3413
 
3415
3414
  // src/configs/typescript.ts
3416
3415
  async function typescript(options = {}) {
3417
- const { componentExts = [], overrides = {}, overridesTypeAware = {}, parserOptions = {}, type = "app" } = options;
3416
+ const { componentExts = [], overrides = {}, overridesTypeAware = {}, parserOptions = {}, tsdoc = "warn", type = "app" } = options;
3418
3417
  let tsconfigRootDir = process.cwd();
3419
3418
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
3420
3419
  tsconfigRootDir = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
@@ -3472,6 +3471,10 @@ async function typescript(options = {}) {
3472
3471
  interopDefault(import("@typescript-eslint/eslint-plugin")),
3473
3472
  interopDefault(import("@typescript-eslint/parser"))
3474
3473
  ]);
3474
+ let pluginTsdoc;
3475
+ if (tsdoc !== false && tsdoc !== "off") {
3476
+ pluginTsdoc = await interopDefault(import("eslint-plugin-tsdoc"));
3477
+ }
3475
3478
  function makeParser(typeAware, files2, ignores2) {
3476
3479
  return {
3477
3480
  files: files2,
@@ -3662,6 +3665,16 @@ async function typescript(options = {}) {
3662
3665
  ...overrides
3663
3666
  }
3664
3667
  },
3668
+ pluginTsdoc && {
3669
+ files,
3670
+ name: "storm/typescript/rules-tsdoc",
3671
+ plugins: {
3672
+ tsdoc: pluginTsdoc
3673
+ },
3674
+ rules: {
3675
+ "tsdoc/syntax": tsdoc
3676
+ }
3677
+ },
3665
3678
  ...isTypeAware ? [
3666
3679
  {
3667
3680
  files: filesTypeAware,
@@ -3673,7 +3686,7 @@ async function typescript(options = {}) {
3673
3686
  }
3674
3687
  }
3675
3688
  ] : []
3676
- ];
3689
+ ].filter(Boolean);
3677
3690
  }
3678
3691
  __name(typescript, "typescript");
3679
3692
 
@@ -3853,7 +3866,7 @@ function getOverrides(options, key) {
3853
3866
  }
3854
3867
  __name(getOverrides, "getOverrides");
3855
3868
  function getStormConfig(options, ...userConfigs) {
3856
- const { name = "", globals = {}, lineEndings = "unix", astro: enableAstro = false, autoRenamePlugins = true, componentExts = [], gitignore: enableGitignore = true, jsx: enableJsx = true, cspell: enableCSpell = true, react: enableReact = false, "react-native": enableReactNative = false, regexp: enableRegexp = true, next: enableNext = false, graphql: enableGraphQL = false, storybook: enableStorybook = false, typescript: enableTypeScript = isPackageExists2("typescript"), unicorn: enableUnicorn = true, unocss: enableUnoCSS = false } = options;
3869
+ const { repositoryName, globals = {}, lineEndings = "unix", astro: enableAstro = false, autoRenamePlugins = true, componentExts = [], gitignore: enableGitignore = true, jsx: enableJsx = true, cspell: enableCSpell = true, react: enableReact = false, "react-native": enableReactNative = false, regexp: enableRegexp = true, next: enableNext = false, graphql: enableGraphQL = false, storybook: enableStorybook = false, typescript: enableTypeScript = isPackageExists2("typescript"), unicorn: enableUnicorn = true, unocss: enableUnoCSS = false } = options;
3857
3870
  let isInEditor = options.isInEditor;
3858
3871
  if (isInEditor == null) {
3859
3872
  isInEditor = isInEditorEnv();
@@ -3886,7 +3899,7 @@ function getStormConfig(options, ...userConfigs) {
3886
3899
  tsconfigPath = getTsConfigPath();
3887
3900
  }
3888
3901
  configs2.push(ignores(options.ignores), javascript({
3889
- name,
3902
+ repositoryName,
3890
3903
  globals,
3891
3904
  lineEndings,
3892
3905
  isInEditor,
@@ -4009,7 +4022,9 @@ function getStormConfig(options, ...userConfigs) {
4009
4022
  throw new Error('[@storm-software/eslint] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.');
4010
4023
  }
4011
4024
  const fusedConfig = flatConfigProps.reduce((acc, key) => {
4012
- if (key in options) acc[key] = options[key];
4025
+ if (key in options) {
4026
+ acc[key] = options[key];
4027
+ }
4013
4028
  return acc;
4014
4029
  }, {});
4015
4030
  if (Object.keys(fusedConfig).length) configs2.push([
package/dist/types.d.ts CHANGED
@@ -6498,6 +6498,11 @@ Backward pagination arguments
6498
6498
  * @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
6499
6499
  */
6500
6500
  'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
6501
+ /**
6502
+ * Validates that TypeScript documentation comments conform to the TSDoc standard
6503
+ * @see https://tsdoc.org/pages/packages/eslint-plugin-tsdoc
6504
+ */
6505
+ 'tsdoc/syntax'?: Linter.RuleEntry<[]>
6501
6506
  /**
6502
6507
  * Require or disallow Unicode byte order mark (BOM)
6503
6508
  * @see https://eslint.org/docs/latest/rules/unicode-bom
@@ -16285,7 +16290,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
16285
16290
  onlyEquality?: boolean
16286
16291
  }]
16287
16292
  // Names of all the configs
16288
- type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'storm/markdown/disables' | 'storm/mdx/setup' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier/rules' | 'storm/perfectionist/rules' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/regexp/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules'
16293
+ type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'storm/markdown/disables' | 'storm/mdx/setup' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier/rules' | 'storm/perfectionist/rules' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/regexp/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-tsdoc' | 'storm/typescript/rules-type-aware' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules'
16289
16294
 
16290
16295
  /**
16291
16296
  * Vendor types from Prettier so we don't rely on the dependency.
@@ -16485,7 +16490,7 @@ interface OptionsComponentExts {
16485
16490
  * Additional extensions for components.
16486
16491
  *
16487
16492
  * @example ['vue']
16488
- * @default []
16493
+ * @defaultValue []
16489
16494
  */
16490
16495
  componentExts?: string[];
16491
16496
  }
@@ -16493,7 +16498,7 @@ interface OptionsUnicorn {
16493
16498
  /**
16494
16499
  * Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
16495
16500
  *
16496
- * @default false
16501
+ * @defaultValue false
16497
16502
  */
16498
16503
  allRecommended?: boolean;
16499
16504
  }
@@ -16504,12 +16509,12 @@ interface OptionsTypeScriptParserOptions {
16504
16509
  parserOptions?: Partial<ParserOptions>;
16505
16510
  /**
16506
16511
  * Glob patterns for files that should be type aware.
16507
- * @default ['**\/*.{ts,tsx}']
16512
+ * @defaultValue ['**\/*.{ts,tsx}']
16508
16513
  */
16509
16514
  filesTypeAware?: string[];
16510
16515
  /**
16511
16516
  * Glob patterns for files that should not be type aware.
16512
- * @default ['**\/*.md\/**', '**\/*.astro/*.ts']
16517
+ * @defaultValue ['**\/*.md\/**', '**\/*.astro/*.ts']
16513
16518
  */
16514
16519
  ignoresTypeAware?: string[];
16515
16520
  }
@@ -16523,6 +16528,14 @@ interface OptionsTypeScriptWithTypes {
16523
16528
  * Override type aware rules.
16524
16529
  */
16525
16530
  overridesTypeAware?: TypedFlatConfigItem["rules"];
16531
+ /**
16532
+ * The rule to use for eslint-plugin-tsdoc syntax checking. If set to `false`, it will disable the plugin.
16533
+ *
16534
+ * @see https://github.com/microsoft/tsdoc/tree/master/eslint-plugin
16535
+ *
16536
+ * @defaultValue 'warn'
16537
+ */
16538
+ tsdoc?: "warn" | "error" | "off" | false;
16526
16539
  }
16527
16540
  interface OptionsHasTypeScript {
16528
16541
  typescript?: boolean;
@@ -16540,7 +16553,7 @@ interface OptionsProjectType {
16540
16553
  /**
16541
16554
  * Type of the project. `lib` will enable more strict rules for libraries.
16542
16555
  *
16543
- * @default 'app'
16556
+ * @defaultValue 'app'
16544
16557
  */
16545
16558
  type?: "app" | "lib";
16546
16559
  }
@@ -16556,12 +16569,12 @@ interface OptionsIsInEditor {
16556
16569
  interface OptionsUnoCSS extends OptionsOverrides {
16557
16570
  /**
16558
16571
  * Enable attributify support.
16559
- * @default true
16572
+ * @defaultValue true
16560
16573
  */
16561
16574
  attributify?: boolean;
16562
16575
  /**
16563
16576
  * Enable strict mode by throwing errors about blocklisted classes.
16564
- * @default false
16577
+ * @defaultValue false
16565
16578
  */
16566
16579
  strict?: boolean;
16567
16580
  }
@@ -16571,7 +16584,7 @@ interface OptionsNext extends OptionsOverrides {
16571
16584
  *
16572
16585
  * @see https://nextjs.org/docs/app/api-reference/config/eslint#with-core-web-vitals
16573
16586
  *
16574
- * @default true
16587
+ * @defaultValue true
16575
16588
  */
16576
16589
  coreWebVitals?: boolean;
16577
16590
  /**
@@ -16587,7 +16600,7 @@ interface OptionsGraphQL extends OptionsOverrides {
16587
16600
  *
16588
16601
  * @see https://the-guild.dev/graphql/eslint/rules
16589
16602
  *
16590
- * @default true
16603
+ * @defaultValue true
16591
16604
  */
16592
16605
  schema?: boolean;
16593
16606
  /**
@@ -16595,7 +16608,7 @@ interface OptionsGraphQL extends OptionsOverrides {
16595
16608
  *
16596
16609
  * @see https://the-guild.dev/graphql/eslint/rules
16597
16610
  *
16598
- * @default true
16611
+ * @defaultValue true
16599
16612
  */
16600
16613
  operations?: boolean;
16601
16614
  /**
@@ -16603,7 +16616,7 @@ interface OptionsGraphQL extends OptionsOverrides {
16603
16616
  *
16604
16617
  * @see https://github.com/relayjs/eslint-plugin-relay
16605
16618
  *
16606
- * @default true
16619
+ * @defaultValue true
16607
16620
  */
16608
16621
  relay?: boolean;
16609
16622
  }
@@ -16613,7 +16626,7 @@ interface OptionsStorybook extends OptionsOverrides {
16613
16626
  *
16614
16627
  * @see https://storybook.js.org/docs/api/csf
16615
16628
  *
16616
- * @default "loose"
16629
+ * @defaultValue "loose"
16617
16630
  */
16618
16631
  csf?: "none" | "loose" | "strict";
16619
16632
  }
@@ -16621,49 +16634,49 @@ interface OptionsNxDependencyChecks extends OptionsOverrides {
16621
16634
  /**
16622
16635
  * List of build target names
16623
16636
  *
16624
- * @default ['build-base', 'build']
16637
+ * @defaultValue ['build-base', 'build']
16625
16638
  */
16626
16639
  buildTargets: string[];
16627
16640
  /**
16628
16641
  * Disable to skip checking for missing dependencies
16629
16642
  *
16630
- * @default true
16643
+ * @defaultValue true
16631
16644
  */
16632
16645
  checkMissingDependencies: boolean;
16633
16646
  /**
16634
16647
  * Disable to skip checking for unused dependencies
16635
16648
  *
16636
- * @default true
16649
+ * @defaultValue true
16637
16650
  */
16638
16651
  checkObsoleteDependencies: boolean;
16639
16652
  /**
16640
16653
  * Disable to skip checking if version specifier matches installed version
16641
16654
  *
16642
- * @default true
16655
+ * @defaultValue true
16643
16656
  */
16644
16657
  checkVersionMismatches: boolean;
16645
16658
  /**
16646
16659
  * List of dependencies to ignore for checks
16647
16660
  *
16648
- * @default []
16661
+ * @defaultValue []
16649
16662
  */
16650
16663
  ignoredDependencies: string[];
16651
16664
  /**
16652
16665
  * List of files to ignore when collecting dependencies. The default value will be set based on the selected executor during the generation.
16653
16666
  *
16654
- * @default []
16667
+ * @defaultValue []
16655
16668
  */
16656
16669
  ignoredFiles: string[];
16657
16670
  /**
16658
16671
  * Enable to collect dependencies of children projects
16659
16672
  *
16660
- * @default false
16673
+ * @defaultValue false
16661
16674
  */
16662
16675
  includeTransitiveDependencies: boolean;
16663
16676
  /**
16664
16677
  * Set workspace dependencies as relative file:// paths. Useful for monorepos that link via file:// in package.json files.
16665
16678
  *
16666
- * @default false
16679
+ * @defaultValue false
16667
16680
  */
16668
16681
  useLocalPathsForWorkspaceDependencies: boolean;
16669
16682
  }
@@ -16671,55 +16684,55 @@ interface OptionsNxEnforceModuleBoundaries extends OptionsOverrides {
16671
16684
  /**
16672
16685
  * List of imports that should be allowed without any checks
16673
16686
  *
16674
- * @default []
16687
+ * @defaultValue []
16675
16688
  */
16676
16689
  allow: string[];
16677
16690
  /**
16678
16691
  * List of build target names
16679
16692
  *
16680
- * @default ['build-base', 'build']
16693
+ * @defaultValue ['build-base', 'build']
16681
16694
  */
16682
16695
  buildTargets: string[];
16683
16696
  /**
16684
16697
  * List of dependency constraints between projects
16685
16698
  *
16686
- * @default true
16699
+ * @defaultValue true
16687
16700
  */
16688
16701
  depConstraints: DepConstraint[];
16689
16702
  /**
16690
16703
  * Enable to restrict the buildable libs from importing non-buildable libraries
16691
16704
  *
16692
- * @default true
16705
+ * @defaultValue true
16693
16706
  */
16694
16707
  enforceBuildableLibDependency: boolean;
16695
16708
  /**
16696
16709
  * Disable check for self circular dependency when project imports from itself via alias path
16697
16710
  *
16698
- * @default false
16711
+ * @defaultValue false
16699
16712
  */
16700
16713
  allowCircularSelfDependency: boolean;
16701
16714
  /**
16702
16715
  * List of project pairs that should be skipped from Circular dependencies checks, including the self-circular dependency check. E.g. ['feature-project-a', 'myapp']. Project name can be replaced by catch all * for more generic matches.
16703
16716
  *
16704
- * @default []
16717
+ * @defaultValue []
16705
16718
  */
16706
16719
  ignoredCircularDependencies: Array<[string, string]>;
16707
16720
  /**
16708
16721
  * List of imports that should be skipped for Imports of lazy-loaded libraries forbidden checks. E.g. ['@myorg/lazy-project/component/*', '@myorg/other-project']
16709
16722
  *
16710
- * @default []
16723
+ * @defaultValue []
16711
16724
  */
16712
16725
  checkDynamicDependenciesExceptions: string[];
16713
16726
  /**
16714
16727
  * Ban import of dependencies that were not specified in the root or project's package.json
16715
16728
  *
16716
- * @default false
16729
+ * @defaultValue false
16717
16730
  */
16718
16731
  banTransitiveDependencies: boolean;
16719
16732
  /**
16720
16733
  * Enable to enforce the check for banned external imports in the nested packages. Check [Dependency constraints](https://nx.dev/nx-api/eslint-plugin/documents/enforce-module-boundaries#dependency-constraints) for more information
16721
16734
  *
16722
- * @default false
16735
+ * @defaultValue false
16723
16736
  */
16724
16737
  checkNestedExternalImports: boolean;
16725
16738
  }
@@ -16741,14 +16754,12 @@ interface OptionsNx extends OptionsOverrides {
16741
16754
  *
16742
16755
  * @remarks
16743
16756
  * If any values are overridden here, the `ignoredDependencies`, `ignoredFiles`, and `checkObsoleteDependencies` options will be ignored.
16744
- *
16745
- * @defaultValue `false`
16746
16757
  */
16747
16758
  depsCheck?: OptionsNxDependencyChecks | false;
16748
16759
  /**
16749
16760
  * The severity of the `@nx/dependency-checks` rule
16750
16761
  *
16751
- * @defaultValue "error"
16762
+ * @defaultValue "warn"
16752
16763
  */
16753
16764
  depsCheckSeverity?: "off" | "warn" | "error";
16754
16765
  /**
@@ -16760,7 +16771,7 @@ interface OptionsCSpell extends OptionsOverrides {
16760
16771
  /**
16761
16772
  * A path to a CSpell configuration file
16762
16773
  *
16763
- * @default "./.vscode/cspell.json"
16774
+ * @defaultValue "./.vscode/cspell.json"
16764
16775
  */
16765
16776
  configFile?: string;
16766
16777
  }
@@ -16772,7 +16783,7 @@ interface OptionsJavascript {
16772
16783
  /**
16773
16784
  * The name of the repository used in adding the banner comments
16774
16785
  */
16775
- name: string;
16786
+ repositoryName?: string;
16776
16787
  /**
16777
16788
  * An object containing a list of extra global variables to include in the configuration.
16778
16789
  */
@@ -16780,7 +16791,7 @@ interface OptionsJavascript {
16780
16791
  /**
16781
16792
  * The style of line endings to use.
16782
16793
  *
16783
- * @default "unix"
16794
+ * @defaultValue "unix"
16784
16795
  */
16785
16796
  lineEndings?: "unix" | "windows";
16786
16797
  }
@@ -16791,13 +16802,13 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16791
16802
  * Passing an object to configure the options.
16792
16803
  *
16793
16804
  * @see https://github.com/antfu/eslint-config-flat-gitignore
16794
- * @default true
16805
+ * @defaultValue true
16795
16806
  */
16796
16807
  gitignore?: boolean | FlatGitignoreOptions;
16797
16808
  /**
16798
16809
  * Disable some opinionated rules to Anthony's preference.
16799
16810
  *
16800
- * @default false
16811
+ * @defaultValue false
16801
16812
  */
16802
16813
  lessOpinionated?: boolean;
16803
16814
  /**
@@ -16810,7 +16821,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16810
16821
  * Requires installing:
16811
16822
  * - `@cspell/eslint-plugin`
16812
16823
  *
16813
- * @default true
16824
+ * @defaultValue true
16814
16825
  */
16815
16826
  cspell?: boolean | OptionsCSpell;
16816
16827
  /**
@@ -16818,7 +16829,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16818
16829
  *
16819
16830
  * Passing an object to enable TypeScript Language Server support.
16820
16831
  *
16821
- * @default auto-detect based on the dependencies
16832
+ * @defaultValue auto-detect based on the dependencies
16822
16833
  */
16823
16834
  typescript?: boolean | OptionsTypescript;
16824
16835
  /**
@@ -16830,37 +16841,37 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16830
16841
  *
16831
16842
  * Currently only stylistic rules are included.
16832
16843
  *
16833
- * @default true
16844
+ * @defaultValue true
16834
16845
  */
16835
16846
  jsx?: boolean;
16836
16847
  /**
16837
16848
  * Options for eslint-plugin-unicorn.
16838
16849
  *
16839
- * @default true
16850
+ * @defaultValue true
16840
16851
  */
16841
16852
  unicorn?: boolean | OptionsUnicorn;
16842
16853
  /**
16843
16854
  * Enable test support.
16844
16855
  *
16845
- * @default true
16856
+ * @defaultValue true
16846
16857
  */
16847
16858
  test?: boolean | OptionsOverrides;
16848
16859
  /**
16849
16860
  * Enable JSONC support.
16850
16861
  *
16851
- * @default true
16862
+ * @defaultValue true
16852
16863
  */
16853
16864
  jsonc?: boolean | OptionsOverrides;
16854
16865
  /**
16855
16866
  * Enable YAML support.
16856
16867
  *
16857
- * @default true
16868
+ * @defaultValue true
16858
16869
  */
16859
16870
  yaml?: boolean | OptionsOverrides;
16860
16871
  /**
16861
16872
  * Enable TOML support.
16862
16873
  *
16863
- * @default true
16874
+ * @defaultValue true
16864
16875
  */
16865
16876
  toml?: boolean | OptionsOverrides;
16866
16877
  /**
@@ -16872,7 +16883,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16872
16883
  * Requires installing for formatting .astro:
16873
16884
  * - `prettier-plugin-astro`
16874
16885
  *
16875
- * @default false
16886
+ * @defaultValue false
16876
16887
  */
16877
16888
  astro?: boolean | OptionsOverrides;
16878
16889
  /**
@@ -16880,13 +16891,13 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16880
16891
  *
16881
16892
  * For formatting Markdown content, enable also `formatters.markdown`.
16882
16893
  *
16883
- * @default true
16894
+ * @defaultValue true
16884
16895
  */
16885
16896
  markdown?: boolean | OptionsOverrides;
16886
16897
  /**
16887
16898
  * Enable linting for mdx files.
16888
16899
  *
16889
- * @default true
16900
+ * @defaultValue true
16890
16901
  */
16891
16902
  mdx?: boolean | OptionsOverrides;
16892
16903
  /**
@@ -16894,26 +16905,26 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16894
16905
  *
16895
16906
  * @see https://eslint.style/
16896
16907
  *
16897
- * @default false
16908
+ * @defaultValue false
16898
16909
  */
16899
16910
  stylistic?: boolean | (StylisticConfig & OptionsOverrides);
16900
16911
  /**
16901
16912
  * Enable regexp rules.
16902
16913
  *
16903
16914
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/
16904
- * @default true
16915
+ * @defaultValue true
16905
16916
  */
16906
16917
  regexp?: boolean | (OptionsRegExp & OptionsOverrides);
16907
16918
  /**
16908
16919
  * Enable GraphQL support.
16909
16920
  *
16910
- * @default false
16921
+ * @defaultValue false
16911
16922
  */
16912
16923
  graphql?: boolean | OptionsGraphQL;
16913
16924
  /**
16914
16925
  * Enable Storybook support.
16915
16926
  *
16916
- * @default false
16927
+ * @defaultValue false
16917
16928
  */
16918
16929
  storybook?: boolean | OptionsStorybook;
16919
16930
  /**
@@ -16924,7 +16935,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16924
16935
  * - `eslint-plugin-react-hooks`
16925
16936
  * - `eslint-plugin-react-refresh`
16926
16937
  *
16927
- * @default false
16938
+ * @defaultValue false
16928
16939
  */
16929
16940
  react?: boolean | OptionsOverrides;
16930
16941
  /**
@@ -16933,7 +16944,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16933
16944
  * Requires installing:
16934
16945
  * - `eslint-plugin-react-native`
16935
16946
  *
16936
- * @default false
16947
+ * @defaultValue false
16937
16948
  */
16938
16949
  "react-native"?: boolean | OptionsOverrides;
16939
16950
  /**
@@ -16942,7 +16953,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16942
16953
  * Requires installing:
16943
16954
  * - `@next/eslint-plugin-next`
16944
16955
  *
16945
- * @default false
16956
+ * @defaultValue false
16946
16957
  */
16947
16958
  next?: boolean | OptionsNext;
16948
16959
  /**
@@ -16951,7 +16962,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16951
16962
  * Requires installing:
16952
16963
  * - `@unocss/eslint-plugin`
16953
16964
  *
16954
- * @default false
16965
+ * @defaultValue false
16955
16966
  */
16956
16967
  unocss?: boolean | OptionsUnoCSS;
16957
16968
  /**
@@ -16962,18 +16973,18 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
16962
16973
  *
16963
16974
  * When set to `true`, it will enable all formatters.
16964
16975
  *
16965
- * @default false
16976
+ * @defaultValue false
16966
16977
  */
16967
16978
  formatters?: boolean | OptionsFormatters;
16968
16979
  /**
16969
16980
  * Control to disable some rules in editors.
16970
- * @default auto-detect based on the process.env
16981
+ * @defaultValue auto-detect based on the process.env
16971
16982
  */
16972
16983
  isInEditor?: boolean;
16973
16984
  /**
16974
16985
  * Automatically rename plugins in the config.
16975
16986
  *
16976
- * @default true
16987
+ * @defaultValue true
16977
16988
  */
16978
16989
  autoRenamePlugins?: boolean;
16979
16990
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  banner_plugin_default
3
- } from "../chunk-BXVDD33Y.js";
4
- import "../chunk-KDHZD7SF.js";
3
+ } from "../chunk-VMGPCABA.js";
4
+ import "../chunk-ZUIV57VZ.js";
5
5
  import "../chunk-AIKLBIPC.js";
6
6
  import "../chunk-SHUYVCID.js";
7
7
  export {
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Get a banner header to display at the top of a file
3
3
  *
4
- * @param name - The name to use in the display
4
+ * @param repositoryName - The name to use in the display
5
5
  * @returns The banner header
6
6
  */
7
- declare const getFileBanner: (name?: string) => string;
7
+ declare const getFileBanner: (repositoryName?: string) => string;
8
8
 
9
9
  export { getFileBanner };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileBanner
3
- } from "../chunk-KDHZD7SF.js";
3
+ } from "../chunk-ZUIV57VZ.js";
4
4
  import "../chunk-AIKLBIPC.js";
5
5
  import "../chunk-SHUYVCID.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.137.4",
3
+ "version": "0.138.1",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {