From f4f1ad1518061d318785e41eef7d9f070c988439 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 5 Nov 2019 18:52:43 +0100 Subject: [PATCH] fix(eslint app mig): console to warn --- packages/@nodepack/plugin-eslint/src/options.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@nodepack/plugin-eslint/src/options.ts b/packages/@nodepack/plugin-eslint/src/options.ts index e08e668..8bac515 100644 --- a/packages/@nodepack/plugin-eslint/src/options.ts +++ b/packages/@nodepack/plugin-eslint/src/options.ts @@ -23,9 +23,9 @@ export function createDefaultConfig (api: MigratorOperationAPI) { settings: {}, rules: { // @ts-ignore - 'no-console': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'error' : 'off'`), + 'no-console': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'warn' : 'off'`), // @ts-ignore - 'no-debugger': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'error' : 'off'`), + 'no-debugger': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'warn' : 'off'`), }, } if (api.hasPlugin('typescript')) {