@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 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.83.0-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.83.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)
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
- selector: "ForInStatement",
1082
- message: "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."
1083
- },
1084
- {
1085
- selector: "ForOfStatement",
1086
- message: "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."
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
- // Banner
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.83.1",
3
+ "version": "0.83.3",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {