Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Sep 27, 2021
1 parent 7263ffe commit 875d375
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"node": true
},
"parserOptions": {
"ecmaVersion": 6
"ecmaVersion": 8
},
"rules": {
"block-spacing": "error",
Expand All @@ -18,6 +18,10 @@
"quotes": ["error", "single"],
"semi": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"]
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}]
}
}
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
env:
SHELL: "/bin/bash"

- name: Lint
run: npm run lint

- name: Submit coverage
uses: coverallsapp/github-action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions src/concurrently.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ module.exports = (commands, options) => {
return {
commands,
onFinishCallbacks: _.concat(onFinishCallbacks, onFinish ? [onFinish] : [])
}
};
},
{ commands, onFinishCallbacks: [] }
);
commands = handleResult.commands
commands = handleResult.commands;

const commandsLeft = commands.slice();
const maxProcesses = Math.max(1, Number(options.maxProcesses) || commandsLeft.length);
Expand Down
2 changes: 1 addition & 1 deletion src/concurrently.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ it('runs onFinish hook after all commands run', async () => {

expect(controllers[0].onFinish).toHaveBeenCalled();
expect(controllers[1].onFinish).toHaveBeenCalled();
})
});
2 changes: 1 addition & 1 deletion src/flow-control/fixtures/fake-handler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const BaseHandler = require('../base-handler')
const BaseHandler = require('../base-handler');

module.exports = class FakeHandler extends BaseHandler {
constructor() {
Expand Down

0 comments on commit 875d375

Please sign in to comment.