diff --git a/.eslintrc b/.eslintrc index eb9902d..bbc4d64 100755 --- a/.eslintrc +++ b/.eslintrc @@ -26,6 +26,7 @@ ], "arrow-parens": 0, "block-spacing": 1, + "brace-style": [1, "stroustrup"], "camelcase": 0, "class-methods-use-this": 0, "comma-dangle": ["warn", { diff --git a/config/tools.js b/config/tools.js index 9e94b90..0745be4 100755 --- a/config/tools.js +++ b/config/tools.js @@ -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); } diff --git a/demo/component.jsx b/demo/component.jsx index 0b6d3d5..d71404b 100644 --- a/demo/component.jsx +++ b/demo/component.jsx @@ -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, }); diff --git a/src/index.jsx b/src/index.jsx index 9bd5e4a..c1b993f 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -102,7 +102,8 @@ class CreditCards extends React.Component { newCardArray.push(d); } }); - } else { + } + else { newCardArray.push(this.hipercard); newCardArray = newCardArray.concat(Payment.getCardArray()); } @@ -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;