Skip to content

Commit

Permalink
insert eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbarrile01 committed Nov 19, 2024
1 parent 03f73a5 commit e11fe9c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/eslint-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "ESLint"

on:
pull_request:
branches:
- develop
- main
types:
- opened
- edited
- synchronize
- reopened

permissions:
id-token: write
contents: read
pull-requests: read

jobs:
ESLint:
runs-on: ubuntu-latest
name: Run ESLint for Next.js
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '22'

- name: Set up .env file
run: |
cp .env.example .env # Copia .env.example para .env para uso local, se necessário
- name: Install dependencies and update ESLint packages
run: |
npm install
npm install eslint@latest eslint-config-next@latest eslint-plugin-prettier@latest eslint-plugin-react-hooks@latest
- name: Run ESLint
run: |
npm run lint

0 comments on commit e11fe9c

Please sign in to comment.