@storm-software/eslint 0.83.0 → 0.83.2
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.mjs +30 -29
- 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.mjs
CHANGED
|
@@ -12845,29 +12845,24 @@ const plugin = {
|
|
|
12845
12845
|
},
|
|
12846
12846
|
processors: {}
|
|
12847
12847
|
};
|
|
12848
|
-
plugin.configs && (plugin.configs.recommended =
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
"!**/.nx/**/*"
|
|
12865
|
-
],
|
|
12866
|
-
rules: {
|
|
12867
|
-
"banner/banner": ["error", { commentType: "block", numNewlines: 2 }]
|
|
12868
|
-
}
|
|
12848
|
+
plugin.configs && (plugin.configs.recommended = {
|
|
12849
|
+
name: "banner/recommended",
|
|
12850
|
+
plugins: { banner: plugin },
|
|
12851
|
+
files: [
|
|
12852
|
+
CODE_FILE,
|
|
12853
|
+
"!**/docs/**/*",
|
|
12854
|
+
"!**/crates/**/*",
|
|
12855
|
+
"!**/tmp/**/*",
|
|
12856
|
+
"!**/dist/**/*",
|
|
12857
|
+
"!**/coverage/**/*",
|
|
12858
|
+
"!**/node_modules/**/*",
|
|
12859
|
+
"!**/.cache/**/*",
|
|
12860
|
+
"!**/.nx/**/*"
|
|
12861
|
+
],
|
|
12862
|
+
rules: {
|
|
12863
|
+
"banner/banner": ["error", { commentType: "block", numNewlines: 2 }]
|
|
12869
12864
|
}
|
|
12870
|
-
|
|
12865
|
+
});
|
|
12871
12866
|
|
|
12872
12867
|
const formatConfig = (name, config = []) => {
|
|
12873
12868
|
return config.map((config2, index) => {
|
|
@@ -12896,10 +12891,20 @@ function getStormConfig(options = {
|
|
|
12896
12891
|
react: {},
|
|
12897
12892
|
useReactCompiler: false
|
|
12898
12893
|
}, ...userConfigs) {
|
|
12894
|
+
const tsconfig = options.tsconfig ?? "./tsconfig.base.json";
|
|
12899
12895
|
const tsConfigType = options.tsConfigType || "eslint-recommended";
|
|
12900
12896
|
const useUnicorn = options.useUnicorn ?? true;
|
|
12901
12897
|
const react = options.react ?? {};
|
|
12902
12898
|
const useReactCompiler = options.useReactCompiler ?? false;
|
|
12899
|
+
const bannerConfig = {
|
|
12900
|
+
...plugin.configs["recommended"],
|
|
12901
|
+
rules: {
|
|
12902
|
+
"banner/banner": [
|
|
12903
|
+
"error",
|
|
12904
|
+
{ commentType: "block", numNewlines: 2, repositoryName: options.name }
|
|
12905
|
+
]
|
|
12906
|
+
}
|
|
12907
|
+
};
|
|
12903
12908
|
const configs = [
|
|
12904
12909
|
// Prettier
|
|
12905
12910
|
prettierConfig,
|
|
@@ -12910,9 +12915,7 @@ function getStormConfig(options = {
|
|
|
12910
12915
|
// files: [CODE_FILE],
|
|
12911
12916
|
// rules: importRules
|
|
12912
12917
|
// },
|
|
12913
|
-
|
|
12914
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
12915
|
-
...plugin.configs["recommended"],
|
|
12918
|
+
bannerConfig,
|
|
12916
12919
|
// NX
|
|
12917
12920
|
{
|
|
12918
12921
|
plugins: { "@nx": nxPlugin }
|
|
@@ -13007,9 +13010,7 @@ function getStormConfig(options = {
|
|
|
13007
13010
|
plugins: { tsdoc },
|
|
13008
13011
|
rules: config
|
|
13009
13012
|
});
|
|
13010
|
-
typescriptConfigs.push(
|
|
13011
|
-
...plugin.configs["recommended"]
|
|
13012
|
-
);
|
|
13013
|
+
typescriptConfigs.push(bannerConfig);
|
|
13013
13014
|
configs.push(
|
|
13014
13015
|
...tsEslint$1.config({
|
|
13015
13016
|
files: [TS_FILE],
|
|
@@ -13032,7 +13033,7 @@ function getStormConfig(options = {
|
|
|
13032
13033
|
parserOptions: {
|
|
13033
13034
|
emitDecoratorMetadata: true,
|
|
13034
13035
|
experimentalDecorators: true,
|
|
13035
|
-
project:
|
|
13036
|
+
project: tsconfig,
|
|
13036
13037
|
projectService: true,
|
|
13037
13038
|
sourceType: "module",
|
|
13038
13039
|
projectFolderIgnoreList: [
|
package/package.json
CHANGED