Skip to content

Commit

Permalink
Merge pull request #271 from JakobMiksch/relax-linter
Browse files Browse the repository at this point in the history
Add more rules to weaken linter in dev mode
  • Loading branch information
JakobMiksch authored Feb 2, 2022
2 parents abb2b35 + 577f010 commit 8ef1a20
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 8ef1a20

Please sign in to comment.