fix eslint issues

This commit is contained in:
RVKen
2017-06-29 04:37:19 +02:00
parent cdea835bf6
commit d36f0a6dbd
48 changed files with 105 additions and 56 deletions

View File

@@ -343,7 +343,7 @@ export function highlight (el) {
while (![
1, // 0: whitespace
// 1: operator or braces
/[\/{}[(\-+*=<>:;|\\.,?!&@~]/[test](chr),
/[\/{}[(\-+*=<>:;|\\.,?!&@~]/[test](chr), // eslint-disable-line no-useless-escape
/[\])]/[test](chr), // 2: closing brace
/[$\w]/[test](chr), // 3: (key)word
chr == "/" && // 4: regex