@storm-software/eslint 0.111.3 → 0.111.5

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.111.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.111.4-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,5 +1,5 @@
1
1
  // src/utils/ignores.ts
2
- var ignores = [
2
+ var DEFAULT_IGNORES = [
3
3
  "**/.git/**",
4
4
  "**/node_modules/**",
5
5
  "**/src/generators/**/files/**/*",
@@ -33,5 +33,5 @@ var ignores = [
33
33
  ];
34
34
 
35
35
  export {
36
- ignores
36
+ DEFAULT_IGNORES
37
37
  };
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/utils/ignores.ts
2
- var ignores = [
2
+ var DEFAULT_IGNORES = [
3
3
  "**/.git/**",
4
4
  "**/node_modules/**",
5
5
  "**/src/generators/**/files/**/*",
@@ -34,4 +34,4 @@ var ignores = [
34
34
 
35
35
 
36
36
 
37
- exports.ignores = ignores;
37
+ exports.DEFAULT_IGNORES = DEFAULT_IGNORES;
package/dist/preset.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
4
4
 
5
5
 
6
- var _chunkYQQ366F7cjs = require('./chunk-YQQ366F7.cjs');
6
+ var _chunkLUH5W2Z6cjs = require('./chunk-LUH5W2Z6.cjs');
7
7
 
8
8
 
9
9
  var _chunkR5BQJYBXcjs = require('./chunk-R5BQJYBX.cjs');
@@ -416,49 +416,56 @@ var getLogLevel = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label)
416
416
  var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
417
417
  const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
418
418
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
419
- if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
419
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
420
420
  return (_) => {
421
421
  };
422
422
  }
423
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
423
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
424
424
  return (message) => {
425
425
  console.error(`
426
426
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
427
427
  `);
428
428
  };
429
429
  }
430
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
430
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
431
431
  return (message) => {
432
432
  console.error(`
433
433
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
434
434
  `);
435
435
  };
436
436
  }
437
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
437
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
438
438
  return (message) => {
439
439
  console.warn(`
440
440
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
441
441
  `);
442
442
  };
443
443
  }
444
- if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
444
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
445
445
  return (message) => {
446
446
  console.info(`
447
447
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
448
448
  `);
449
449
  };
450
450
  }
451
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
451
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
452
452
  return (message) => {
453
453
  console.info(`
454
454
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
455
455
  `);
456
456
  };
457
457
  }
458
- if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
458
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
459
459
  return (message) => {
460
460
  console.debug(`
461
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
461
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
462
+ `);
463
+ };
464
+ }
465
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
466
+ return (message) => {
467
+ console.debug(`
468
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
462
469
  `);
463
470
  };
464
471
  }
