Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
update pre-commit hook
  • Loading branch information
ElectronicBlueberry committed Jan 19, 2023
1 parent 658bc49 commit c3233c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.0 # Use the sha or tag you want to point at
rev: v2.7.1 # Use the sha or tag you want to point at
hooks:
- id: prettier
types: [file]
types_or: [javascript, jsx, ts, tsx, vue]
additional_dependencies:
- [email protected] # Workaround. See https://github.com/pre-commit/mirrors-prettier/issues/29
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 # Use the ref you want to point at
hooks:
Expand Down
5 changes: 1 addition & 4 deletions client/src/mvc/ui/ui-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ export var View = Backbone.View.extend({
if (this.options.buttons) {
var counter = 0;
$.each(this.options.buttons, (name, callback) => {
var $button = $("<button/>")
.attr("id", `button-${counter++}`)
.text(name)
.click(callback);
var $button = $("<button/>").attr("id", `button-${counter++}`).text(name).click(callback);
self.$buttons.append($button).append("&nbsp;");
self.buttonList[name] = $button;
});
Expand Down

0 comments on commit c3233c3

Please sign in to comment.