Skip to content

Commit

Permalink
Replace 'wearerequired/lint-action@v2' with latest NodeJS ESlint and …
Browse files Browse the repository at this point in the history
…Prettier
  • Loading branch information
lemois-1337 committed Sep 20, 2024
1 parent 047ebb6 commit 8a8d76c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4

# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: |
npm install
npm ci
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
prettier_args: "'./{app,components,lib,tests}/*.{js,jsx,ts,tsx,css,json}' --list-different --config ./.prettierrc"
- name: Run ESlint
run: |
node_modules/.bin/eslint --config ./.eslintrc.json ./app/ ./components/ ./lib/ ./tests/
- name: Run Prettier
run: |
node_modules/.bin/prettier --config ./.prettierrc --check './{app,components,lib,tests}/*.{js,jsx,ts,tsx,css,json}'

0 comments on commit 8a8d76c

Please sign in to comment.