@storm-software/eslint 0.113.3 → 0.113.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 +1 -1
- package/dist/preset.cjs +6 -17
- package/dist/preset.js +6 -17
- package/dist/utils/format-config.d.cts +1 -1
- package/dist/utils/format-config.d.ts +1 -1
- package/package.json +1 -1
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/dist/preset.cjs
CHANGED
|
@@ -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
|
@@ -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
|
});
|
package/package.json
CHANGED