Skip to content

Commit

Permalink
feat: add no-console rule (#32)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: If your code used to have `console` statements, now eslint will hate it.
  • Loading branch information
MahaZaid authored Apr 12, 2020
1 parent 8cec7d4 commit c0c90ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
{
"name": "Abdelrahman Elkady <abdelrahman-elkady>",
"email": "[email protected]"
},
{
"name": "Maha Zaid <MahaZaid>",
"email": "[email protected]"
}
],
"main": "./index",
Expand Down
2 changes: 2 additions & 0 deletions rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ module.exports = {
// disallow redundant `return await` statements
'no-return-await': 'error',

// disallows calls to methods of the console object
'no-console': 'error',
},
};

0 comments on commit c0c90ff

Please sign in to comment.