You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: npm-packages/convex/eslint.config.mjs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,14 @@ export default [
155
155
"Use a `Filesystem` implementation like `nodeFs` instead of Node's 'fs/promises' package directly. Additionally, use synchronous filesystem IO within our CLI.",
156
156
},
157
157
],
158
+
paths: [
159
+
{
160
+
name: "chalk",
161
+
importNames: ["default"],
162
+
message:
163
+
"Import { chalkStderr } from 'chalk' instead of the default chalk import. Use chalkStderr for stderr output (most cases). Only use default chalk with an eslint-disable comment if formatting text for stdout (e.g., logOutput() or console.log).",
@@ -36,21 +36,21 @@ function warnCrossFilesystem(dstPath: string) {
36
36
// It's hard for these to use `logMessage` without creating a circular dependency, so just log directly.
37
37
// eslint-disable-next-line no-console
38
38
console.warn(
39
-
chalk.yellow(
39
+
chalkStderr.yellow(
40
40
`Temporary directory '${tmpDirRoot}' and project directory '${dstDir}' are on different filesystems.`,
41
41
),
42
42
);
43
43
// eslint-disable-next-line no-console
44
44
console.warn(
45
-
chalk.gray(
46
-
` If you're running into errors with other tools watching the project directory, override the temporary directory location with the ${chalk.bold(
45
+
chalkStderr.gray(
46
+
` If you're running into errors with other tools watching the project directory, override the temporary directory location with the ${chalkStderr.bold(
47
47
tmpDirOverrideVar,
48
48
)} environment variable.`,
49
49
),
50
50
);
51
51
// eslint-disable-next-line no-console
52
52
console.warn(
53
-
chalk.gray(
53
+
chalkStderr.gray(
54
54
` Be sure to pick a temporary directory that's on the same filesystem as your project.`,
@@ -41,8 +41,8 @@ export const dashboard = new Command("dashboard")
41
41
);
42
42
43
43
if(deployment.deploymentFields===null){
44
-
constmsg=`Self-hosted deployment configured.\n\`${chalk.bold("npx convex dashboard")}\` is not supported for self-hosted deployments.\nSee self-hosting instructions for how to self-host the dashboard.`;
45
-
logMessage(chalk.yellow(msg));
44
+
constmsg=`Self-hosted deployment configured.\n\`${chalkStderr.bold("npx convex dashboard")}\` is not supported for self-hosted deployments.\nSee self-hosting instructions for how to self-host the dashboard.`;
0 commit comments