Skip to content

Commit

Permalink
fix(eslint app mig): console to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Nov 5, 2019
1 parent 3310c8d commit f4f1ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@nodepack/plugin-eslint/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit f4f1ad1

Please sign in to comment.