@storm-software/linting-tools 1.25.3 → 1.26.1
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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/bin/cli.mjs +13 -5
- package/biome/biome.json +15 -1
- package/cli/index.js +3933 -3119
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.26.0](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.25.3...linting-tools-v1.26.0) (2024-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Added logger functions to use in the repo's console CLI apps ([c38d262](https://github.com/storm-software/storm-ops/commit/c38d26271cfee4e8fd094526b431e098d186a667))
|
|
7
|
+
|
|
8
|
+
## [1.25.3](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.25.2...linting-tools-v1.25.3) (2024-01-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Many code quality improvements and enhanced linting rules ([d2123cf](https://github.com/storm-software/storm-ops/commit/d2123cf87850b1442b8e7c1ed4b3ccc07f2a8673))
|
|
14
|
+
|
|
1
15
|
## [1.25.2](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.25.1...linting-tools-v1.25.2) (2024-01-15)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
package/bin/cli.mjs
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env zx
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { writeFatal, writeSuccess } from "../../config-tools/utilities/logger.js";
|
|
4
|
+
import { prepareWorkspace } from "../../config-tools/utilities/prepare-workspace.js";
|
|
4
5
|
import { createProgram } from "../cli/index.js";
|
|
5
6
|
|
|
7
|
+
const _STORM_CONFIG = await prepareWorkspace();
|
|
8
|
+
|
|
6
9
|
try {
|
|
7
|
-
|
|
8
|
-
cd(workspaceRoot);
|
|
10
|
+
// biome-ignore lint/correctness/noUndeclaredVariables: <explanation>
|
|
11
|
+
cd(_STORM_CONFIG.workspaceRoot);
|
|
9
12
|
|
|
13
|
+
// biome-ignore lint/correctness/noUndeclaredVariables: <explanation>
|
|
10
14
|
await spinner("Executing code linting and fixing...", async () => {
|
|
11
15
|
const program = createProgram();
|
|
12
16
|
program.exitOverride();
|
|
13
17
|
|
|
14
18
|
await program.parseAsync(process.argv.splice(1));
|
|
15
19
|
});
|
|
20
|
+
|
|
21
|
+
writeSuccess(_STORM_CONFIG, "Code linting and fixing completed successfully!");
|
|
16
22
|
} catch (e) {
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
writeFatal(
|
|
24
|
+
_STORM_CONFIG,
|
|
25
|
+
`A fatal error occurred while running the program: ${e.stderr} \nStacktrace: ${e.stack}`
|
|
26
|
+
);
|
|
19
27
|
process.exit(1);
|
|
20
28
|
}
|
package/biome/biome.json
CHANGED
|
@@ -44,7 +44,21 @@
|
|
|
44
44
|
},
|
|
45
45
|
"nursery": {
|
|
46
46
|
"useImportType": "error",
|
|
47
|
-
"useExportType": "error"
|
|
47
|
+
"useExportType": "error",
|
|
48
|
+
"noDuplicateJsonKeys": "error",
|
|
49
|
+
"noMisleadingCharacterClass": "error",
|
|
50
|
+
"useAwait": "error",
|
|
51
|
+
"useConsistentArrayType": "error",
|
|
52
|
+
"useNodejsImportProtocol": "error",
|
|
53
|
+
"useShorthandFunctionType": "error",
|
|
54
|
+
"useImportRestrictions": "warn",
|
|
55
|
+
"useForOf": "error"
|
|
56
|
+
},
|
|
57
|
+
"correctness": {
|
|
58
|
+
"noUnusedVariables": "error",
|
|
59
|
+
"noUndeclaredVariables": "error",
|
|
60
|
+
"useHookAtTopLevel": "error",
|
|
61
|
+
"useExhaustiveDependencies": "warn"
|
|
48
62
|
}
|
|
49
63
|
}
|
|
50
64
|
},
|