Add eslint

This commit is contained in:
Horcrux
2016-05-04 11:24:05 +08:00
parent a821999f67
commit be8c273adf
31 changed files with 316 additions and 94 deletions
+1 -1
View File
@@ -20,4 +20,4 @@ export {
LINEAR_GRADIENT,
RADIAL_GRADIENT,
PATTERN
}
};
+1 -1
View File
@@ -44,4 +44,4 @@ export default function (props) {
export {
set,
remove
}
};
+1 -1
View File
@@ -8,7 +8,7 @@ export default function(props, options = {stroke: true, join: true, transform: t
if (props.visible === false) {
return {
opacity: 0
}
};
}
let extractedProps = {
opacity: +props.opacity || 1
+1 -1
View File
@@ -89,5 +89,5 @@ export default function(props) {
childrenAsString(props.children)
),
path: props.path ? new SerializablePath(props.path).toJSON() : undefined
}
};
}
+1 -1
View File
@@ -20,7 +20,7 @@ export default function({viewbox, width, height, preserveAspectRatio, x: dx, y:
y: 0,
scaleX: 0,
scaleY: 0
}
};
}
let vx = +parts[0] || 0;
+2 -2
View File
@@ -1,6 +1,6 @@
import rgba from '../rgba';
let patterns = {};
import patternReg from './patternReg'
import patternReg from './patternReg';
import {LinearGradientGenerator} from '../../elements/LinearGradient';
import {RadialGradientGenerator} from '../../elements/RadialGradient';
@@ -21,7 +21,7 @@ function remove(id) {
export {
set,
remove
}
};
export default function(patternSting, opacity, svgId) {
if (isGradient(patternSting)) {