mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +00:00
Updating linting rules and fixing bug
This commit is contained in:
@@ -43,7 +43,7 @@ export default class MultiPanel extends HTMLElement {
|
|||||||
private _onKeyDown(event: KeyboardEvent) {
|
private _onKeyDown(event: KeyboardEvent) {
|
||||||
const selectedEl = document.activeElement;
|
const selectedEl = document.activeElement;
|
||||||
const heading = getClosestHeading(selectedEl);
|
const heading = getClosestHeading(selectedEl);
|
||||||
|
|
||||||
// if keydown event is not on heading element, ignore
|
// if keydown event is not on heading element, ignore
|
||||||
if (!heading) return;
|
if (!heading) return;
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"function-name": false,
|
"function-name": false,
|
||||||
"variable-name": [true, "check-format", "allow-leading-underscore"],
|
"variable-name": [true, "check-format", "allow-leading-underscore"],
|
||||||
"no-duplicate-imports": false,
|
"no-duplicate-imports": false,
|
||||||
|
"prefer-template": [true, "allow-single-concat"],
|
||||||
"import-name": false
|
"import-name": false
|
||||||
},
|
},
|
||||||
"linterOptions": {
|
"linterOptions": {
|
||||||
|
|||||||
Reference in New Issue
Block a user