mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
TSLint: re-enable no-consecutive-blank-lines rule
Deactivated in excmds.ts as it is used to generate .excmds_{background,content}.generated.ts which are full of consecutive blank lines.
This commit is contained in:
parent
15b627c340
commit
7240444d9a
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
/* tslint:disable:array-type */
|
||||
/* tslint:disable:comment-format */
|
||||
/* tslint:disable:no-consecutive-blank-lines */
|
||||
// '//#' is a start point for a simple text-replacement-type macro. See excmds_macros.py
|
||||
|
||||
/** # Tridactyl help page
|
||||
|
@ -607,7 +608,7 @@ export async function nativeinstall() {
|
|||
//#background
|
||||
export async function source(...fileArr: string[]) {
|
||||
const file = fileArr.join(" ") || undefined
|
||||
if (await Native.nativegate("0.1.3") && !(await rc.source(file))) {
|
||||
if ((await Native.nativegate("0.1.3")) && !(await rc.source(file))) {
|
||||
logger.error("Could not find RC file")
|
||||
}
|
||||
}
|
||||
|
@ -1757,7 +1758,7 @@ export function focusinput(nth: number | string) {
|
|||
// either a number (not special) or we failed to find a special input when
|
||||
// asked and falling back is acceptable
|
||||
if ((!inputToFocus || !document.contains(inputToFocus)) && fallbackToNumeric) {
|
||||
let index = isNaN(nth as number) ? 0 : nth as number
|
||||
let index = isNaN(nth as number) ? 0 : (nth as number)
|
||||
inputToFocus = DOM.getNthElement(INPUTTAGS_selectors, index, [DOM.isSubstantial])
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
"no-big-function": false,
|
||||
"no-commented-code": false,
|
||||
"no-conditional-assignment": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-console": false,
|
||||
"no-construct": false,
|
||||
"no-dead-store": false,
|
||||
|
|
Loading…
Add table
Reference in a new issue