Skip to content

Commit

Permalink
Read dependencies for eslint workflow from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Sep 24, 2024
1 parent 94072b8 commit 6a84c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:

- name: Install ESLint
run: |
npm install eslint@8.56.0
npm install @microsoft/eslint-formatter-sarif@3.0.0
npm install eslint-plugin-react@7.33.2
npm install $(grep '"eslint"' package.json | sed 's|[ ":,]||g' | sed 's|\^|@|g')
npm install $(grep '"@microsoft/eslint-formatter-sarif"' package.json | sed 's|[ ":,]||g' | sed 's|\^|@|g')
npm install $(grep '"eslint-plugin-react"' package.json | sed 's|[ ":,]||g' | sed 's|\^|@|g')
- name: Run ESLint
run: npx eslint .
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@furkot/webfonts-generator": "^2.0.2",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@types/react": "^18.3.1",
"eslint": "^8.56.0",
"eslint-plugin-perfectionist": "^2.10.0",
Expand Down

0 comments on commit 6a84c81

Please sign in to comment.