mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-20 03:00:57 -05:00
fix(eslint): load node env by default (fix #806)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module.exports = api => {
|
||||
const options = {
|
||||
extensions: ['.js', '.vue'],
|
||||
globals: ['process'],
|
||||
envs: ['node'],
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||
|
||||
Reference in New Issue
Block a user