Skip to content

Commit 875d375

Browse files
committedSep 27, 2021
Fix linting
1 parent 7263ffe commit 875d375

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed
 

‎.eslintrc.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"node": true
66
},
77
"parserOptions": {
8-
"ecmaVersion": 6
8+
"ecmaVersion": 8
99
},
1010
"rules": {
1111
"block-spacing": "error",
@@ -18,6 +18,10 @@
1818
"quotes": ["error", "single"],
1919
"semi": "error",
2020
"space-before-blocks": "error",
21-
"space-before-function-paren": ["error", "never"]
21+
"space-before-function-paren": ["error", {
22+
"anonymous": "never",
23+
"named": "never",
24+
"asyncArrow": "always"
25+
}]
2226
}
2327
}

‎.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
env:
3636
SHELL: "/bin/bash"
3737

38+
- name: Lint
39+
run: npm run lint
40+
3841
- name: Submit coverage
3942
uses: coverallsapp/github-action@master
4043
with:

‎src/concurrently.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ module.exports = (commands, options) => {
5555
return {
5656
commands,
5757
onFinishCallbacks: _.concat(onFinishCallbacks, onFinish ? [onFinish] : [])
58-
}
58+
};
5959
},
6060
{ commands, onFinishCallbacks: [] }
6161
);
62-
commands = handleResult.commands
62+
commands = handleResult.commands;
6363

6464
const commandsLeft = commands.slice();
6565
const maxProcesses = Math.max(1, Number(options.maxProcesses) || commandsLeft.length);

‎src/concurrently.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ it('runs onFinish hook after all commands run', async () => {
183183

184184
expect(controllers[0].onFinish).toHaveBeenCalled();
185185
expect(controllers[1].onFinish).toHaveBeenCalled();
186-
})
186+
});

‎src/flow-control/fixtures/fake-handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const BaseHandler = require('../base-handler')
1+
const BaseHandler = require('../base-handler');
22

33
module.exports = class FakeHandler extends BaseHandler {
44
constructor() {

0 commit comments

Comments
 (0)
Please sign in to comment.