Updating linting rules and fixing bug

This commit is contained in:
Jake Archibald
2018-10-02 14:56:20 +01:00
parent 37f5c0dd76
commit 765cc213d2
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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": {