Fix lint errors

This commit is contained in:
Karina Kwiatek 2021-12-23 01:32:59 +01:00
parent 05ed214367
commit abe33a831f
2 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ export default (): void => {
rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => {
const button = entry.querySelector('button')
button.onclick = createDeleteEvent(entry, button)
})
});
const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement;
const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement;

View File

@ -7,18 +7,18 @@
- @rules.each do |rule|
.form-group
.input-group
%input.form-control{disabled: true, value: rule.muted_phrase}
%input.form-control{ disabled: true, value: rule.muted_phrase }
.input-group-append
%button.btn.btn-danger{type: 'button', data: {id: rule.id}} Remove
%button.btn.btn-danger{ type: 'button', data: { id: rule.id } } Remove
.form-group
%form
.input-group
%input.form-control#new-rule-text{placeholder: 'Add a new muted word...'}
%input.form-control#new-rule-text{ placeholder: 'Add a new muted word...' }
.input-group-append
%button.btn.btn-primary#new-rule-submit{type: 'submit'} Add
%button.btn.btn-primary#new-rule-submit{ type: 'submit' } Add
%template#rule-template
.form-group
.input-group
%input.form-control{disabled: true}
%input.form-control{ disabled: true }
.input-group-append
%button.btn.btn-danger{type: 'button'} Remove
%button.btn.btn-danger{ type: 'button' } Remove