@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 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
- [![Version](https://img.shields.io/badge/version-1.24.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.26.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
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 { findWorkspaceRootSafe } from "../../config-tools/utilities/find-workspace-root.js";
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
- const workspaceRoot = findWorkspaceRootSafe();
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
- console.error(`Error: ${e.stderr}`);
18
- console.error(e);
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
  },