Skip to content

Commit

Permalink
Add more rules to weaken linter in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch committed Jan 10, 2022
1 parent 2147071 commit b2d18e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports = {

// weaken some rules in development mode
'no-multiple-empty-lines': process.env.NODE_ENV === 'development' ? 'warn' : 'error',
'no-unused-vars': process.env.NODE_ENV === 'development' ? 'warn' : 'error'
'no-unused-vars': process.env.NODE_ENV === 'development' ? 'warn' : 'error',
'space-before-blocks': process.env.NODE_ENV === 'development' ? 'warn' : 'error',
'space-before-function-paren': process.env.NODE_ENV === 'development' ? 'warn' : 'error',
'object-curly-spacing': process.env.NODE_ENV === 'development' ? 'warn' : 'error',
}
}

0 comments on commit b2d18e7

Please sign in to comment.