Skip to content

Commit

Permalink
Chore: update code linting action (#3693)
Browse files Browse the repository at this point in the history
* Chore: update code linting action

* Fix tests
  • Loading branch information
katspaugh authored May 10, 2024
1 parent 11bc0e1 commit 5e97f27
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/workflows/yarn

- uses: Maggi64/eslint-plus-action@master
- name: Run lint
run: npm run lint:report
continue-on-error: true

- name: Annotate code with linting results
uses: ataylorme/eslint-annotate-action@v3
with:
npmInstall: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
report-json: "eslint_report.json"
4 changes: 2 additions & 2 deletions cypress/e2e/basic.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ describe('WaveSurfer basic tests', () => {
expect(peaksC.length).to.equal(1)
expect(peaksC[0].length).to.equal(8000)
expect(peaksC[0][0]).to.equal(0.0117)
expect(peaksC[0][99]).to.equal(0.01)
expect(peaksC[0][100]).to.equal(0.0161)
expect(peaksC[0][99]).to.equal(0.0076)
expect(peaksC[0][100]).to.equal(0.01)
})
})

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"build": "rm -rf dist && tsc && rollup -c",
"prepublishOnly": "npm run build",
"lint": "eslint --ext .ts src --fix",
"lint:report": "eslint --output-file eslint_report.json --format json --ext .ts src",
"prettier": "prettier -w '**/*.{js,ts,css}' --ignore-path .gitignore",
"make-plugin": "./scripts/plugin.sh",
"cypress": "cypress open --e2e",
Expand Down

0 comments on commit 5e97f27

Please sign in to comment.