Skip to content

Commit

Permalink
Merge pull request #7404 from stopfstedt/no-console
Browse files Browse the repository at this point in the history
prevent console function calls by default from passing linting.
  • Loading branch information
dartajax committed Sep 13, 2023
2 parents 8f78cd6 + 759d166 commit 65e3df8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
'ember/no-classic-components': 0,
'ember/no-component-lifecycle-hooks': 0,
'ember/no-new-mixins': 0,
'no-console': 1,
},
overrides: [
// node files
Expand Down
2 changes: 2 additions & 0 deletions app/utils/launch-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ export async function launchWorker() {
while (registration.active?.state !== 'activated') {
await new Promise((resolve) => setTimeout(resolve, 10));
}
// eslint-disable-next-line no-console
console.log('☀️ Ilios Service worker registered successfully');
} catch (err) {
// eslint-disable-next-line no-console
console.log('😥 Ilios Service worker registration failed: ', err);
}
}

0 comments on commit 65e3df8

Please sign in to comment.