Fix lint warnings
This commit is contained in:
parent
592008812a
commit
d212129f7c
|
@ -126,7 +126,7 @@
|
|||
}
|
||||
|
||||
function expression(stream, state) {
|
||||
let match;
|
||||
var match;
|
||||
if (stream.match(/[[]/)) {
|
||||
state.soyState.push("list-literal");
|
||||
state.lookupVariables = false;
|
||||
|
@ -395,7 +395,7 @@
|
|||
}
|
||||
stream.next();
|
||||
return null;
|
||||
|
||||
|
||||
case "map-value":
|
||||
if (stream.peek() == ")" || stream.peek() == "," || stream.match(/^[:)]/)) {
|
||||
state.soyState.pop();
|
||||
|
|
|
@ -64,11 +64,11 @@
|
|||
'[keyword {] [atom 0x1F00BBEA] [keyword }]');
|
||||
|
||||
MT('param-type-record',
|
||||
'[keyword {@param] [def record]: [[[property foo]: [type bool], [property bar]: [type int] ]][keyword }]',
|
||||
'[keyword {@param] [def record]: [[[property foo]: [type bool], [property bar]: [type int] ]][keyword }]'
|
||||
);
|
||||
|
||||
MT('param-type-map',
|
||||
'[keyword {@param] [def unknown]: [type map]<[type string], [type bool]>[keyword }]',
|
||||
'[keyword {@param] [def unknown]: [type map]<[type string], [type bool]>[keyword }]'
|
||||
);
|
||||
|
||||
MT('param-type-list',
|
||||
|
@ -76,14 +76,14 @@
|
|||
);
|
||||
|
||||
MT('param-type-any',
|
||||
'[keyword {@param] [def unknown]: [type ?][keyword }]',
|
||||
'[keyword {@param] [def unknown]: [type ?][keyword }]'
|
||||
);
|
||||
|
||||
MT('param-type-nested',
|
||||
'[keyword {@param] [def a]: ' +
|
||||
'[type list]<[[[property a]: [type int], ' +
|
||||
'[property b]: [type map]<[type string], ' +
|
||||
'[type bool]>]]>][keyword }]',);
|
||||
'[type bool]>]]>][keyword }]');
|
||||
|
||||
MT('undefined-var',
|
||||
'[keyword {][variable-2&error $var]');
|
||||
|
|
|
@ -56,7 +56,7 @@ export function onDrop(e) {
|
|||
markAsReadAndPasteIfAllFilesAreRead()
|
||||
return
|
||||
}
|
||||
text[i] = content;
|
||||
text[i] = content
|
||||
markAsReadAndPasteIfAllFilesAreRead()
|
||||
}
|
||||
reader.readAsText(file)
|
||||
|
|
Loading…
Reference in New Issue