Skip to content

Commit

Permalink
chore(eslint): move inline eslint rules into config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jun 16, 2020
1 parent bd9fbbf commit 99fe5be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
}
],
"prefer-destructuring": "off",
"promise/always-return": "off",
"promise/catch-or-return": [
"error",
{
"allowThen": true
}

],
"promise/prefer-await-to-then": "warn",
"promise/prefer-await-to-callbacks": "warn"
}
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable promise/always-return */
/* eslint-disable promise/catch-or-return */
const os = require('os');
const path = require('path');
const { execFile } = require('child_process');
Expand Down

0 comments on commit 99fe5be

Please sign in to comment.