@storm-software/linting-tools 1.132.80 → 1.132.82

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/bin/lint.js CHANGED
@@ -283401,6 +283401,35 @@ var DEFAULT_COLOR_CONFIG = {
283401
283401
  gradient: ["#1fb2a6", "#db2777", "#818cf8"]
283402
283402
  }
283403
283403
  };
283404
+ function getColors(config2) {
283405
+ if (!config2?.colors || typeof config2.colors !== "object" || !config2.colors["dark"] && (!config2.colors["base"] || typeof config2.colors !== "object" || !config2.colors["base"]?.["dark"])) {
283406
+ return DEFAULT_COLOR_CONFIG;
283407
+ }
283408
+ if (config2.colors["base"]) {
283409
+ if (typeof config2.colors["base"]["dark"] === "object") {
283410
+ return config2.colors["base"]["dark"];
283411
+ } else if (config2.colors["base"]["dark"] === "string") {
283412
+ return config2.colors["base"];
283413
+ }
283414
+ }
283415
+ if (typeof config2.colors["dark"] === "object") {
283416
+ return config2.colors["dark"];
283417
+ }
283418
+ return config2.colors ?? DEFAULT_COLOR_CONFIG;
283419
+ }
283420
+ function getColor(key, config2) {
283421
+ const colors = getColors(config2);
283422
+ const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
283423
+ if (result) {
283424
+ return result;
283425
+ }
283426
+ if (key === "link" || key === "debug") {
283427
+ return getColor("info", config2);
283428
+ } else if (key === "fatal") {
283429
+ return getColor("danger", config2);
283430
+ }
283431
+ return getColor("brand", config2);
283432
+ }
283404
283433
 
283405
283434
  // ../config-tools/src/logger/chalk.ts
283406
283435
  init_esm_shims();
@@ -283662,6 +283691,7 @@ var _isFunction = (value) => {
283662
283691
  return false;
283663
283692
  }
283664
283693
  };
283694
+ var brandIcon = (config2 = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config2))("\u{1F5F2}");
283665
283695
 
283666
283696
  // ../config-tools/src/utilities/find-workspace-root.ts
283667
283697
  init_esm_shims();
@@ -342061,7 +342091,7 @@ async function runManypkg(config2, manypkgType = "fix", manypkgArgs) {
342061
342091
  var _config = {};
342062
342092
  function createProgram(config2) {
342063
342093
  _config = config2;
342064
- writeInfo("\u26A1 Running Storm Linting Tools", config2);
342094
+ writeInfo(`${brandIcon(config2)} Running Storm Linting Tools`, config2);
342065
342095
  const root = findWorkspaceRootSafe();
342066
342096
  process.env.STORM_WORKSPACE_ROOT ??= root;
342067
342097
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
@@ -342070,7 +342100,7 @@ function createProgram(config2) {
342070
342100
  }
342071
342101
  const program2 = new Command("storm-lint");
342072
342102
  program2.version("1.0.0", "-v --version", "display CLI version");
342073
- program2.description("\u26A1 Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
342103
+ program2.description("Lint the Storm Workspace").showHelpAfterError().showSuggestionAfterError();
342074
342104
  program2.command("cspell").description("Run spell-check lint for the workspace.").option(
342075
342105
  "--cspell-config <file>",
342076
342106
  "CSpell config file path",
@@ -342234,7 +342264,7 @@ async function allAction({
342234
342264
  manypkgArgs = []
342235
342265
  }) {
342236
342266
  try {
342237
- writeDebug("\u26A1 Linting the Storm Workspace", _config);
342267
+ writeDebug(`${brandIcon(_config)} Linting the Storm Workspace`, _config);
342238
342268
  const promises2 = [];
342239
342269
  if (!skipCspell) {
342240
342270
  promises2.push(cspellAction({ cspellConfig }));
@@ -342271,7 +342301,7 @@ async function cspellAction({
342271
342301
  cspellConfig = "@storm-software/linting-tools/cspell/config.json"
342272
342302
  }) {
342273
342303
  try {
342274
- writeInfo("\u26A1 Linting the workspace spelling");
342304
+ writeInfo(`${brandIcon(_config)} Linting the workspace spelling`, _config);
342275
342305
  const result = await lint(["**/*.{txt,js,jsx,ts,tsx,md,mdx}"], {
342276
342306
  cache: true,
342277
342307
  summary: true,
@@ -342300,7 +342330,10 @@ ${e.message}`, _config);
342300
342330
  }
342301
342331
  async function codeownersAction() {
342302
342332
  try {
342303
- writeInfo("\u26A1 Linting the workspace CODEOWNERS file");
342333
+ writeInfo(
342334
+ `${brandIcon(_config)} Linting the workspace CODEOWNERS file`,
342335
+ _config
342336
+ );
342304
342337
  await runCodeowners();
342305
342338
  writeSuccess("CODEOWNERS linting is complete \u2705", _config);
342306
342339
  } catch (e) {
@@ -342320,7 +342353,10 @@ async function alexAction({
342320
342353
  alexIgnore = "@storm-software/linting-tools/alex/.alexignore"
342321
342354
  }) {
342322
342355
  try {
342323
- writeDebug("\u26A1 Linting the workspace language with alexjs.com", _config);
342356
+ writeDebug(
342357
+ `${brandIcon(_config)} Linting the workspace language with alexjs.com`,
342358
+ _config
342359
+ );
342324
342360
  const result = await runAlex(alexConfig, alexIgnore);
342325
342361
  if (result) {
342326
342362
  throw new Error(`Alex CLI Error Code: ${result}`);
@@ -342347,7 +342383,7 @@ async function depsVersionAction({
342347
342383
  }) {
342348
342384
  try {
342349
342385
  writeDebug(
342350
- "\u26A1 Linting the workspace dependency version consistency",
342386
+ `${brandIcon(_config)} Linting the workspace dependency version consistency`,
342351
342387
  _config
342352
342388
  );
342353
342389
  const cdvc = new CDVC(".", {
@@ -342379,7 +342415,10 @@ ${e.message} `,
342379
342415
  }
342380
342416
  async function circularDepsAction() {
342381
342417
  try {
342382
- writeDebug("\u26A1 Linting the workspace circular dependency", _config);
342418
+ writeDebug(
342419
+ `${brandIcon(_config)} Linting the workspace circular dependency`,
342420
+ _config
342421
+ );
342383
342422
  const circulars = (0, lib_exports2.parseCircular)(
342384
342423
  await (0, lib_exports2.parseDependencyTree)(["**/*"], {
342385
342424
  exclude: new RegExp(
@@ -342420,7 +342459,10 @@ async function manypkgAction({
342420
342459
  manypkgArgs = []
342421
342460
  }) {
342422
342461
  try {
342423
- writeDebug("\u26A1 Linting the workspace's packages with Manypkg", _config);
342462
+ writeDebug(
342463
+ `${brandIcon(_config)} Linting the workspace's packages with Manypkg`,
342464
+ _config
342465
+ );
342424
342466
  await runManypkg(_config, manypkgType, manypkgArgs);
342425
342467
  writeSuccess("Manypkg linting is complete \u2705", _config);
342426
342468
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.132.80",
3
+ "version": "1.132.82",
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": {
@@ -149,5 +149,5 @@
149
149
  "vfile-reporter": "8.1.1"
150
150
  },
151
151
  "publishConfig": { "access": "public" },
152
- "gitHead": "f0da2445e3b4764750c75fdcd1d0ec13a10c6602"
152
+ "gitHead": "282913d6672835512eeea3570f24995dfb7e40c6"
153
153
  }