From 01771489d52b68f7cf3f174f4f987d310e45007c Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 18 Mar 2020 16:27:08 +0100 Subject: [PATCH] cli: limit to 0 warnings and use codeframe format for lint tasks --- packages/cli/src/commands/app/lint.ts | 2 +- packages/cli/src/commands/plugin/lint.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/app/lint.ts b/packages/cli/src/commands/app/lint.ts index 1f1e4e6251..bacd66f1c7 100644 --- a/packages/cli/src/commands/app/lint.ts +++ b/packages/cli/src/commands/app/lint.ts @@ -18,7 +18,7 @@ import { Command } from 'commander'; import { run } from '../../helpers/run'; export default async (cmd: Command) => { - const args = ['lint']; + const args = ['lint', '--max-warnings=0', '--format=codeframe']; if (cmd.fix) { args.push('--fix'); } diff --git a/packages/cli/src/commands/plugin/lint.ts b/packages/cli/src/commands/plugin/lint.ts index 1f1e4e6251..bacd66f1c7 100644 --- a/packages/cli/src/commands/plugin/lint.ts +++ b/packages/cli/src/commands/plugin/lint.ts @@ -18,7 +18,7 @@ import { Command } from 'commander'; import { run } from '../../helpers/run'; export default async (cmd: Command) => { - const args = ['lint']; + const args = ['lint', '--max-warnings=0', '--format=codeframe']; if (cmd.fix) { args.push('--fix'); }