oxlint-tui 1.0.9 → 1.0.10
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/package.json +1 -1
- package/tui.js +4 -1
package/package.json
CHANGED
package/tui.js
CHANGED
|
@@ -6,6 +6,7 @@ import readline from "readline";
|
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
|
|
8
8
|
const OXLINT_VERSION = "1.41.0";
|
|
9
|
+
const TSGOLINT_VERSION = "0.11.1";
|
|
9
10
|
|
|
10
11
|
const COLORS = {
|
|
11
12
|
reset: "\x1b[0m",
|
|
@@ -90,7 +91,9 @@ function runLint(type_aware) {
|
|
|
90
91
|
state.messageType = "info";
|
|
91
92
|
render();
|
|
92
93
|
|
|
93
|
-
const cmd =
|
|
94
|
+
const cmd = type_aware
|
|
95
|
+
? `npx --yes -p oxlint@${OXLINT_VERSION} -p oxlint-tsgolint@${TSGOLINT_VERSION} oxlint --type-aware`
|
|
96
|
+
: `npx --yes oxlint@${OXLINT_VERSION}`;
|
|
94
97
|
|
|
95
98
|
exec(cmd, (error, stdout, stderr) => {
|
|
96
99
|
const fullOutput = stdout + stderr;
|