Skip to content

Commit 4287318

Browse files
authored
Merge pull request #511 from sir-gon/develop
Develop
2 parents 1d8bbdf + b76af81 commit 4287318

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/eslint.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,20 @@ jobs:
4747

4848
- name: Install ESLint
4949
run: |
50-
npm install eslint@8.56.0
51-
npm install @microsoft/eslint-formatter-sarif@3.0.0
52-
50+
npm install --include=dev eslint@8.57.0
51+
npm install --include=dev @microsoft/eslint-formatter-sarif@3.0.0
52+
- name: Test ESLint
53+
run: |
54+
npx --yes eslint --env-info
5355
- name: Run ESLint
5456
run: >
5557
npx eslint .
5658
--config .eslintrc
59+
--max-warnings=0
5760
--ext .js,.jsx,.ts,.tsx
5861
--format @microsoft/eslint-formatter-sarif
5962
--output-file eslint-results.sarif
6063
continue-on-error: true
61-
6264
- name: Upload analysis results to GitHub
6365
uses: github/codeql-action/upload-sarif@v3
6466
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "npx --yes copyfiles --verbose -R --up 1 -e \"**/*.test.js\" -e \"**/*.config.js\" \"**/*.js\" dist/",
88
"start": "npm run test",
9-
"lint": "npx --yes eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
9+
"lint": "npx --yes eslint --env-info; npx --yes eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
1010
"lint:watch": "npx --yes esw . --color --max-warnings=0 --watch",
1111
"jest:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
1212
"jest:clean": "npx --yes jest --clearCache && npx --yes watchman watch-del-all",

0 commit comments

Comments
 (0)