@storm-software/eslint 0.113.3 → 0.113.4

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.113.2-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.113.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/preset.cjs CHANGED
@@ -1,11 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
4
-
5
-
6
- var _chunkLUH5W2Z6cjs = require('./chunk-LUH5W2Z6.cjs');
7
-
8
-
9
3
  var _chunkR5BQJYBXcjs = require('./chunk-R5BQJYBX.cjs');
10
4
 
11
5
 
@@ -16,11 +10,17 @@ var _chunkLFHG33FOcjs = require('./chunk-LFHG33FO.cjs');
16
10
  require('./chunk-HMBBDY5L.cjs');
17
11
 
18
12
 
13
+ var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
14
+
15
+
19
16
 
20
17
 
21
18
  var _chunkESFBJFNUcjs = require('./chunk-ESFBJFNU.cjs');
22
19
 
23
20
 
21
+ var _chunkLUH5W2Z6cjs = require('./chunk-LUH5W2Z6.cjs');
22
+
23
+
24
24
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
25
25
 
26
26
  // src/preset.ts
@@ -595,7 +595,6 @@ function getStormConfig(options = {
595
595
  ignoredDependencies: [
596
596
  "typescript"
597
597
  ],
598
- ignores: ignoredFiles,
599
598
  checkMissingDependencies: true,
600
599
  checkObsoleteDependencies: true,
601
600
  checkVersionMismatches: false,
@@ -612,7 +611,6 @@ function getStormConfig(options = {
612
611
  // CSpell
613
612
  {
614
613
  ..._recommended2.default,
615
- ignores: ignoredFiles,
616
614
  rules: {
617
615
  ..._recommended2.default.rules,
618
616
  "@cspell/spellchecker": [
@@ -631,8 +629,7 @@ function getStormConfig(options = {
631
629
  configs.push({
632
630
  plugins: {
633
631
  "@nx": _nxjs2.default
634
- },
635
- ignores: ignoredFiles
632
+ }
636
633
  });
637
634
  }
638
635
  configs.push(_js2.default.configs.recommended);
@@ -653,7 +650,6 @@ function getStormConfig(options = {
653
650
  plugins: {
654
651
  unicorn: _eslintpluginunicorn2.default
655
652
  },
656
- ignores: ignoredFiles,
657
653
  rules: {
658
654
  ..._eslintpluginunicorn2.default.configs["flat/recommended"].rules
659
655
  }
@@ -666,7 +662,6 @@ function getStormConfig(options = {
666
662
  plugins: {
667
663
  tsdoc: _eslintplugintsdoc2.default
668
664
  },
669
- ignores: ignoredFiles,
670
665
  rules: _chunkJS7W7LMDcjs.ts_docs_default
671
666
  });
672
667
  configs.push({
@@ -675,7 +670,6 @@ function getStormConfig(options = {
675
670
  plugins: {
676
671
  banner: _chunkLFHG33FOcjs.banner_plugin_default
677
672
  },
678
- ignores: ignoredFiles,
679
673
  files: [
680
674
  _chunkESFBJFNUcjs.CODE_FILE
681
675
  ],
@@ -700,7 +694,6 @@ function getStormConfig(options = {
700
694
  files: [
701
695
  "**/*.tsx"
702
696
  ],
703
- ignores: ignoredFiles,
704
697
  ...react
705
698
  },
706
699
  {
@@ -710,8 +703,7 @@ function getStormConfig(options = {
710
703
  },
711
704
  files: [
712
705
  _chunkESFBJFNUcjs.TS_FILE
713
- ],
714
- ignores: ignoredFiles
706
+ ]
715
707
  }
716
708
  ];
717
709
  if (useReactCompiler) {
@@ -719,7 +711,6 @@ function getStormConfig(options = {
719
711
  files: [
720
712
  "**/*.tsx"
721
713
  ],
722
- ignores: ignoredFiles,
723
714
  plugins: {
724
715
  "react-compiler": _eslintpluginreactcompiler2.default
725
716
  },
@@ -733,7 +724,6 @@ function getStormConfig(options = {
733
724
  if (options.nextFiles && options.nextFiles.length > 0) {
734
725
  configs.push({
735
726
  ..._eslintpluginnext2.default.configs["core-web-vitals"],
736
- ignores: ignoredFiles,
737
727
  files: options.nextFiles
738
728
  });
739
729
  }
@@ -770,8 +760,7 @@ function getStormConfig(options = {
770
760
  ret[ruleId] = options.rules[ruleId];
771
761
  return ret;
772
762
  }, {})
773
- },
774
- ignores: ignoredFiles
763
+ }
775
764
  };
776
765
  if (parserOptions) {
777
766
  typescriptConfig.languageOptions ??= {};
@@ -789,7 +778,6 @@ function getStormConfig(options = {
789
778
  files: [
790
779
  _chunkESFBJFNUcjs.CODE_BLOCK
791
780
  ],
792
- ignores: ignoredFiles,
793
781
  processor: "markdown/markdown",
794
782
  rules: {
795
783
  "unicorn/filename-case": "off",
@@ -807,7 +795,6 @@ function getStormConfig(options = {
807
795
  "**/*.md/*.js",
808
796
  "**/*.md/*.ts"
809
797
  ],
810
- ignores: ignoredFiles,
811
798
  rules: {
812
799
  "unicorn/filename-case": "off",
813
800
  "no-undef": "off",
@@ -829,7 +816,6 @@ function getStormConfig(options = {
829
816
  });
830
817
  const result = _chunkGMT3V67Ncjs.formatConfig.call(void 0, "Preset", configs.reduce((ret, config) => {
831
818
  delete config.parserOptions;
832
- config.ignores ??= ignoredFiles;
833
819
  const existingIndex = ret.findIndex((existing) => areFilesEqual(existing.files, config.files));
834
820
  if (existingIndex >= 0) {
835
821
  ret[existingIndex] = _defu.defu.call(void 0, ret[existingIndex], config);
@@ -838,6 +824,9 @@ function getStormConfig(options = {
838
824
  }
839
825
  return ret;
840
826
  }, []));
827
+ result.unshift({
828
+ ignores: ignoredFiles
829
+ });
841
830
  writeInfo("\u2699\uFE0F Completed generated Storm ESLint configuration objects", {
842
831
  logLevel
843
832
  });
package/dist/preset.js CHANGED
@@ -1,9 +1,3 @@
1
- import {
2
- formatConfig
3
- } from "./chunk-FTXILLLE.js";
4
- import {
5
- DEFAULT_IGNORES
6
- } from "./chunk-JUT6UB4M.js";
7
1
  import {
8
2
  getStormRulesConfig
9
3
  } from "./chunk-XMT3QM5B.js";
@@ -14,11 +8,17 @@ import {
14
8
  banner_plugin_default
15
9
  } from "./chunk-LSG5T3ZK.js";
16
10
  import "./chunk-Y67QTC5U.js";
11
+ import {
12
+ formatConfig
13
+ } from "./chunk-FTXILLLE.js";
17
14
  import {
18
15
  CODE_BLOCK,
19
16
  CODE_FILE,
20
17
  TS_FILE
21
18
  } from "./chunk-RTM5LCEB.js";
19
+ import {
20
+ DEFAULT_IGNORES
21
+ } from "./chunk-JUT6UB4M.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-SHUYVCID.js";
@@ -595,7 +595,6 @@ function getStormConfig(options = {
595
595
  ignoredDependencies: [
596
596
  "typescript"
597
597
  ],
598
- ignores: ignoredFiles,
599
598
  checkMissingDependencies: true,
600
599
  checkObsoleteDependencies: true,
601
600
  checkVersionMismatches: false,
@@ -612,7 +611,6 @@ function getStormConfig(options = {
612
611
  // CSpell
613
612
  {
614
613
  ...cspell,
615
- ignores: ignoredFiles,
616
614
  rules: {
617
615
  ...cspell.rules,
618
616
  "@cspell/spellchecker": [
@@ -631,8 +629,7 @@ function getStormConfig(options = {
631
629
  configs.push({
632
630
  plugins: {
633
631
  "@nx": nxPlugin
634
- },
635
- ignores: ignoredFiles
632
+ }
636
633
  });
637
634
  }
638
635
  configs.push(eslint.configs.recommended);
@@ -653,7 +650,6 @@ function getStormConfig(options = {
653
650
  plugins: {
654
651
  unicorn
655
652
  },
656
- ignores: ignoredFiles,
657
653
  rules: {
658
654
  ...unicorn.configs["flat/recommended"].rules
659
655
  }
@@ -666,7 +662,6 @@ function getStormConfig(options = {
666
662
  plugins: {
667
663
  tsdoc
668
664
  },
669
- ignores: ignoredFiles,
670
665
  rules: ts_docs_default
671
666
  });
672
667
  configs.push({
@@ -675,7 +670,6 @@ function getStormConfig(options = {
675
670
  plugins: {
676
671
  banner: banner_plugin_default
677
672
  },
678
- ignores: ignoredFiles,
679
673
  files: [
680
674
  CODE_FILE
681
675
  ],
@@ -700,7 +694,6 @@ function getStormConfig(options = {
700
694
  files: [
701
695
  "**/*.tsx"
702
696
  ],
703
- ignores: ignoredFiles,
704
697
  ...react
705
698
  },
706
699
  {
@@ -710,8 +703,7 @@ function getStormConfig(options = {
710
703
  },
711
704
  files: [
712
705
  TS_FILE
713
- ],
714
- ignores: ignoredFiles
706
+ ]
715
707
  }
716
708
  ];
717
709
  if (useReactCompiler) {
@@ -719,7 +711,6 @@ function getStormConfig(options = {
719
711
  files: [
720
712
  "**/*.tsx"
721
713
  ],
722
- ignores: ignoredFiles,
723
714
  plugins: {
724
715
  "react-compiler": reactCompiler
725
716
  },
@@ -733,7 +724,6 @@ function getStormConfig(options = {
733
724
  if (options.nextFiles && options.nextFiles.length > 0) {
734
725
  configs.push({
735
726
  ...next.configs["core-web-vitals"],
736
- ignores: ignoredFiles,
737
727
  files: options.nextFiles
738
728
  });
739
729
  }
@@ -770,8 +760,7 @@ function getStormConfig(options = {
770
760
  ret[ruleId] = options.rules[ruleId];
771
761
  return ret;
772
762
  }, {})
773
- },
774
- ignores: ignoredFiles
763
+ }
775
764
  };
776
765
  if (parserOptions) {
777
766
  typescriptConfig.languageOptions ??= {};
@@ -789,7 +778,6 @@ function getStormConfig(options = {
789
778
  files: [
790
779
  CODE_BLOCK
791
780
  ],
792
- ignores: ignoredFiles,
793
781
  processor: "markdown/markdown",
794
782
  rules: {
795
783
  "unicorn/filename-case": "off",
@@ -807,7 +795,6 @@ function getStormConfig(options = {
807
795
  "**/*.md/*.js",
808
796
  "**/*.md/*.ts"
809
797
  ],
810
- ignores: ignoredFiles,
811
798
  rules: {
812
799
  "unicorn/filename-case": "off",
813
800
  "no-undef": "off",
@@ -829,7 +816,6 @@ function getStormConfig(options = {
829
816
  });
830
817
  const result = formatConfig("Preset", configs.reduce((ret, config) => {
831
818
  delete config.parserOptions;
832
- config.ignores ??= ignoredFiles;
833
819
  const existingIndex = ret.findIndex((existing) => areFilesEqual(existing.files, config.files));
834
820
  if (existingIndex >= 0) {
835
821
  ret[existingIndex] = defu(ret[existingIndex], config);
@@ -838,6 +824,9 @@ function getStormConfig(options = {
838
824
  }
839
825
  return ret;
840
826
  }, []));
827
+ result.unshift({
828
+ ignores: ignoredFiles
829
+ });
841
830
  writeInfo("\u2699\uFE0F Completed generated Storm ESLint configuration objects", {
842
831
  logLevel
843
832
  });
@@ -1,5 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
2
 
3
- declare const formatConfig: (name: string, config?: Linter.FlatConfig[]) => Linter.FlatConfig[];
3
+ declare const formatConfig: (name: string, config?: Linter.Config[]) => Linter.Config[];
4
4
 
5
5
  export { formatConfig };
@@ -1,5 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
2
 
3
- declare const formatConfig: (name: string, config?: Linter.FlatConfig[]) => Linter.FlatConfig[];
3
+ declare const formatConfig: (name: string, config?: Linter.Config[]) => Linter.Config[];
4
4
 
5
5
  export { formatConfig };
@@ -3,7 +3,6 @@
3
3
  var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
4
4
 
5
5
 
6
- var _chunkLUH5W2Z6cjs = require('../chunk-LUH5W2Z6.cjs');
7
6
 
8
7
 
9
8
 
@@ -13,9 +12,10 @@ var _chunkLUH5W2Z6cjs = require('../chunk-LUH5W2Z6.cjs');
13
12
 
14
13
 
15
14
 
15
+ var _chunkESFBJFNUcjs = require('../chunk-ESFBJFNU.cjs');
16
16
 
17
17
 
18
- var _chunkESFBJFNUcjs = require('../chunk-ESFBJFNU.cjs');
18
+ var _chunkLUH5W2Z6cjs = require('../chunk-LUH5W2Z6.cjs');
19
19
  require('../chunk-USNT2KNT.cjs');
20
20
 
21
21
 
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  formatConfig
3
3
  } from "../chunk-FTXILLLE.js";
4
- import {
5
- DEFAULT_IGNORES
6
- } from "../chunk-JUT6UB4M.js";
7
4
  import {
8
5
  ACRONYMS_LIST,
9
6
  CODE_BLOCK,
@@ -16,6 +13,9 @@ import {
16
13
  RESTRICTED_SYNTAX,
17
14
  TS_FILE
18
15
  } from "../chunk-RTM5LCEB.js";
16
+ import {
17
+ DEFAULT_IGNORES
18
+ } from "../chunk-JUT6UB4M.js";
19
19
  import "../chunk-SHUYVCID.js";
20
20
  export {
21
21
  ACRONYMS_LIST,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.113.3",
3
+ "version": "0.113.4",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {