Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
feat(eslint): add curly rule
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Jul 18, 2018
1 parent 29db71a commit 051ad22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
],
'prefer-const': 2,
'arrow-body-style': [2, 'as-needed'],
curly: [2, 'multi'],

// unicorn
'unicorn/no-fn-reference-in-iterator': 0, // Allows [].map(func)
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ const runCommand = (command, args, { resolveCommand = true } = {}) => {
)

if (result.signal || result.status) {
if (result.signal === 'SIGKILL') {
if (result.signal === 'SIGKILL')
console.log(
'Failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.'
)
} else if (result.signal === 'SIGTERM') {
else if (result.signal === 'SIGTERM')
console.log(
'Failed because the process exited too early. Someone might have called `kill` or `killall`, or the system could be shutting down.'
)
}

process.exit(1)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-unicorn": "^3.0.1",
"lint-staged": "^6.1.0",
"prettier": "^1.13.4",
"prettier": "^1.13.7",
"stylelint": "^8.4.0",
"stylelint-config-standard": "^18.0.0",
"stylelint-order": "^0.8.0",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3600,9 +3600,9 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier@^1.13.4:
version "1.13.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.4.tgz#31bbae6990f13b1093187c731766a14036fa72e6"
prettier@^1.13.7:
version "1.13.7"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.7.tgz#850f3b8af784a49a6ea2d2eaa7ed1428a34b7281"

pretty-format@^21.2.1:
version "21.2.1"
Expand Down

0 comments on commit 051ad22

Please sign in to comment.