@ -20,7 +20,6 @@ module.exports = {
'@typescript-eslint/strict-boolean-expressions': 'off',
'comma-dangle': ['error', 'only-multiline'],
'no-mixed-operators': 'off',
eqeqeq: 'off',
'@typescript-eslint/semi': ['error', 'always'],
semi: ['error', 'always'],
}
@ -33,7 +33,7 @@ export function jsx (tag: string | FunctionComponent, data: VNodeData | null, ..
// tag is a function component
return tag(data, flatChildren);
} else {
if (flatChildren.length == 1 && !flatChildren[0].sel && flatChildren[0].text) {
if (flatChildren.length === 1 && !flatChildren[0].sel && flatChildren[0].text) {
// only child is a simple text node, pass as text for a simpler vtree
return h(tag, data, flatChildren[0].text);
@ -147,7 +147,7 @@ function post () {
setNextFrame(newStyle, 'opacity', '1');
// Animate old element
for (var key in (oldVnode as any).savedStyle) { // re-apply saved inherited properties
if (parseInt(key) != key as any as number) {
if (String(parseInt(key)) !== key) {
var ms = key.substring(0, 2) === 'ms';
var moz = key.substring(0, 3) === 'moz';
var webkit = key.substring(0, 6) === 'webkit';