Skip to content

Commit

Permalink
feat: ease the default no-console severity to warn (#5241)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Mar 19, 2020
1 parent a1782f9 commit 41cf5e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/eslintOptions.js
Expand Up @@ -7,8 +7,8 @@ exports.config = (api, preset) => {
ecmaVersion: 2020
},
rules: {
'no-console': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'error' : 'off'`),
'no-debugger': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'error' : 'off'`)
'no-console': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'warn' : 'off'`),
'no-debugger': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'warn' : 'off'`)
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-service-global/lib/globalConfigPlugin.js
Expand Up @@ -114,8 +114,8 @@ module.exports = function createConfigPlugin (context, entry, asLib) {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
}))
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui-addon-widgets/.eslintrc.js
Expand Up @@ -8,8 +8,8 @@ module.exports = {
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
Expand Down

0 comments on commit 41cf5e1

Please sign in to comment.