Skip to content

Commit

Permalink
Merge pull request #10 from BarthPaleologue/mie-ozone
Browse files Browse the repository at this point in the history
Fix lint error
  • Loading branch information
BarthPaleologue authored Nov 4, 2024
2 parents 9c2cf69 + b726649 commit f30ef9e
Showing 1 changed file with 18 additions and 31 deletions.
49 changes: 18 additions & 31 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,27 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# ESLint is a tool for identifying and reporting on patterns
# found in ECMAScript/JavaScript code.
# More details at https://github.com/eslint/eslint
# and https://eslint.org

name: ESLint

name: ESLint Check
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '42 11 * * 4'

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
timeout-minutes: 20
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install ESLint
run: |
npm install eslint@8.10.0
- name: Run ESLint
run: npx eslint ./src
--config .eslintrc.json
--ext .js,.jsx,.ts,.tsx
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm run lint:check

0 comments on commit f30ef9e

Please sign in to comment.