Skip to content

Commit

Permalink
chore: cleaning up eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Jun 13, 2023
1 parent f01f4e6 commit 3ebd2d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "@readme/eslint-config",
"rules": {
"no-console": ["error", { "allow": ["log", "warn", "error"] }],
"no-param-reassign": "off",
"no-underscore-dangle": "off"
}
}
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const app = express();

// Get project settings via ReadMe API
require('./lib/readme')(app).catch(err => {
// eslint-disable-next-line no-console
console.error(err);
process.exit(1);
});
Expand Down Expand Up @@ -78,6 +79,8 @@ app.get('/hoot/:id', (req, res) => res.render('home', { hoot: req.params.id }));
app.get('/@:user', (req, res) => res.render('home', { username: req.params.user }));

app.listen(utils.getPort(), () => {
// eslint-disable-next-line no-console
console.log(`Hoot app started at ${utils.getBaseUrl()}`);
// eslint-disable-next-line no-console
console.log(`Listening on port ${utils.getPort()}`);
});
1 change: 1 addition & 0 deletions lib/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = async app => {
} else {
error = await err.json();
}
// eslint-disable-next-line no-console
console.error(`Error validating the ReadMe API Key in your .env: ${error.message}`);
throw new Error(error.suggestion);
}
Expand Down

0 comments on commit 3ebd2d0

Please sign in to comment.