Skip to content

Commit

Permalink
update eslint brace-style rule
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Mar 12, 2017
1 parent a473449 commit 19b716c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -26,6 +26,7 @@
],
"arrow-parens": 0,
"block-spacing": 1,
"brace-style": [1, "stroustrup"],
"camelcase": 0,
"class-methods-use-this": 0,
"comma-dangle": ["warn", {
Expand Down
3 changes: 2 additions & 1 deletion config/tools.js
Expand Up @@ -65,7 +65,8 @@ if (args[0] === 'commits') {

if ($local === $remote) {
console.log(chalk.green('✔ Repo is up-to-date!'));
} else if ($local === $base) {
}
else if ($local === $base) {
console.error(chalk.red('⊘ Error: You need to pull, there are new commits.'));
process.exit(1);
}
Expand Down
6 changes: 4 additions & 2 deletions demo/component.jsx
Expand Up @@ -36,11 +36,13 @@ export default class Demo extends React.Component {
this.setState({
[target.name]: target.value.replace(/ /g, ''),
});
} else if (target.name === 'expiry') {
}
else if (target.name === 'expiry') {
this.setState({
[target.name]: target.value.replace(/ |\//g, ''),
});
} else {
}
else {
this.setState({
[target.name]: target.value,
});
Expand Down
6 changes: 4 additions & 2 deletions src/index.jsx
Expand Up @@ -102,7 +102,8 @@ class CreditCards extends React.Component {
newCardArray.push(d);
}
});
} else {
}
else {
newCardArray.push(this.hipercard);
newCardArray = newCardArray.concat(Payment.getCardArray());
}
Expand All @@ -119,7 +120,8 @@ class CreditCards extends React.Component {

if (type === 'amex') {
maxLength = 15;
} else if (type === 'dinersclub') {
}
else if (type === 'dinersclub') {
maxLength = 14;
} else if (type === 'hipercard' && number.startsWith('3841')) {
maxLength = 19;
Expand Down

0 comments on commit 19b716c

Please sign in to comment.