CI: add eslint workflow in the CI (#3602)

Signed-off-by: kushthedude <kushthedude@gmail.com>
This commit is contained in:
Kush Trivedi 2021-02-10 18:48:49 +05:30 committed by GitHub
parent deb4b86451
commit f2d2be1356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ jobs:
- name: Lint with Prettier - name: Lint with Prettier
run: | run: |
cd ./main/tests/cypress cd ./main/tests/cypress
yarn check-lint yarn lint
- name: Test with Cypress on ${{ matrix.browser }} - name: Test with Cypress on ${{ matrix.browser }}
run: | run: |

View File

@ -7,8 +7,8 @@
"private": true, "private": true,
"scripts": { "scripts": {
"test": "cypress run --browser electron --headless --quiet", "test": "cypress run --browser electron --headless --quiet",
"lint": "prettier --write .", "fix-lint": "prettier --write . && eslint --fix .",
"check-lint": "prettier --check ." "lint": "prettier --check . && eslint ."
}, },
"dependencies": { "dependencies": {
"cypress": "6.4.0", "cypress": "6.4.0",