@storm-software/linting-tools 1.121.0 → 1.122.0

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.
Files changed (105) hide show
  1. package/README.md +2 -1
  2. package/bin/lint.ts +42 -0
  3. package/{bin → dist/bin}/lint.cjs +0 -0
  4. package/{bin → dist/bin}/lint.js +0 -0
  5. package/package.json +1 -1
  6. package/alex/.alexignore +0 -3
  7. package/alex/config.json +0 -43
  8. package/biome/config.json +0 -100
  9. package/cloudformation-lint/config.yml +0 -23
  10. package/cspell/config.json +0 -4
  11. package/dependency-cruiser/config.js +0 -438
  12. package/editorconfig-checker/config.json +0 -18
  13. package/knip/config.json +0 -9
  14. package/ls-lint/config.yml +0 -52
  15. package/mega-linter/config.yml +0 -102
  16. package/syncpack/config.js +0 -61
  17. package/taplo/config.toml +0 -50
  18. package/terrascan/config.toml +0 -19
  19. package/tflint/config.hcl +0 -27
  20. package/yamllint/config.yml +0 -39
  21. package/zizmor/config.yml +0 -12
  22. /package/{bin → dist/bin}/chunk-7QL7OWCM.cjs +0 -0
  23. /package/{bin → dist/bin}/chunk-7YW6SYK4.js +0 -0
  24. /package/{bin → dist/bin}/chunk-F5S2YWGK.js +0 -0
  25. /package/{bin → dist/bin}/chunk-F6PA6NI3.js +0 -0
  26. /package/{bin → dist/bin}/chunk-FGSXL4JU.cjs +0 -0
  27. /package/{bin → dist/bin}/chunk-IPCYPK2J.js +0 -0
  28. /package/{bin → dist/bin}/chunk-J4LYARTH.js +0 -0
  29. /package/{bin → dist/bin}/chunk-KN423ORF.js +0 -0
  30. /package/{bin → dist/bin}/chunk-M66BZBUS.cjs +0 -0
  31. /package/{bin → dist/bin}/chunk-NB4KOSLF.js +0 -0
  32. /package/{bin → dist/bin}/chunk-NUT6CHJV.cjs +0 -0
  33. /package/{bin → dist/bin}/chunk-OAGWRM5M.cjs +0 -0
  34. /package/{bin → dist/bin}/chunk-SJ5N62GB.cjs +0 -0
  35. /package/{bin → dist/bin}/chunk-TGYUEFVA.cjs +0 -0
  36. /package/{bin → dist/bin}/chunk-TX32NVUB.cjs +0 -0
  37. /package/{bin → dist/bin}/chunk-UIDSCBJV.js +0 -0
  38. /package/{bin → dist/bin}/chunk-VYEM36K4.cjs +0 -0
  39. /package/{bin → dist/bin}/chunk-W74CCW6O.js +0 -0
  40. /package/{bin → dist/bin}/chunk-WLZCLJOC.js +0 -0
  41. /package/{bin → dist/bin}/chunk-ZQIF6N27.cjs +0 -0
  42. /package/{bin → dist/bin}/dist-DXXGF7QP.cjs +0 -0
  43. /package/{bin → dist/bin}/dist-FNKS7ZTL.js +0 -0
  44. /package/{bin → dist/bin}/dist-JSWA7BHU.js +0 -0
  45. /package/{bin → dist/bin}/dist-WFIGOFLU.cjs +0 -0
  46. /package/{bin → dist/bin}/esm-QRQ3Y6XE.cjs +0 -0
  47. /package/{bin → dist/bin}/esm-QZ3YYZJV.js +0 -0
  48. /package/{bin → dist/bin}/json5-JSVTTMQT.js +0 -0
  49. /package/{bin → dist/bin}/json5-OQYQPVZN.cjs +0 -0
  50. /package/{bin → dist/bin}/jsonc-NS63ZYKZ.js +0 -0
  51. /package/{bin → dist/bin}/jsonc-XKAK7IRL.cjs +0 -0
  52. /package/{bin → dist/bin}/multipart-parser-26TRXV2P.cjs +0 -0
  53. /package/{bin → dist/bin}/multipart-parser-ASBSHMS5.js +0 -0
  54. /package/{bin → dist/bin}/package-json-EKGDZK3M.js +0 -0
  55. /package/{bin → dist/bin}/package-json-RT6O5R6O.cjs +0 -0
  56. /package/{bin → dist/bin}/toml-2QUBG5KS.js +0 -0
  57. /package/{bin → dist/bin}/toml-3CF4ZBWL.cjs +0 -0
  58. /package/{bin → dist/bin}/utils-CGHUDHMD.js +0 -0
  59. /package/{bin → dist/bin}/utils-XUEWZVN7.cjs +0 -0
  60. /package/{bin → dist/bin}/yaml-L4OASIST.js +0 -0
  61. /package/{bin → dist/bin}/yaml-UKJ745DD.cjs +0 -0
  62. /package/dist/{chunk-7QL7OWCM.cjs → src/chunk-7QL7OWCM.cjs} +0 -0
  63. /package/dist/{chunk-7YW6SYK4.js → src/chunk-7YW6SYK4.js} +0 -0
  64. /package/dist/{chunk-F5S2YWGK.js → src/chunk-F5S2YWGK.js} +0 -0
  65. /package/dist/{chunk-F6PA6NI3.js → src/chunk-F6PA6NI3.js} +0 -0
  66. /package/dist/{chunk-FGSXL4JU.cjs → src/chunk-FGSXL4JU.cjs} +0 -0
  67. /package/dist/{chunk-IPCYPK2J.js → src/chunk-IPCYPK2J.js} +0 -0
  68. /package/dist/{chunk-J4LYARTH.js → src/chunk-J4LYARTH.js} +0 -0
  69. /package/dist/{chunk-KN423ORF.js → src/chunk-KN423ORF.js} +0 -0
  70. /package/dist/{chunk-M66BZBUS.cjs → src/chunk-M66BZBUS.cjs} +0 -0
  71. /package/dist/{chunk-NB4KOSLF.js → src/chunk-NB4KOSLF.js} +0 -0
  72. /package/dist/{chunk-NUT6CHJV.cjs → src/chunk-NUT6CHJV.cjs} +0 -0
  73. /package/dist/{chunk-OAGWRM5M.cjs → src/chunk-OAGWRM5M.cjs} +0 -0
  74. /package/dist/{chunk-SJ5N62GB.cjs → src/chunk-SJ5N62GB.cjs} +0 -0
  75. /package/dist/{chunk-TGYUEFVA.cjs → src/chunk-TGYUEFVA.cjs} +0 -0
  76. /package/dist/{chunk-TX32NVUB.cjs → src/chunk-TX32NVUB.cjs} +0 -0
  77. /package/dist/{chunk-UIDSCBJV.js → src/chunk-UIDSCBJV.js} +0 -0
  78. /package/dist/{chunk-VYEM36K4.cjs → src/chunk-VYEM36K4.cjs} +0 -0
  79. /package/dist/{chunk-W74CCW6O.js → src/chunk-W74CCW6O.js} +0 -0
  80. /package/dist/{chunk-WLZCLJOC.js → src/chunk-WLZCLJOC.js} +0 -0
  81. /package/dist/{chunk-ZQIF6N27.cjs → src/chunk-ZQIF6N27.cjs} +0 -0
  82. /package/dist/{dist-DXXGF7QP.cjs → src/dist-DXXGF7QP.cjs} +0 -0
  83. /package/dist/{dist-FNKS7ZTL.js → src/dist-FNKS7ZTL.js} +0 -0
  84. /package/dist/{dist-JSWA7BHU.js → src/dist-JSWA7BHU.js} +0 -0
  85. /package/dist/{dist-WFIGOFLU.cjs → src/dist-WFIGOFLU.cjs} +0 -0
  86. /package/dist/{esm-QRQ3Y6XE.cjs → src/esm-QRQ3Y6XE.cjs} +0 -0
  87. /package/dist/{esm-QZ3YYZJV.js → src/esm-QZ3YYZJV.js} +0 -0
  88. /package/dist/{index.cjs → src/index.cjs} +0 -0
  89. /package/dist/{index.d.cts → src/index.d.cts} +0 -0
  90. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  91. /package/dist/{index.js → src/index.js} +0 -0
  92. /package/dist/{json5-JSVTTMQT.js → src/json5-JSVTTMQT.js} +0 -0
  93. /package/dist/{json5-OQYQPVZN.cjs → src/json5-OQYQPVZN.cjs} +0 -0
  94. /package/dist/{jsonc-NS63ZYKZ.js → src/jsonc-NS63ZYKZ.js} +0 -0
  95. /package/dist/{jsonc-XKAK7IRL.cjs → src/jsonc-XKAK7IRL.cjs} +0 -0
  96. /package/dist/{multipart-parser-26TRXV2P.cjs → src/multipart-parser-26TRXV2P.cjs} +0 -0
  97. /package/dist/{multipart-parser-ASBSHMS5.js → src/multipart-parser-ASBSHMS5.js} +0 -0
  98. /package/dist/{package-json-EKGDZK3M.js → src/package-json-EKGDZK3M.js} +0 -0
  99. /package/dist/{package-json-RT6O5R6O.cjs → src/package-json-RT6O5R6O.cjs} +0 -0
  100. /package/dist/{toml-2QUBG5KS.js → src/toml-2QUBG5KS.js} +0 -0
  101. /package/dist/{toml-3CF4ZBWL.cjs → src/toml-3CF4ZBWL.cjs} +0 -0
  102. /package/dist/{utils-CGHUDHMD.js → src/utils-CGHUDHMD.js} +0 -0
  103. /package/dist/{utils-XUEWZVN7.cjs → src/utils-XUEWZVN7.cjs} +0 -0
  104. /package/dist/{yaml-L4OASIST.js → src/yaml-L4OASIST.js} +0 -0
  105. /package/dist/{yaml-UKJ745DD.cjs → src/yaml-UKJ745DD.cjs} +0 -0
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-1.120.5-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-1.121.1-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 -->
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Linting Tools](#storm-linting-tools)
package/bin/lint.ts ADDED
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+
3
+ import {
4
+ exitWithError,
5
+ exitWithSuccess,
6
+ getConfig,
7
+ handleProcess,
8
+ writeFatal,
9
+ writeSuccess,
10
+ } from "@storm-software/config-tools";
11
+ import { createProgram } from "../src/cli";
12
+
13
+ Error.stackTraceLimit = Infinity;
14
+
15
+ void (async () => {
16
+ const config = await getConfig();
17
+ try {
18
+ handleProcess(config);
19
+
20
+ const program = await createProgram(config);
21
+ program.exitOverride();
22
+
23
+ await program.parseAsync(process.argv);
24
+
25
+ writeSuccess("🎉 Code linting and fixing completed successfully!", config);
26
+ exitWithSuccess(config);
27
+ } catch (error) {
28
+ writeFatal(
29
+ `A fatal error occurred while running the Storm Lint tool:
30
+ ${error?.message ? error.message : JSON.stringify(error)}${
31
+ error?.stack
32
+ ? `
33
+ Stack Trace: ${error.stack}`
34
+ : ""
35
+ }`,
36
+ config,
37
+ );
38
+
39
+ exitWithError(config);
40
+ process.exit(1);
41
+ }
42
+ })();
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.121.0",
3
+ "version": "1.122.0",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
package/alex/.alexignore DELETED
@@ -1,3 +0,0 @@
1
- CODE_OF_CONDUCT.md
2
- dist
3
- *.spec.ts
package/alex/config.json DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "allow": [
3
- "attacks",
4
- "color",
5
- "dead",
6
- "execute",
7
- "executed",
8
- "executes",
9
- "execution",
10
- "executions",
11
- "failed",
12
- "failure",
13
- "failures",
14
- "fire",
15
- "fires",
16
- "firing",
17
- "hook",
18
- "hooks",
19
- "host-hostess",
20
- "invalid",
21
- "remains",
22
- "special",
23
- "white",
24
- "just",
25
- "easy",
26
- "easily",
27
- "simple",
28
- "colors",
29
- "clearly",
30
- "obvious",
31
- "pros",
32
- "blind",
33
- "xxx",
34
- "tinker",
35
- "reject",
36
- "terror",
37
- "Primitive",
38
- "Invalid",
39
- "master",
40
- "husky",
41
- "just"
42
- ]
43
- }
package/biome/config.json DELETED
@@ -1,100 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/1.5.1/schema.json",
3
- "organizeImports": {
4
- "enabled": false
5
- },
6
- "files": {
7
- "ignoreUnknown": true,
8
- "ignore": [
9
- "**/package.json/**",
10
- "**/.wrangler/**",
11
- "**/tamagui.css",
12
- "**/workbox*.js",
13
- "**/sw*.js",
14
- "**/service-worker.js",
15
- "**/fallback*.js",
16
- "**/node_modules/**",
17
- "**/dist/**",
18
- "**/ios/**",
19
- "**/.git/**",
20
- "**/.android/**",
21
- "**/.DS_Store/**",
22
- "**/Thumbs.db/**",
23
- "**/.tamagui*",
24
- "**/.next*"
25
- ]
26
- },
27
- "linter": {
28
- "enabled": true,
29
- "rules": {
30
- "recommended": true,
31
- "style": {
32
- "useDefaultParameterLast": "off",
33
- "useTemplate": "warn",
34
- "noUselessElse": "warn",
35
- "noNonNullAssertion": "warn"
36
- },
37
- "suspicious": {
38
- "noAssignInExpressions": "warn",
39
- "noEmptyInterface": "off",
40
- "noExplicitAny": "off"
41
- },
42
- "security": {
43
- "noDangerouslySetInnerHtml": "off"
44
- },
45
- "nursery": {
46
- "useImportType": "error",
47
- "useExportType": "error",
48
- "noDuplicateJsonKeys": "error",
49
- "noMisleadingCharacterClass": "error",
50
- "useAwait": "error",
51
- "useConsistentArrayType": "error",
52
- "useNodejsImportProtocol": "error",
53
- "useShorthandFunctionType": "error",
54
- "useImportRestrictions": "off",
55
- "useForOf": "error"
56
- },
57
- "correctness": {
58
- "noUnusedVariables": "error",
59
- "noUndeclaredVariables": "error",
60
- "useHookAtTopLevel": "error",
61
- "useExhaustiveDependencies": "warn"
62
- }
63
- }
64
- },
65
- "formatter": {
66
- "enabled": true,
67
- "lineWidth": 100,
68
- "indentStyle": "space",
69
- "indentWidth": 2
70
- },
71
- "javascript": {
72
- "parser": {
73
- "unsafeParameterDecoratorsEnabled": true
74
- },
75
- "formatter": {
76
- "enabled": true,
77
- "quoteStyle": "double",
78
- "jsxQuoteStyle": "double",
79
- "trailingComma": "none",
80
- "semicolons": "always",
81
- "arrowParentheses": "always",
82
- "quoteProperties": "asNeeded"
83
- },
84
- "globals": ["__STORM_CONFIG", "__STORM_CONTEXT"]
85
- },
86
- "json": {
87
- "parser": {
88
- "allowComments": true
89
- },
90
- "formatter": {
91
- "enabled": true
92
- }
93
- },
94
- "vcs": {
95
- "enabled": true,
96
- "clientKind": "git",
97
- "defaultBranch": "origin:main",
98
- "useIgnoreFile": false
99
- }
100
- }
@@ -1,23 +0,0 @@
1
- templates:
2
- - ./**/template.yaml
3
- - ./**/template.yml
4
- - ./resources/**/*.yaml
5
- - ./resources/**/*.yml
6
- - ./**/example-global-iam.yaml
7
- - ./**/example-global-iam.yml
8
- - ./**/global.yaml
9
- - ./**/global.yml
10
- - ./**/regional.yaml
11
- - ./**/regional.yml
12
- ignore_templates:
13
- - ./**/appspec.yml
14
- - ./**/appspec.yaml
15
- - ./**/buildspec.yml
16
- - ./**/buildspec.yaml
17
- - ./**/params/*.yml
18
- - ./**/params/*.yaml
19
- include_checks:
20
- - I
21
- ignore_checks:
22
- - W3002
23
- - W3045
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3
- "import": ["@storm-software/cspell/cspell-recommended.json"]
4
- }