Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Jan 25, 2019
1 parent f5cdc31 commit 60988cf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
**/node_modules/
android/
Example/examples/
Example/android/
ios/
Example/ios/
screenShoots/
android/
ios/
lib/extract/transform.js
1 change: 0 additions & 1 deletion elements/Mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default class Mask extends Shape {
const {
maskTransform,
transform,
id,
x,
y,
width,
Expand Down
8 changes: 4 additions & 4 deletions elements/Svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export default class Svg extends Shape {
strokeMiterlimit,
} = stylesAndProps;

const w = parseInt(width);
const h = parseInt(height);
const w = parseInt(width, 10);
const h = parseInt(height, 10);
const dimensions = width && height ? {
width: isNaN(w) || width[width.length - 1] === '%' ? width : w,
height: isNaN(h) || height[height.length - 1] === '%' ? height : h,
width: isNaN(w) || width[width.length - 1] === "%" ? width : w,
height: isNaN(h) || height[height.length - 1] === "%" ? height : h,
flex: 0,
} : null;

Expand Down
2 changes: 1 addition & 1 deletion lib/extract/extractGradient.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function extractGradient(props, parent) {
}

const stops = [];
const childArray = React.Children.map(children, child =>
const childArray = Children.map(children, child =>
React.cloneElement(child, {
parent,
}),
Expand Down

0 comments on commit 60988cf

Please sign in to comment.