@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.
- package/README.md +2 -1
- package/bin/lint.ts +42 -0
- package/{bin → dist/bin}/lint.cjs +0 -0
- package/{bin → dist/bin}/lint.js +0 -0
- package/package.json +1 -1
- package/alex/.alexignore +0 -3
- package/alex/config.json +0 -43
- package/biome/config.json +0 -100
- package/cloudformation-lint/config.yml +0 -23
- package/cspell/config.json +0 -4
- package/dependency-cruiser/config.js +0 -438
- package/editorconfig-checker/config.json +0 -18
- package/knip/config.json +0 -9
- package/ls-lint/config.yml +0 -52
- package/mega-linter/config.yml +0 -102
- package/syncpack/config.js +0 -61
- package/taplo/config.toml +0 -50
- package/terrascan/config.toml +0 -19
- package/tflint/config.hcl +0 -27
- package/yamllint/config.yml +0 -39
- package/zizmor/config.yml +0 -12
- /package/{bin → dist/bin}/chunk-7QL7OWCM.cjs +0 -0
- /package/{bin → dist/bin}/chunk-7YW6SYK4.js +0 -0
- /package/{bin → dist/bin}/chunk-F5S2YWGK.js +0 -0
- /package/{bin → dist/bin}/chunk-F6PA6NI3.js +0 -0
- /package/{bin → dist/bin}/chunk-FGSXL4JU.cjs +0 -0
- /package/{bin → dist/bin}/chunk-IPCYPK2J.js +0 -0
- /package/{bin → dist/bin}/chunk-J4LYARTH.js +0 -0
- /package/{bin → dist/bin}/chunk-KN423ORF.js +0 -0
- /package/{bin → dist/bin}/chunk-M66BZBUS.cjs +0 -0
- /package/{bin → dist/bin}/chunk-NB4KOSLF.js +0 -0
- /package/{bin → dist/bin}/chunk-NUT6CHJV.cjs +0 -0
- /package/{bin → dist/bin}/chunk-OAGWRM5M.cjs +0 -0
- /package/{bin → dist/bin}/chunk-SJ5N62GB.cjs +0 -0
- /package/{bin → dist/bin}/chunk-TGYUEFVA.cjs +0 -0
- /package/{bin → dist/bin}/chunk-TX32NVUB.cjs +0 -0
- /package/{bin → dist/bin}/chunk-UIDSCBJV.js +0 -0
- /package/{bin → dist/bin}/chunk-VYEM36K4.cjs +0 -0
- /package/{bin → dist/bin}/chunk-W74CCW6O.js +0 -0
- /package/{bin → dist/bin}/chunk-WLZCLJOC.js +0 -0
- /package/{bin → dist/bin}/chunk-ZQIF6N27.cjs +0 -0
- /package/{bin → dist/bin}/dist-DXXGF7QP.cjs +0 -0
- /package/{bin → dist/bin}/dist-FNKS7ZTL.js +0 -0
- /package/{bin → dist/bin}/dist-JSWA7BHU.js +0 -0
- /package/{bin → dist/bin}/dist-WFIGOFLU.cjs +0 -0
- /package/{bin → dist/bin}/esm-QRQ3Y6XE.cjs +0 -0
- /package/{bin → dist/bin}/esm-QZ3YYZJV.js +0 -0
- /package/{bin → dist/bin}/json5-JSVTTMQT.js +0 -0
- /package/{bin → dist/bin}/json5-OQYQPVZN.cjs +0 -0
- /package/{bin → dist/bin}/jsonc-NS63ZYKZ.js +0 -0
- /package/{bin → dist/bin}/jsonc-XKAK7IRL.cjs +0 -0
- /package/{bin → dist/bin}/multipart-parser-26TRXV2P.cjs +0 -0
- /package/{bin → dist/bin}/multipart-parser-ASBSHMS5.js +0 -0
- /package/{bin → dist/bin}/package-json-EKGDZK3M.js +0 -0
- /package/{bin → dist/bin}/package-json-RT6O5R6O.cjs +0 -0
- /package/{bin → dist/bin}/toml-2QUBG5KS.js +0 -0
- /package/{bin → dist/bin}/toml-3CF4ZBWL.cjs +0 -0
- /package/{bin → dist/bin}/utils-CGHUDHMD.js +0 -0
- /package/{bin → dist/bin}/utils-XUEWZVN7.cjs +0 -0
- /package/{bin → dist/bin}/yaml-L4OASIST.js +0 -0
- /package/{bin → dist/bin}/yaml-UKJ745DD.cjs +0 -0
- /package/dist/{chunk-7QL7OWCM.cjs → src/chunk-7QL7OWCM.cjs} +0 -0
- /package/dist/{chunk-7YW6SYK4.js → src/chunk-7YW6SYK4.js} +0 -0
- /package/dist/{chunk-F5S2YWGK.js → src/chunk-F5S2YWGK.js} +0 -0
- /package/dist/{chunk-F6PA6NI3.js → src/chunk-F6PA6NI3.js} +0 -0
- /package/dist/{chunk-FGSXL4JU.cjs → src/chunk-FGSXL4JU.cjs} +0 -0
- /package/dist/{chunk-IPCYPK2J.js → src/chunk-IPCYPK2J.js} +0 -0
- /package/dist/{chunk-J4LYARTH.js → src/chunk-J4LYARTH.js} +0 -0
- /package/dist/{chunk-KN423ORF.js → src/chunk-KN423ORF.js} +0 -0
- /package/dist/{chunk-M66BZBUS.cjs → src/chunk-M66BZBUS.cjs} +0 -0
- /package/dist/{chunk-NB4KOSLF.js → src/chunk-NB4KOSLF.js} +0 -0
- /package/dist/{chunk-NUT6CHJV.cjs → src/chunk-NUT6CHJV.cjs} +0 -0
- /package/dist/{chunk-OAGWRM5M.cjs → src/chunk-OAGWRM5M.cjs} +0 -0
- /package/dist/{chunk-SJ5N62GB.cjs → src/chunk-SJ5N62GB.cjs} +0 -0
- /package/dist/{chunk-TGYUEFVA.cjs → src/chunk-TGYUEFVA.cjs} +0 -0
- /package/dist/{chunk-TX32NVUB.cjs → src/chunk-TX32NVUB.cjs} +0 -0
- /package/dist/{chunk-UIDSCBJV.js → src/chunk-UIDSCBJV.js} +0 -0
- /package/dist/{chunk-VYEM36K4.cjs → src/chunk-VYEM36K4.cjs} +0 -0
- /package/dist/{chunk-W74CCW6O.js → src/chunk-W74CCW6O.js} +0 -0
- /package/dist/{chunk-WLZCLJOC.js → src/chunk-WLZCLJOC.js} +0 -0
- /package/dist/{chunk-ZQIF6N27.cjs → src/chunk-ZQIF6N27.cjs} +0 -0
- /package/dist/{dist-DXXGF7QP.cjs → src/dist-DXXGF7QP.cjs} +0 -0
- /package/dist/{dist-FNKS7ZTL.js → src/dist-FNKS7ZTL.js} +0 -0
- /package/dist/{dist-JSWA7BHU.js → src/dist-JSWA7BHU.js} +0 -0
- /package/dist/{dist-WFIGOFLU.cjs → src/dist-WFIGOFLU.cjs} +0 -0
- /package/dist/{esm-QRQ3Y6XE.cjs → src/esm-QRQ3Y6XE.cjs} +0 -0
- /package/dist/{esm-QZ3YYZJV.js → src/esm-QZ3YYZJV.js} +0 -0
- /package/dist/{index.cjs → src/index.cjs} +0 -0
- /package/dist/{index.d.cts → src/index.d.cts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{json5-JSVTTMQT.js → src/json5-JSVTTMQT.js} +0 -0
- /package/dist/{json5-OQYQPVZN.cjs → src/json5-OQYQPVZN.cjs} +0 -0
- /package/dist/{jsonc-NS63ZYKZ.js → src/jsonc-NS63ZYKZ.js} +0 -0
- /package/dist/{jsonc-XKAK7IRL.cjs → src/jsonc-XKAK7IRL.cjs} +0 -0
- /package/dist/{multipart-parser-26TRXV2P.cjs → src/multipart-parser-26TRXV2P.cjs} +0 -0
- /package/dist/{multipart-parser-ASBSHMS5.js → src/multipart-parser-ASBSHMS5.js} +0 -0
- /package/dist/{package-json-EKGDZK3M.js → src/package-json-EKGDZK3M.js} +0 -0
- /package/dist/{package-json-RT6O5R6O.cjs → src/package-json-RT6O5R6O.cjs} +0 -0
- /package/dist/{toml-2QUBG5KS.js → src/toml-2QUBG5KS.js} +0 -0
- /package/dist/{toml-3CF4ZBWL.cjs → src/toml-3CF4ZBWL.cjs} +0 -0
- /package/dist/{utils-CGHUDHMD.js → src/utils-CGHUDHMD.js} +0 -0
- /package/dist/{utils-XUEWZVN7.cjs → src/utils-XUEWZVN7.cjs} +0 -0
- /package/dist/{yaml-L4OASIST.js → src/yaml-L4OASIST.js} +0 -0
- /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
|
-
[](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 -->
|
|
@@ -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
|
package/{bin → dist/bin}/lint.js
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
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
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
|
package/cspell/config.json
DELETED