Skip to content

Commit

Permalink
Disallow console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 24, 2023
1 parent cbfb23d commit 4501314
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion website/src/js/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ ko.bindingHandlers.codeMirror = {
}

const hover = hoverTooltip((view, pos, side) => {
console.log('here');
const currentErrors: PHPStanError[] = allBindings.get('codeMirrorErrors');
const line = view.state.doc.lineAt(pos);
const lineErrors: string[] = [];
Expand Down
2 changes: 1 addition & 1 deletion website/src/js/merch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $(async () => {
merchSale: new MerchSaleViewModel(),
});
} catch (e) {
console.log(e);
console.error(e);
ko.applyBindings({
hasFatalError: true,
mainMenu: new MainMenuViewModel(),
Expand Down
2 changes: 1 addition & 1 deletion website/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
2
],
"max-line-length": [false],
"no-console": [false],
"no-console": [true, "log"],
"no-require-imports": false,
"no-var-requires": false,
"object-literal-sort-keys": false,
Expand Down

0 comments on commit 4501314

Please sign in to comment.