[lint] Update editorconfig linting:

- Add settings for comments.
- Remove custom settings that don’t work.
- Fix vendor JS file:
This commit is contained in:
Fabien Basmaison 2021-03-20 16:33:18 +01:00
parent 5c5fc98118
commit fa79070b59
3 changed files with 8 additions and 3 deletions

View file

@ -12,6 +12,11 @@ indent_style = space
insert_final_newline = true insert_final_newline = true
max_line_length = 100 max_line_length = 100
# C-style doc comments
block_comment_start = /*
block_comment = *
block_comment_end = */
[{bw-dev,fr-dev,LICENSE}] [{bw-dev,fr-dev,LICENSE}]
max_line_length = off max_line_length = off

View file

@ -19,5 +19,3 @@ jobs:
- name: EditorConfig - name: EditorConfig
uses: greut/eclint-action@v0 uses: greut/eclint-action@v0
with:
args: '-show_all_errors -exclude "bookwyrm/static/js/tabs.js"'

View file

@ -59,7 +59,9 @@ class TabGroup {
} }
initPanels() { initPanels() {
let selectedPanelId = this.tablist.querySelector('[role="tab"][aria-selected="true"]').getAttribute("aria-controls"); let selectedPanelId = this.tablist
.querySelector('[role="tab"][aria-selected="true"]')
.getAttribute("aria-controls");
for(let panel of this.panels) { for(let panel of this.panels) {
if(panel.getAttribute("id") !== selectedPanelId) { if(panel.getAttribute("id") !== selectedPanelId) {
panel.setAttribute("hidden", ""); panel.setAttribute("hidden", "");