mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
[lint] Update editorconfig linting:
- Add settings for comments. - Remove custom settings that don’t work. - Fix vendor JS file:
This commit is contained in:
parent
5c5fc98118
commit
fa79070b59
3 changed files with 8 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
2
.github/workflows/linters-global.yaml
vendored
2
.github/workflows/linters-global.yaml
vendored
|
@ -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"'
|
|
||||||
|
|
|
@ -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", "");
|
||||||
|
|
Loading…
Reference in a new issue