@storm-software/linting-tools 1.22.0 → 1.23.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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/cli/index.js +24 -32
- package/cspell/dictionary.txt +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.22.0](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.21.1...linting-tools-v1.22.0) (2024-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Added Typia compiler transformer to tsup build ([2b5645f](https://github.com/storm-software/storm-ops/commit/2b5645f8603ba06437b7311dc0652be5927e3168))
|
|
7
|
+
|
|
1
8
|
## [1.21.1](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.21.0...linting-tools-v1.21.1) (2024-01-12)
|
|
2
9
|
|
|
3
10
|
|
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/cli/index.js
CHANGED
|
@@ -272785,6 +272785,10 @@ var init_lib = __esm({
|
|
|
272785
272785
|
}
|
|
272786
272786
|
});
|
|
272787
272787
|
|
|
272788
|
+
// packages/linting-tools/src/cli/index.ts
|
|
272789
|
+
import fs21 from "fs";
|
|
272790
|
+
import path37 from "path";
|
|
272791
|
+
|
|
272788
272792
|
// node_modules/.pnpm/commander@11.1.0/node_modules/commander/esm.mjs
|
|
272789
272793
|
var import_index = __toESM(require_commander(), 1);
|
|
272790
272794
|
var {
|
|
@@ -292165,8 +292169,6 @@ __reExport(esm_exports3, dist_exports);
|
|
|
292165
292169
|
|
|
292166
292170
|
// packages/linting-tools/src/cli/index.ts
|
|
292167
292171
|
var import_dpdm = __toESM(require_lib7(), 1);
|
|
292168
|
-
import fs21 from "fs";
|
|
292169
|
-
import path37 from "path";
|
|
292170
292172
|
|
|
292171
292173
|
// node_modules/.pnpm/vfile-location@4.1.0/node_modules/vfile-location/lib/index.js
|
|
292172
292174
|
function location(file) {
|
|
@@ -315093,26 +315095,22 @@ function createProgram() {
|
|
|
315093
315095
|
const program2 = new Command("storm-lint");
|
|
315094
315096
|
program2.version("1.0.0", "-v --version", "display CLI version");
|
|
315095
315097
|
program2.description("\u26A1Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
|
|
315096
|
-
const cspellConfig = new Option(
|
|
315097
|
-
"
|
|
315098
|
-
|
|
315099
|
-
).default("@storm-software/linting-tools/cspell/config.js");
|
|
315098
|
+
const cspellConfig = new Option("--cspell-config <file>", "CSpell config file path").default(
|
|
315099
|
+
"@storm-software/linting-tools/cspell/config.js"
|
|
315100
|
+
);
|
|
315100
315101
|
program2.command("cspell").description("Run spell-check lint for the workspace.").addOption(cspellConfig).action(cspellAction);
|
|
315101
|
-
const alexConfig = new Option(
|
|
315102
|
-
"
|
|
315103
|
-
|
|
315104
|
-
|
|
315105
|
-
|
|
315106
|
-
|
|
315107
|
-
"Alex.js Ignore file path"
|
|
315108
|
-
).default("@storm-software/linting-tools/alex/.alexignore");
|
|
315102
|
+
const alexConfig = new Option("--alex-config <file>", "Alex.js config file path").default(
|
|
315103
|
+
"@storm-software/linting-tools/alex/.alexrc"
|
|
315104
|
+
);
|
|
315105
|
+
const alexIgnore = new Option("--alex-ignore <file>", "Alex.js Ignore file path").default(
|
|
315106
|
+
"@storm-software/linting-tools/alex/.alexignore"
|
|
315107
|
+
);
|
|
315109
315108
|
program2.command("alex").description("Run spell-check lint for the workspace.").addOption(alexConfig).addOption(alexIgnore).action(alexAction);
|
|
315110
315109
|
program2.command("deps-version").description("Run dependency version consistency lint for the workspace.").action(depsVersionAction);
|
|
315111
315110
|
program2.command("circular-deps").description("Run circular dependency lint for the workspace.").action(circularDepsAction);
|
|
315112
|
-
const manypkgType = new Option(
|
|
315113
|
-
"
|
|
315114
|
-
|
|
315115
|
-
).default("check");
|
|
315111
|
+
const manypkgType = new Option("--manypkg-type <type>", "The manypkg command to run").default(
|
|
315112
|
+
"check"
|
|
315113
|
+
);
|
|
315116
315114
|
const manypkgArgs = new Option(
|
|
315117
315115
|
"--manypkg-args <args>",
|
|
315118
315116
|
"The args provided to the manypkg command"
|
|
@@ -315123,10 +315121,7 @@ function createProgram() {
|
|
|
315123
315121
|
).default(true);
|
|
315124
315122
|
program2.command("manypkg").description("Run package lint with Manypkg for the workspace.").addOption(manypkgType).addOption(manypkgArgs).addOption(manypkgFix).action(manypkgAction);
|
|
315125
315123
|
const cspellSkip = new Option("--skip-cspell", "Should skip CSpell linting");
|
|
315126
|
-
const alexSkip = new Option(
|
|
315127
|
-
"--skip-alex",
|
|
315128
|
-
"Should skip Alex language linting"
|
|
315129
|
-
);
|
|
315124
|
+
const alexSkip = new Option("--skip-alex", "Should skip Alex language linting");
|
|
315130
315125
|
const depsVersionSkip = new Option(
|
|
315131
315126
|
"--skip-deps-version",
|
|
315132
315127
|
"Should skip dependency version consistency linting"
|
|
@@ -315135,10 +315130,7 @@ function createProgram() {
|
|
|
315135
315130
|
"--skip-circular-deps",
|
|
315136
315131
|
"Should skip circular dependency linting"
|
|
315137
315132
|
);
|
|
315138
|
-
const manypkgSkip = new Option(
|
|
315139
|
-
"--skip-manypkg",
|
|
315140
|
-
"Should skip Manypkg linting"
|
|
315141
|
-
);
|
|
315133
|
+
const manypkgSkip = new Option("--skip-manypkg", "Should skip Manypkg linting");
|
|
315142
315134
|
program2.command("all").description("Run all linters for the workspace.").addOption(cspellSkip).addOption(alexSkip).addOption(depsVersionSkip).addOption(circularDepsSkip).addOption(manypkgSkip).addOption(cspellConfig).addOption(alexConfig).addOption(alexIgnore).addOption(manypkgType).addOption(manypkgArgs).addOption(manypkgFix).action(allAction);
|
|
315143
315135
|
return program2;
|
|
315144
315136
|
}
|
|
@@ -315163,7 +315155,7 @@ async function allAction(cspellSkip, alexSkip, depsVersionSkip, circularDepsSkip
|
|
|
315163
315155
|
promises.push(manypkgAction(manypkgType, manypkgArgs, manypkgFix));
|
|
315164
315156
|
}
|
|
315165
315157
|
await Promise.all(promises);
|
|
315166
|
-
console.log(
|
|
315158
|
+
console.log("\u26A1 Linted the workspace");
|
|
315167
315159
|
} catch (e) {
|
|
315168
315160
|
console.error(e);
|
|
315169
315161
|
process.exit(1);
|
|
@@ -315181,7 +315173,7 @@ async function cspellAction(cspellConfig) {
|
|
|
315181
315173
|
dot: true,
|
|
315182
315174
|
debug: true,
|
|
315183
315175
|
gitignore: true,
|
|
315184
|
-
root: process.env
|
|
315176
|
+
root: process.env.STORM_WORKSPACE_ROOT ? process.env.STORM_WORKSPACE_ROOT : process.cwd(),
|
|
315185
315177
|
defaultConfiguration: false,
|
|
315186
315178
|
config: cspellConfig
|
|
315187
315179
|
});
|
|
@@ -315217,11 +315209,11 @@ async function depsVersionAction() {
|
|
|
315217
315209
|
console.log(cdvc.toFixedSummary());
|
|
315218
315210
|
}
|
|
315219
315211
|
if (cdvc.hasMismatchingDependenciesNotFixable) {
|
|
315220
|
-
console.error(
|
|
315212
|
+
console.error("\u274C Dependency version consistency linting has failed");
|
|
315221
315213
|
console.error(cdvc.toMismatchSummary());
|
|
315222
315214
|
process.exit(1);
|
|
315223
315215
|
}
|
|
315224
|
-
console.log(
|
|
315216
|
+
console.log("\u2705 Dependency Version linting is complete");
|
|
315225
315217
|
} catch (e) {
|
|
315226
315218
|
console.error(e);
|
|
315227
315219
|
process.exit(1);
|
|
@@ -315237,7 +315229,7 @@ async function circularDepsAction() {
|
|
|
315237
315229
|
});
|
|
315238
315230
|
const circulars = (0, import_dpdm.parseCircular)(tree);
|
|
315239
315231
|
console.log((0, import_dpdm.prettyCircular)(circulars));
|
|
315240
|
-
console.log(
|
|
315232
|
+
console.log("\u2705 Circular dependency linting is complete");
|
|
315241
315233
|
} catch (e) {
|
|
315242
315234
|
console.error(e);
|
|
315243
315235
|
process.exit(1);
|
|
@@ -315247,7 +315239,7 @@ async function manypkgAction(manypkgType = "check", manypkgArgs, manypkgFix) {
|
|
|
315247
315239
|
try {
|
|
315248
315240
|
console.log("\u26A1 Linting the workspace's packages with Manypkg");
|
|
315249
315241
|
await runManypkg(manypkgType, manypkgArgs, manypkgFix);
|
|
315250
|
-
console.log(
|
|
315242
|
+
console.log("\u2705 Manypkg linting is complete");
|
|
315251
315243
|
} catch (e) {
|
|
315252
315244
|
console.error(e);
|
|
315253
315245
|
process.exit(1);
|
package/cspell/dictionary.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"private": false,
|
|
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
|
"keywords": [
|