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:
glacambre 2019-04-03 07:14:57 +02:00
parent 15b627c340
commit 7240444d9a
No known key found for this signature in database
GPG key ID: B9625DB1767553AC
2 changed files with 3 additions and 3 deletions

View file

@ -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])
}

View file

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