@@ -534,6 +541,10 @@ function getStormConfig(options = {
534
541
  const globals = _nullishCoalesce(options.globals, () => ( {}));
535
542
  const cspellConfigFile = options.cspellConfigFile || "./.vscode/cspell.json";
536
543
  try {
544
+ const ignoredFiles = [
545
+ ..._chunkLUH5W2Z6cjs.DEFAULT_IGNORES,
546
+ ...options.ignores || []
547
+ ].filter(Boolean);
537
548
  const configs = [
538
549
  // Prettier
539
550
  _recommended4.default,
@@ -584,7 +595,7 @@ function getStormConfig(options = {
584
595
  ignoredDependencies: [
585
596
  "typescript"
586
597
  ],
587
- ignoredFiles: options.ignores,
598
+ ignores: ignoredFiles,
588
599
  checkMissingDependencies: true,
589
600
  checkObsoleteDependencies: true,
590
601
  checkVersionMismatches: false,
@@ -601,6 +612,7 @@ function getStormConfig(options = {
601
612
  // CSpell
602
613
  {
603
614
  ..._recommended2.default,
615
+ ignores: ignoredFiles,
604
616
  rules: {
605
617
  ..._recommended2.default.rules,
606
618
  "@cspell/spellchecker": [
@@ -619,7 +631,8 @@ function getStormConfig(options = {
619
631
  configs.push({
620
632
  plugins: {
621
633
  "@nx": _nxjs2.default
622
- }
634
+ },
635
+ ignores: ignoredFiles
623
636
  });
624
637
  }
625
638
  configs.push(_js2.default.configs.recommended);
@@ -640,6 +653,7 @@ function getStormConfig(options = {
640
653
  plugins: {
641
654
  unicorn: _eslintpluginunicorn2.default
642
655
  },
656
+ ignores: ignoredFiles,
643
657
  rules: {
644
658
  ..._eslintpluginunicorn2.default.configs["flat/recommended"].rules
645
659
  }
@@ -652,6 +666,7 @@ function getStormConfig(options = {
652
666
  plugins: {
653
667
  tsdoc: _eslintplugintsdoc2.default
654
668
  },
669
+ ignores: ignoredFiles,
655
670
  rules: _chunkJS7W7LMDcjs.ts_docs_default
656
671
  });
657
672
  configs.push({
@@ -660,6 +675,7 @@ function getStormConfig(options = {
660
675
  plugins: {
661
676
  banner: _chunkLFHG33FOcjs.banner_plugin_default
662
677
  },
678
+ ignores: ignoredFiles,
663
679
  files: [
664
680
  _chunkESFBJFNUcjs.CODE_FILE
665
681
  ],
@@ -684,10 +700,7 @@ function getStormConfig(options = {
684
700
  files: [
685
701
  "**/*.tsx"
686
702
  ],
687
- ignores: [
688
- ..._chunkYQQ366F7cjs.ignores,
689
- ...options.ignores || []
690
- ],
703
+ ignores: ignoredFiles,
691
704
  ...react
692
705
  },
693
706
  {
@@ -698,10 +711,7 @@ function getStormConfig(options = {
698
711
  files: [
699
712
  _chunkESFBJFNUcjs.TS_FILE
700
713
  ],
701
- ignores: [
702
- ..._chunkYQQ366F7cjs.ignores,
703
- ...options.ignores || []
704
- ]
714
+ ignores: ignoredFiles
705
715
  }
706
716
  ];
707
717
  if (useReactCompiler) {
@@ -709,10 +719,7 @@ function getStormConfig(options = {
709
719
  files: [
710
720
  "**/*.tsx"
711
721
  ],
712
- ignores: [
713
- ..._chunkYQQ366F7cjs.ignores,
714
- ...options.ignores || []
715
- ],
722
+ ignores: ignoredFiles,
716
723
  plugins: {
717
724
  "react-compiler": _eslintpluginreactcompiler2.default
718
725
  },
@@ -726,9 +733,7 @@ function getStormConfig(options = {
726
733
  if (options.nextFiles && options.nextFiles.length > 0) {
727
734
  configs.push({
728
735
  ..._eslintpluginnext2.default.configs["core-web-vitals"],
729
- ignores: [
730
- ...options.ignores || []
731
- ],
736
+ ignores: ignoredFiles,
732
737
  files: options.nextFiles
733
738
  });
734
739
  }
@@ -766,10 +771,7 @@ function getStormConfig(options = {
766
771
  return ret;
767
772
  }, {})
768
773
  },
769
- ignores: [
770
- ..._chunkYQQ366F7cjs.ignores,
771
- ...options.ignores || []
772
- ]
774
+ ignores: ignoredFiles
773
775
  };
774
776
  if (parserOptions) {
775
777
  typescriptConfig.languageOptions ??= {};
@@ -787,6 +789,7 @@ function getStormConfig(options = {
787
789
  files: [
788
790
  _chunkESFBJFNUcjs.CODE_BLOCK
789
791
  ],
792
+ ignores: ignoredFiles,
790
793
  processor: "markdown/markdown",
791
794
  rules: {
792
795
  "unicorn/filename-case": "off",
@@ -804,6 +807,7 @@ function getStormConfig(options = {
804
807
  "**/*.md/*.js",
805
808
  "**/*.md/*.ts"
806
809
  ],
810
+ ignores: ignoredFiles,
807
811
  rules: {
808
812
  "unicorn/filename-case": "off",
809
813
  "no-undef": "off",
@@ -825,6 +829,7 @@ function getStormConfig(options = {
825
829
  });
826
830
  const result = _chunkGMT3V67Ncjs.formatConfig.call(void 0, "Preset", configs.reduce((ret, config) => {
827
831
  delete config.parserOptions;
832
+ config.ignores ??= ignoredFiles;
828
833
  const existingIndex = ret.findIndex((existing) => areFilesEqual(existing.files, config.files));
829
834
  if (existingIndex >= 0) {
830
835
  ret[existingIndex] = _defu.defu.call(void 0, ret[existingIndex], config);
package/dist/preset.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  formatConfig
3
3
  } from "./chunk-FTXILLLE.js";
4
4
  import {
5
- ignores
6
- } from "./chunk-VJ6CKC4P.js";
5
+ DEFAULT_IGNORES
6
+ } from "./chunk-JUT6UB4M.js";
7
7
  import {
8
8
  getStormRulesConfig
9
9
  } from "./chunk-XMT3QM5B.js";
@@ -416,49 +416,56 @@ var getLogLevel = /* @__PURE__ */ __name((label) => {
416
416
  var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
417
417
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
418
418
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
419
- if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
419
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
420
420
  return (_) => {
421
421
  };
422
422
  }
423
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
423
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
424
424
  return (message) => {
425
425
  console.error(`
426
426
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
427
427
  `);
428
428
  };
429
429
  }
430
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
430
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
431
431
  return (message) => {
432
432
  console.error(`
433
433
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
434
434
  `);
435
435
  };
436
436
  }
437
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
437
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
438
438
  return (message) => {
439
439
  console.warn(`
440
440
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
441
441
  `);
442
442
  };
443
443
  }
444
- if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
444
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
445
445
  return (message) => {
446
446
  console.info(`
447
447
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
448
448
  `);
449
449
  };
450
450
  }
451
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
451
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
452
452
  return (message) => {
453
453
  console.info(`
454
454
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
455
455
  `);
456
456
  };
457
457
  }
458
- if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
458
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
459
459
  return (message) => {
460
460
  console.debug(`
461
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
461
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
462
+ `);
463
+ };
464
+ }
465
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
466
+ return (message) => {
467
+ console.debug(`
468
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
462
469
  `);
463
470
  };
464
471
  }
@@ -534,6 +541,10 @@ function getStormConfig(options = {
534
541
  const globals = options.globals ?? {};
535
542
  const cspellConfigFile = options.cspellConfigFile || "./.vscode/cspell.json";
536
543
  try {
544
+ const ignoredFiles = [
545
+ ...DEFAULT_IGNORES,
546
+ ...options.ignores || []
547
+ ].filter(Boolean);
537
548
  const configs = [
538
549
  // Prettier
539
550
  prettierConfig,
@@ -584,7 +595,7 @@ function getStormConfig(options = {
584
595
  ignoredDependencies: [
585
596
  "typescript"
586
597
  ],
587
- ignoredFiles: options.ignores,
598
+ ignores: ignoredFiles,
588
599
  checkMissingDependencies: true,
589
600
  checkObsoleteDependencies: true,
590
601
  checkVersionMismatches: false,
@@ -601,6 +612,7 @@ function getStormConfig(options = {
601
612
  // CSpell
602
613
  {
603
614
  ...cspell,
615
+ ignores: ignoredFiles,
604
616
  rules: {
605
617
  ...cspell.rules,
606
618
  "@cspell/spellchecker": [
@@ -619,7 +631,8 @@ function getStormConfig(options = {
619
631
  configs.push({
620
632
  plugins: {
621
633
  "@nx": nxPlugin
622
- }
634
+ },
635
+ ignores: ignoredFiles
623
636
  });
624
637
  }
625
638
  configs.push(eslint.configs.recommended);
@@ -640,6 +653,7 @@ function getStormConfig(options = {
640
653
  plugins: {
641
654
  unicorn
642
655
  },
656
+ ignores: ignoredFiles,
643
657
  rules: {
644
658
  ...unicorn.configs["flat/recommended"].rules
645
659
  }
@@ -652,6 +666,7 @@ function getStormConfig(options = {
652
666
  plugins: {
653
667
  tsdoc
654
668
  },
669
+ ignores: ignoredFiles,
655
670
  rules: ts_docs_default
656
671
  });
657
672
  configs.push({
@@ -660,6 +675,7 @@ function getStormConfig(options = {
660
675
  plugins: {
661
676
  banner: banner_plugin_default
662
677
  },
678
+ ignores: ignoredFiles,
663
679
  files: [
664
680
  CODE_FILE
665
681
  ],
@@ -684,10 +700,7 @@ function getStormConfig(options = {
684
700
  files: [
685
701
  "**/*.tsx"
686
702
  ],
687
- ignores: [
688
- ...ignores,
689
- ...options.ignores || []
690
- ],
703
+ ignores: ignoredFiles,
691
704
  ...react
692
705
  },
693
706
  {
@@ -698,10 +711,7 @@ function getStormConfig(options = {
698
711
  files: [
699
712
  TS_FILE
700
713
  ],
701
- ignores: [
702
- ...ignores,
703
- ...options.ignores || []
704
- ]
714
+ ignores: ignoredFiles
705
715
  }
706
716
  ];
707
717
  if (useReactCompiler) {
@@ -709,10 +719,7 @@ function getStormConfig(options = {
709
719
  files: [
710
720
  "**/*.tsx"
711
721
  ],
712
- ignores: [
713
- ...ignores,
714
- ...options.ignores || []
715
- ],
722
+ ignores: ignoredFiles,
716
723
  plugins: {
717
724
  "react-compiler": reactCompiler
718
725
  },
@@ -726,9 +733,7 @@ function getStormConfig(options = {
726
733
  if (options.nextFiles && options.nextFiles.length > 0) {
727
734
  configs.push({
728
735
  ...next.configs["core-web-vitals"],
729
- ignores: [
730
- ...options.ignores || []
731
- ],
736
+ ignores: ignoredFiles,
732
737
  files: options.nextFiles
733
738
  });
734
739
  }
@@ -766,10 +771,7 @@ function getStormConfig(options = {
766
771
  return ret;
767
772
  }, {})
768
773
  },
769
- ignores: [
770
- ...ignores,
771
- ...options.ignores || []
772
- ]
774
+ ignores: ignoredFiles
773
775
  };
774
776
  if (parserOptions) {
775
777
  typescriptConfig.languageOptions ??= {};
@@ -787,6 +789,7 @@ function getStormConfig(options = {
787
789
  files: [
788
790
  CODE_BLOCK
789
791
  ],
792
+ ignores: ignoredFiles,
790
793
  processor: "markdown/markdown",
791
794
  rules: {
792
795
  "unicorn/filename-case": "off",
@@ -804,6 +807,7 @@ function getStormConfig(options = {
804
807
  "**/*.md/*.js",
805
808
  "**/*.md/*.ts"
806
809
  ],
810
+ ignores: ignoredFiles,
807
811
  rules: {
808
812
  "unicorn/filename-case": "off",
809
813
  "no-undef": "off",
@@ -825,6 +829,7 @@ function getStormConfig(options = {
825
829
  });
826
830
  const result = formatConfig("Preset", configs.reduce((ret, config) => {
827
831
  delete config.parserOptions;
832
+ config.ignores ??= ignoredFiles;
828
833
  const existingIndex = ret.findIndex((existing) => areFilesEqual(existing.files, config.files));
829
834
  if (existingIndex >= 0) {
830
835
  ret[existingIndex] = defu(ret[existingIndex], config);
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
3
+ var _chunkLUH5W2Z6cjs = require('../chunk-LUH5W2Z6.cjs');
4
4
  require('../chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.ignores = _chunkYQQ366F7cjs.ignores;
7
+ exports.DEFAULT_IGNORES = _chunkLUH5W2Z6cjs.DEFAULT_IGNORES;
@@ -1,3 +1,3 @@
1
- declare const ignores: string[];
1
+ declare const DEFAULT_IGNORES: string[];
2
2
 
3
- export { ignores };
3
+ export { DEFAULT_IGNORES };
@@ -1,3 +1,3 @@
1
- declare const ignores: string[];
1
+ declare const DEFAULT_IGNORES: string[];
2
2
 
3
- export { ignores };
3
+ export { DEFAULT_IGNORES };
@@ -1,7 +1,7 @@
1
1
  import {
2
- ignores
3
- } from "../chunk-VJ6CKC4P.js";
2
+ DEFAULT_IGNORES
3
+ } from "../chunk-JUT6UB4M.js";
4
4
  import "../chunk-SHUYVCID.js";
5
5
  export {
6
- ignores
6
+ DEFAULT_IGNORES
7
7
  };
@@ -3,7 +3,7 @@
3
3
  var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
4
4
 
5
5
 
6
- var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
6
+ var _chunkLUH5W2Z6cjs = require('../chunk-LUH5W2Z6.cjs');
7
7
 
8
8
 
9
9
 
@@ -30,4 +30,4 @@ require('../chunk-USNT2KNT.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.ACRONYMS_LIST = _chunkESFBJFNUcjs.ACRONYMS_LIST; exports.CODE_BLOCK = _chunkESFBJFNUcjs.CODE_BLOCK; exports.CODE_FILE = _chunkESFBJFNUcjs.CODE_FILE; exports.JS_FILE = _chunkESFBJFNUcjs.JS_FILE; exports.JS_FILES = _chunkESFBJFNUcjs.JS_FILES; exports.REACT_RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.REACT_RESTRICTED_SYNTAX; exports.RESTRICTED_GLOBALS = _chunkESFBJFNUcjs.RESTRICTED_GLOBALS; exports.RESTRICTED_MODULES = _chunkESFBJFNUcjs.RESTRICTED_MODULES; exports.RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.RESTRICTED_SYNTAX; exports.TS_FILE = _chunkESFBJFNUcjs.TS_FILE; exports.formatConfig = _chunkGMT3V67Ncjs.formatConfig; exports.ignores = _chunkYQQ366F7cjs.ignores;
33
+ exports.ACRONYMS_LIST = _chunkESFBJFNUcjs.ACRONYMS_LIST; exports.CODE_BLOCK = _chunkESFBJFNUcjs.CODE_BLOCK; exports.CODE_FILE = _chunkESFBJFNUcjs.CODE_FILE; exports.DEFAULT_IGNORES = _chunkLUH5W2Z6cjs.DEFAULT_IGNORES; exports.JS_FILE = _chunkESFBJFNUcjs.JS_FILE; exports.JS_FILES = _chunkESFBJFNUcjs.JS_FILES; exports.REACT_RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.REACT_RESTRICTED_SYNTAX; exports.RESTRICTED_GLOBALS = _chunkESFBJFNUcjs.RESTRICTED_GLOBALS; exports.RESTRICTED_MODULES = _chunkESFBJFNUcjs.RESTRICTED_MODULES; exports.RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.RESTRICTED_SYNTAX; exports.TS_FILE = _chunkESFBJFNUcjs.TS_FILE; exports.formatConfig = _chunkGMT3V67Ncjs.formatConfig;
@@ -1,4 +1,4 @@
1
1
  export { formatConfig } from './format-config.cjs';
2
- export { ignores } from './ignores.cjs';
2
+ export { DEFAULT_IGNORES } from './ignores.cjs';
3
3
  export { ACRONYMS_LIST, CODE_BLOCK, CODE_FILE, JS_FILE, JS_FILES, REACT_RESTRICTED_SYNTAX, RESTRICTED_GLOBALS, RESTRICTED_MODULES, RESTRICTED_SYNTAX, TS_FILE } from './constants.cjs';
4
4
  import 'eslint';
@@ -1,4 +1,4 @@
1
1
  export { formatConfig } from './format-config.js';
2
- export { ignores } from './ignores.js';
2
+ export { DEFAULT_IGNORES } from './ignores.js';
3
3
  export { ACRONYMS_LIST, CODE_BLOCK, CODE_FILE, JS_FILE, JS_FILES, REACT_RESTRICTED_SYNTAX, RESTRICTED_GLOBALS, RESTRICTED_MODULES, RESTRICTED_SYNTAX, TS_FILE } from './constants.js';
4
4
  import 'eslint';
@@ -2,8 +2,8 @@ import {
2
2
  formatConfig
3
3
  } from "../chunk-FTXILLLE.js";
4
4
  import {
5
- ignores
6
- } from "../chunk-VJ6CKC4P.js";
5
+ DEFAULT_IGNORES
6
+ } from "../chunk-JUT6UB4M.js";
7
7
  import {
8
8
  ACRONYMS_LIST,
9
9
  CODE_BLOCK,
@@ -21,6 +21,7 @@ export {
21
21
  ACRONYMS_LIST,
22
22
  CODE_BLOCK,
23
23
  CODE_FILE,
24
+ DEFAULT_IGNORES,
24
25
  JS_FILE,
25
26
  JS_FILES,
26
27
  REACT_RESTRICTED_SYNTAX,
@@ -28,6 +29,5 @@ export {
28
29
  RESTRICTED_MODULES,
29
30
  RESTRICTED_SYNTAX,
30
31
  TS_FILE,
31
- formatConfig,
32
- ignores
32
+ formatConfig
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.111.3",
3
+ "version": "0.111.5",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {