CI: add eslint workflow in the CI (#3602)
Signed-off-by: kushthedude <kushthedude@gmail.com>
This commit is contained in:
parent
deb4b86451
commit
f2d2be1356
2
.github/workflows/pull_request.yml
vendored
2
.github/workflows/pull_request.yml
vendored
@ -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: |
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user