Fix linting

This commit is contained in:
Mikael Sand
2019-01-25 16:35:10 +02:00
parent f5cdc31934
commit 60988cfd06
4 changed files with 9 additions and 8 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
**/node_modules/ **/node_modules/
android/ Example/examples/
Example/android/ Example/android/
ios/
Example/ios/ Example/ios/
screenShoots/ screenShoots/
android/
ios/
lib/extract/transform.js
-1
View File
@@ -20,7 +20,6 @@ export default class Mask extends Shape {
const { const {
maskTransform, maskTransform,
transform, transform,
id,
x, x,
y, y,
width, width,
+4 -4
View File
@@ -89,11 +89,11 @@ export default class Svg extends Shape {
strokeMiterlimit, strokeMiterlimit,
} = stylesAndProps; } = stylesAndProps;
const w = parseInt(width); const w = parseInt(width, 10);
const h = parseInt(height); const h = parseInt(height, 10);
const dimensions = width && height ? { const dimensions = width && height ? {
width: isNaN(w) || width[width.length - 1] === '%' ? width : w, width: isNaN(w) || width[width.length - 1] === "%" ? width : w,
height: isNaN(h) || height[height.length - 1] === '%' ? height : h, height: isNaN(h) || height[height.length - 1] === "%" ? height : h,
flex: 0, flex: 0,
} : null; } : null;
+1 -1
View File
@@ -37,7 +37,7 @@ export default function extractGradient(props, parent) {
} }
const stops = []; const stops = [];
const childArray = React.Children.map(children, child => const childArray = Children.map(children, child =>
React.cloneElement(child, { React.cloneElement(child, {
parent, parent,
}), }),