Skip to content

Commit

Permalink
chore: use es5 trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed May 18, 2017
1 parent 2e49f5e commit 0a20307
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "off",

"prettier/prettier": ["error", {"trailingComma": "all", "singleQuote": true}],
"prettier/prettier": ["error", {"trailingComma": "es5", "singleQuote": true}],
}
}
5 changes: 2 additions & 3 deletions example/rn-cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ module.exports = {
];
},
getBlacklistRE() {
/* eslint-disable prettier/prettier */
return blacklist([
new RegExp(
`^${escape(path.resolve(__dirname, '..', 'node_modules'))}\\/.*$`,
`^${escape(path.resolve(__dirname, '..', 'node_modules'))}\\/.*$`
),
new RegExp(
`^${escape(path.resolve(__dirname, '..', 'docs', 'node_modules'))}\\/.*$`,
`^${escape(path.resolve(__dirname, '..', 'docs', 'node_modules'))}\\/.*$`
),
]);
},
Expand Down
2 changes: 1 addition & 1 deletion example/src/RootNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ export default StackNavigator(
Expo.Constants.statusBarHeight,
},
},
},
}
);
2 changes: 1 addition & 1 deletion src/components/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Card extends Component<DefaultProps, Props, State> {
index,
total,
siblings,
}),
})
)}
</View>
</TouchableWithoutFeedback>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/CardActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CardActions = (props: Props) => {
{Children.map(props.children, child =>
React.cloneElement(child, {
compact: child.props.compact !== false,
}),
})
)}
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Portal/Portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class Portal extends PureComponent<void, Props, void> {
) {
throw new Error(
"Couldn't find portal manager in the context or props. " +
"You need to wrap your root component in '<PortalHost />'",
"You need to wrap your root component in '<PortalHost />'"
);
}
this._key = this.context[manager].mount(this.props);
Expand Down
2 changes: 1 addition & 1 deletion src/core/withTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function withTheme<T: *>(Comp: ReactClass<T>): ReactClass<T> {
if (typeof this.state.theme !== 'object' || this.state.theme === null) {
throw new Error(
"Couldn't find theme in the context or props. " +
"You need to wrap your component in '<ThemeProvider />' or pass a 'theme' prop",
"You need to wrap your component in '<ThemeProvider />' or pass a 'theme' prop"
);
}
}
Expand Down

0 comments on commit 0a20307

Please sign in to comment.