@xylabs/ts-scripts-yarn3 3.0.83 → 3.0.84

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.
@@ -36,6 +36,23 @@ module.exports = __toCommonJS(lint_exports);
36
36
  var import_chalk = __toESM(require("chalk"));
37
37
  var import_eslint = require("eslint");
38
38
  var import_lib = require("../lib");
39
+ const dumpMessages = (lintResults) => {
40
+ const colors = ["white", "yellow", "red"];
41
+ const severity = ["none", "warning", "error"];
42
+ lintResults.forEach((lintResult) => {
43
+ if (lintResult.messages.length > 0) {
44
+ console.log(import_chalk.default.gray(`${lintResult.filePath}`));
45
+ lintResult.messages.forEach((message) => {
46
+ console.log(
47
+ import_chalk.default.gray(` ${message.line}:${message.column}`),
48
+ import_chalk.default[colors[message.severity]](` ${severity[message.severity]}`),
49
+ import_chalk.default.white(` ${message.message}`),
50
+ import_chalk.default.gray(` ${message.ruleId}`)
51
+ );
52
+ });
53
+ }
54
+ });
55
+ };
39
56
  const lintPackage = async ({ pkg }) => {
40
57
  const workspace = (0, import_lib.yarnWorkspaces)().find((workspace2) => workspace2.name === pkg);
41
58
  if (!workspace) {
@@ -44,14 +61,14 @@ const lintPackage = async ({ pkg }) => {
44
61
  }
45
62
  const engine = new import_eslint.ESLint({ cache: true });
46
63
  const lintResults = await engine.lintFiles(workspace.location);
47
- console.log(lintResults);
64
+ dumpMessages(lintResults);
48
65
  const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
49
66
  return errorCount;
50
67
  };
51
68
  const lintAll = async () => {
52
69
  const engine = new import_eslint.ESLint({ cache: true });
53
70
  const lintResults = await engine.lintFiles("./**/*.*");
54
- console.log(lintResults);
71
+ dumpMessages(lintResults);
55
72
  const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
56
73
  return errorCount;
57
74
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/actions/lint.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { ESLint } from 'eslint'\n\nimport { runSteps, yarnWorkspaces } from '../lib'\n\nexport interface LintParams {\n pkg?: string\n verbose?: boolean\n}\n\nexport interface LintPackageParams {\n pkg: string\n verbose?: boolean\n}\n\nexport const lintPackage = async ({ pkg }: LintParams) => {\n const workspace = yarnWorkspaces().find((workspace) => workspace.name === pkg)\n if (!workspace) {\n console.error(chalk.red(`Unable to locate package [${chalk.magenta(pkg)}]`))\n process.exit(1)\n }\n\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles(workspace.location)\n\n console.log(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lintAll = async () => {\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles('./**/*.*')\n\n console.log(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lint = async ({ pkg }: LintParams = {}) => {\n return pkg ? await lintPackage({ pkg }) : runSteps('Lint-Caching [All]', [['yarn', ['eslint', '.', '--cache']]])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,oBAAuB;AAEvB,iBAAyC;AAYlC,MAAM,cAAc,OAAO,EAAE,IAAI,MAAkB;AACxD,QAAM,gBAAY,2BAAe,EAAE,KAAK,CAACA,eAAcA,WAAU,SAAS,GAAG;AAC7E,MAAI,CAAC,WAAW;AACd,YAAQ,MAAM,aAAAC,QAAM,IAAI,6BAA6B,aAAAA,QAAM,QAAQ,GAAG,CAAC,GAAG,CAAC;AAC3E,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,SAAS,IAAI,qBAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU,QAAQ;AAE7D,UAAQ,IAAI,WAAW;AAEvB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,UAAU,YAAY;AACjC,QAAM,SAAS,IAAI,qBAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU;AAErD,UAAQ,IAAI,WAAW;AAEvB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,OAAO,OAAO,EAAE,IAAI,IAAgB,CAAC,MAAM;AACtD,SAAO,MAAM,MAAM,YAAY,EAAE,IAAI,CAAC,QAAI,qBAAS,sBAAsB,CAAC,CAAC,QAAQ,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC;AACjH;","names":["workspace","chalk"]}
1
+ {"version":3,"sources":["../../src/actions/lint.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { ESLint } from 'eslint'\n\nimport { runSteps, yarnWorkspaces } from '../lib'\n\nexport interface LintParams {\n pkg?: string\n verbose?: boolean\n}\n\nexport interface LintPackageParams {\n pkg: string\n verbose?: boolean\n}\n\nconst dumpMessages = (lintResults: ESLint.LintResult[]) => {\n const colors: ('white' | 'red' | 'yellow')[] = ['white', 'yellow', 'red']\n const severity: string[] = ['none', 'warning', 'error']\n\n lintResults.forEach((lintResult) => {\n if (lintResult.messages.length > 0) {\n console.log(chalk.gray(`${lintResult.filePath}`))\n lintResult.messages.forEach((message) => {\n console.log(\n chalk.gray(`\\t${message.line}:${message.column}`),\n chalk[colors[message.severity]](`\\t${severity[message.severity]}`),\n chalk.white(`\\t${message.message}`),\n chalk.gray(`\\t${message.ruleId}`),\n )\n })\n }\n })\n}\n\nexport const lintPackage = async ({ pkg }: LintParams) => {\n const workspace = yarnWorkspaces().find((workspace) => workspace.name === pkg)\n if (!workspace) {\n console.error(chalk.red(`Unable to locate package [${chalk.magenta(pkg)}]`))\n process.exit(1)\n }\n\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles(workspace.location)\n\n dumpMessages(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lintAll = async () => {\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles('./**/*.*')\n\n dumpMessages(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lint = async ({ pkg }: LintParams = {}) => {\n return pkg ? await lintPackage({ pkg }) : runSteps('Lint-Caching [All]', [['yarn', ['eslint', '.', '--cache']]])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,oBAAuB;AAEvB,iBAAyC;AAYzC,MAAM,eAAe,CAAC,gBAAqC;AACzD,QAAM,SAAyC,CAAC,SAAS,UAAU,KAAK;AACxE,QAAM,WAAqB,CAAC,QAAQ,WAAW,OAAO;AAEtD,cAAY,QAAQ,CAAC,eAAe;AAClC,QAAI,WAAW,SAAS,SAAS,GAAG;AAClC,cAAQ,IAAI,aAAAA,QAAM,KAAK,GAAG,WAAW,QAAQ,EAAE,CAAC;AAChD,iBAAW,SAAS,QAAQ,CAAC,YAAY;AACvC,gBAAQ;AAAA,UACN,aAAAA,QAAM,KAAK,IAAK,QAAQ,IAAI,IAAI,QAAQ,MAAM,EAAE;AAAA,UAChD,aAAAA,QAAM,OAAO,QAAQ,QAAQ,CAAC,EAAE,IAAK,SAAS,QAAQ,QAAQ,CAAC,EAAE;AAAA,UACjE,aAAAA,QAAM,MAAM,IAAK,QAAQ,OAAO,EAAE;AAAA,UAClC,aAAAA,QAAM,KAAK,IAAK,QAAQ,MAAM,EAAE;AAAA,QAClC;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;AAEO,MAAM,cAAc,OAAO,EAAE,IAAI,MAAkB;AACxD,QAAM,gBAAY,2BAAe,EAAE,KAAK,CAACC,eAAcA,WAAU,SAAS,GAAG;AAC7E,MAAI,CAAC,WAAW;AACd,YAAQ,MAAM,aAAAD,QAAM,IAAI,6BAA6B,aAAAA,QAAM,QAAQ,GAAG,CAAC,GAAG,CAAC;AAC3E,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,SAAS,IAAI,qBAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU,QAAQ;AAE7D,eAAa,WAAW;AAExB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,UAAU,YAAY;AACjC,QAAM,SAAS,IAAI,qBAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU;AAErD,eAAa,WAAW;AAExB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,OAAO,OAAO,EAAE,IAAI,IAAgB,CAAC,MAAM;AACtD,SAAO,MAAM,MAAM,YAAY,EAAE,IAAI,CAAC,QAAI,qBAAS,sBAAsB,CAAC,CAAC,QAAQ,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC;AACjH;","names":["chalk","workspace"]}
@@ -1,6 +1,23 @@
1
1
  import chalk from "chalk";
2
2
  import { ESLint } from "eslint";
3
3
  import { runSteps, yarnWorkspaces } from "../lib";
4
+ const dumpMessages = (lintResults) => {
5
+ const colors = ["white", "yellow", "red"];
6
+ const severity = ["none", "warning", "error"];
7
+ lintResults.forEach((lintResult) => {
8
+ if (lintResult.messages.length > 0) {
9
+ console.log(chalk.gray(`${lintResult.filePath}`));
10
+ lintResult.messages.forEach((message) => {
11
+ console.log(
12
+ chalk.gray(` ${message.line}:${message.column}`),
13
+ chalk[colors[message.severity]](` ${severity[message.severity]}`),
14
+ chalk.white(` ${message.message}`),
15
+ chalk.gray(` ${message.ruleId}`)
16
+ );
17
+ });
18
+ }
19
+ });
20
+ };
4
21
  const lintPackage = async ({ pkg }) => {
5
22
  const workspace = yarnWorkspaces().find((workspace2) => workspace2.name === pkg);
6
23
  if (!workspace) {
@@ -9,14 +26,14 @@ const lintPackage = async ({ pkg }) => {
9
26
  }
10
27
  const engine = new ESLint({ cache: true });
11
28
  const lintResults = await engine.lintFiles(workspace.location);
12
- console.log(lintResults);
29
+ dumpMessages(lintResults);
13
30
  const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
14
31
  return errorCount;
15
32
  };
16
33
  const lintAll = async () => {
17
34
  const engine = new ESLint({ cache: true });
18
35
  const lintResults = await engine.lintFiles("./**/*.*");
19
- console.log(lintResults);
36
+ dumpMessages(lintResults);
20
37
  const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
21
38
  return errorCount;
22
39
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/actions/lint.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { ESLint } from 'eslint'\n\nimport { runSteps, yarnWorkspaces } from '../lib'\n\nexport interface LintParams {\n pkg?: string\n verbose?: boolean\n}\n\nexport interface LintPackageParams {\n pkg: string\n verbose?: boolean\n}\n\nexport const lintPackage = async ({ pkg }: LintParams) => {\n const workspace = yarnWorkspaces().find((workspace) => workspace.name === pkg)\n if (!workspace) {\n console.error(chalk.red(`Unable to locate package [${chalk.magenta(pkg)}]`))\n process.exit(1)\n }\n\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles(workspace.location)\n\n console.log(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lintAll = async () => {\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles('./**/*.*')\n\n console.log(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lint = async ({ pkg }: LintParams = {}) => {\n return pkg ? await lintPackage({ pkg }) : runSteps('Lint-Caching [All]', [['yarn', ['eslint', '.', '--cache']]])\n}\n"],"mappings":"AAAA,OAAO,WAAW;AAClB,SAAS,cAAc;AAEvB,SAAS,UAAU,sBAAsB;AAYlC,MAAM,cAAc,OAAO,EAAE,IAAI,MAAkB;AACxD,QAAM,YAAY,eAAe,EAAE,KAAK,CAACA,eAAcA,WAAU,SAAS,GAAG;AAC7E,MAAI,CAAC,WAAW;AACd,YAAQ,MAAM,MAAM,IAAI,6BAA6B,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC;AAC3E,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,SAAS,IAAI,OAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU,QAAQ;AAE7D,UAAQ,IAAI,WAAW;AAEvB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,UAAU,YAAY;AACjC,QAAM,SAAS,IAAI,OAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU;AAErD,UAAQ,IAAI,WAAW;AAEvB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,OAAO,OAAO,EAAE,IAAI,IAAgB,CAAC,MAAM;AACtD,SAAO,MAAM,MAAM,YAAY,EAAE,IAAI,CAAC,IAAI,SAAS,sBAAsB,CAAC,CAAC,QAAQ,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC;AACjH;","names":["workspace"]}
1
+ {"version":3,"sources":["../../src/actions/lint.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { ESLint } from 'eslint'\n\nimport { runSteps, yarnWorkspaces } from '../lib'\n\nexport interface LintParams {\n pkg?: string\n verbose?: boolean\n}\n\nexport interface LintPackageParams {\n pkg: string\n verbose?: boolean\n}\n\nconst dumpMessages = (lintResults: ESLint.LintResult[]) => {\n const colors: ('white' | 'red' | 'yellow')[] = ['white', 'yellow', 'red']\n const severity: string[] = ['none', 'warning', 'error']\n\n lintResults.forEach((lintResult) => {\n if (lintResult.messages.length > 0) {\n console.log(chalk.gray(`${lintResult.filePath}`))\n lintResult.messages.forEach((message) => {\n console.log(\n chalk.gray(`\\t${message.line}:${message.column}`),\n chalk[colors[message.severity]](`\\t${severity[message.severity]}`),\n chalk.white(`\\t${message.message}`),\n chalk.gray(`\\t${message.ruleId}`),\n )\n })\n }\n })\n}\n\nexport const lintPackage = async ({ pkg }: LintParams) => {\n const workspace = yarnWorkspaces().find((workspace) => workspace.name === pkg)\n if (!workspace) {\n console.error(chalk.red(`Unable to locate package [${chalk.magenta(pkg)}]`))\n process.exit(1)\n }\n\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles(workspace.location)\n\n dumpMessages(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lintAll = async () => {\n const engine = new ESLint({ cache: true })\n\n const lintResults = await engine.lintFiles('./**/*.*')\n\n dumpMessages(lintResults)\n\n const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n\n return errorCount\n}\n\nexport const lint = async ({ pkg }: LintParams = {}) => {\n return pkg ? await lintPackage({ pkg }) : runSteps('Lint-Caching [All]', [['yarn', ['eslint', '.', '--cache']]])\n}\n"],"mappings":"AAAA,OAAO,WAAW;AAClB,SAAS,cAAc;AAEvB,SAAS,UAAU,sBAAsB;AAYzC,MAAM,eAAe,CAAC,gBAAqC;AACzD,QAAM,SAAyC,CAAC,SAAS,UAAU,KAAK;AACxE,QAAM,WAAqB,CAAC,QAAQ,WAAW,OAAO;AAEtD,cAAY,QAAQ,CAAC,eAAe;AAClC,QAAI,WAAW,SAAS,SAAS,GAAG;AAClC,cAAQ,IAAI,MAAM,KAAK,GAAG,WAAW,QAAQ,EAAE,CAAC;AAChD,iBAAW,SAAS,QAAQ,CAAC,YAAY;AACvC,gBAAQ;AAAA,UACN,MAAM,KAAK,IAAK,QAAQ,IAAI,IAAI,QAAQ,MAAM,EAAE;AAAA,UAChD,MAAM,OAAO,QAAQ,QAAQ,CAAC,EAAE,IAAK,SAAS,QAAQ,QAAQ,CAAC,EAAE;AAAA,UACjE,MAAM,MAAM,IAAK,QAAQ,OAAO,EAAE;AAAA,UAClC,MAAM,KAAK,IAAK,QAAQ,MAAM,EAAE;AAAA,QAClC;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;AAEO,MAAM,cAAc,OAAO,EAAE,IAAI,MAAkB;AACxD,QAAM,YAAY,eAAe,EAAE,KAAK,CAACA,eAAcA,WAAU,SAAS,GAAG;AAC7E,MAAI,CAAC,WAAW;AACd,YAAQ,MAAM,MAAM,IAAI,6BAA6B,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC;AAC3E,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,SAAS,IAAI,OAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU,QAAQ;AAE7D,eAAa,WAAW;AAExB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,UAAU,YAAY;AACjC,QAAM,SAAS,IAAI,OAAO,EAAE,OAAO,KAAK,CAAC;AAEzC,QAAM,cAAc,MAAM,OAAO,UAAU,UAAU;AAErD,eAAa,WAAW;AAExB,QAAM,aAAa,YAAY,OAAO,CAAC,MAAM,eAAe,OAAO,WAAW,YAAY,CAAC;AAE3F,SAAO;AACT;AAEO,MAAM,OAAO,OAAO,EAAE,IAAI,IAAgB,CAAC,MAAM;AACtD,SAAO,MAAM,MAAM,YAAY,EAAE,IAAI,CAAC,IAAI,SAAS,sBAAsB,CAAC,CAAC,QAAQ,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC;AACjH;","names":["workspace"]}
package/package.json CHANGED
@@ -66,7 +66,7 @@
66
66
  "@types/yargs": "^17.0.26",
67
67
  "@typescript-eslint/eslint-plugin": "^6.7.3",
68
68
  "@typescript-eslint/parser": "^6.7.3",
69
- "@xylabs/tsconfig": "~3.0.83",
69
+ "@xylabs/tsconfig": "~3.0.84",
70
70
  "chalk": "^4.1.2",
71
71
  "cosmiconfig": "^8.3.6",
72
72
  "cpy": "^8.1.2",
@@ -111,8 +111,8 @@
111
111
  "@types/license-checker": "^25.0.4",
112
112
  "@types/lodash": "^4.14.199",
113
113
  "@types/parse-git-config": "^3.0.2",
114
- "@xylabs/eslint-config": "^3.0.83",
115
- "@xylabs/tsconfig": "^3.0.83",
114
+ "@xylabs/eslint-config": "^3.0.84",
115
+ "@xylabs/tsconfig": "^3.0.84",
116
116
  "publint": "^0.2.3",
117
117
  "typescript": "^5.2.2"
118
118
  },
@@ -171,5 +171,5 @@
171
171
  "package-clean": "echo Not cleaning..."
172
172
  },
173
173
  "sideEffects": false,
174
- "version": "3.0.83"
174
+ "version": "3.0.84"
175
175
  }
@@ -13,6 +13,25 @@ export interface LintPackageParams {
13
13
  verbose?: boolean
14
14
  }
15
15
 
16
+ const dumpMessages = (lintResults: ESLint.LintResult[]) => {
17
+ const colors: ('white' | 'red' | 'yellow')[] = ['white', 'yellow', 'red']
18
+ const severity: string[] = ['none', 'warning', 'error']
19
+
20
+ lintResults.forEach((lintResult) => {
21
+ if (lintResult.messages.length > 0) {
22
+ console.log(chalk.gray(`${lintResult.filePath}`))
23
+ lintResult.messages.forEach((message) => {
24
+ console.log(
25
+ chalk.gray(`\t${message.line}:${message.column}`),
26
+ chalk[colors[message.severity]](`\t${severity[message.severity]}`),
27
+ chalk.white(`\t${message.message}`),
28
+ chalk.gray(`\t${message.ruleId}`),
29
+ )
30
+ })
31
+ }
32
+ })
33
+ }
34
+
16
35
  export const lintPackage = async ({ pkg }: LintParams) => {
17
36
  const workspace = yarnWorkspaces().find((workspace) => workspace.name === pkg)
18
37
  if (!workspace) {
@@ -24,7 +43,7 @@ export const lintPackage = async ({ pkg }: LintParams) => {
24
43
 
25
44
  const lintResults = await engine.lintFiles(workspace.location)
26
45
 
27
- console.log(lintResults)
46
+ dumpMessages(lintResults)
28
47
 
29
48
  const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)
30
49
 
@@ -36,7 +55,7 @@ export const lintAll = async () => {
36
55
 
37
56
  const lintResults = await engine.lintFiles('./**/*.*')
38
57
 
39
- console.log(lintResults)
58
+ dumpMessages(lintResults)
40
59
 
41
60
  const errorCount = lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)
42
61