@storm-software/eslint 0.83.1 → 0.83.3
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 +21 -22
- 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
|
@@ -1077,14 +1077,16 @@ const getStormRulesConfig = (options) => {
|
|
|
1077
1077
|
// https://eslint.org/docs/rules/no-restricted-syntax
|
|
1078
1078
|
"no-restricted-syntax": [
|
|
1079
1079
|
"error",
|
|
1080
|
-
{
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
},
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1080
|
+
// {
|
|
1081
|
+
// selector: "ForInStatement",
|
|
1082
|
+
// message:
|
|
1083
|
+
// "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
|
|
1084
|
+
// },
|
|
1085
|
+
// {
|
|
1086
|
+
// selector: "ForOfStatement",
|
|
1087
|
+
// message:
|
|
1088
|
+
// "iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations."
|
|
1089
|
+
// },
|
|
1088
1090
|
{
|
|
1089
1091
|
selector: "LabeledStatement",
|
|
1090
1092
|
message: "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
|
|
@@ -12896,6 +12898,15 @@ function getStormConfig(options = {
|
|
|
12896
12898
|
const useUnicorn = options.useUnicorn ?? true;
|
|
12897
12899
|
const react = options.react ?? {};
|
|
12898
12900
|
const useReactCompiler = options.useReactCompiler ?? false;
|
|
12901
|
+
const bannerConfig = {
|
|
12902
|
+
...plugin.configs["recommended"],
|
|
12903
|
+
rules: {
|
|
12904
|
+
"banner/banner": [
|
|
12905
|
+
"error",
|
|
12906
|
+
{ commentType: "block", numNewlines: 2, repositoryName: options.name }
|
|
12907
|
+
]
|
|
12908
|
+
}
|
|
12909
|
+
};
|
|
12899
12910
|
const configs = [
|
|
12900
12911
|
// Prettier
|
|
12901
12912
|
prettierConfig,
|
|
@@ -12906,17 +12917,7 @@ function getStormConfig(options = {
|
|
|
12906
12917
|
// files: [CODE_FILE],
|
|
12907
12918
|
// rules: importRules
|
|
12908
12919
|
// },
|
|
12909
|
-
|
|
12910
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
12911
|
-
{
|
|
12912
|
-
...plugin.configs["recommended"],
|
|
12913
|
-
rules: {
|
|
12914
|
-
"banner/banner": [
|
|
12915
|
-
"error",
|
|
12916
|
-
{ commentType: "block", numNewlines: 2, repositoryName: options.name }
|
|
12917
|
-
]
|
|
12918
|
-
}
|
|
12919
|
-
},
|
|
12920
|
+
bannerConfig,
|
|
12920
12921
|
// NX
|
|
12921
12922
|
{
|
|
12922
12923
|
plugins: { "@nx": nxPlugin }
|
|
@@ -13011,9 +13012,7 @@ function getStormConfig(options = {
|
|
|
13011
13012
|
plugins: { tsdoc },
|
|
13012
13013
|
rules: config
|
|
13013
13014
|
});
|
|
13014
|
-
typescriptConfigs.push(
|
|
13015
|
-
...plugin.configs["recommended"]
|
|
13016
|
-
);
|
|
13015
|
+
typescriptConfigs.push(bannerConfig);
|
|
13017
13016
|
configs.push(
|
|
13018
13017
|
...tsEslint$1.config({
|
|
13019
13018
|
files: [TS_FILE],
|
package/package.json
CHANGED