Skip to content

Commit e50b74c

Browse files
committed
Исправлен пайплайн для ESLint
1 parent fe3a594 commit e50b74c

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

.github/workflows/eslint.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ name: ESLint
1111

1212
on:
1313
push:
14-
branches: [ "master" ]
14+
branches: ['master']
1515
pull_request:
1616
# The branches below must be a subset of the branches above
17-
branches: [ "master" ]
17+
branches: ['master']
1818
schedule:
1919
- cron: '35 0 * * 1'
2020

@@ -29,20 +29,21 @@ jobs:
2929
steps:
3030
- name: Checkout code
3131
uses: actions/checkout@v4
32-
32+
3333
- name: Install PNPM
3434
uses: pnpm/action-setup@v2
3535

36-
- name: Install ESLint
37-
run: |
38-
pnpm install @microsoft/[email protected]
36+
- name: Install Dependencies
37+
run: pnpm install
3938

4039
- name: Run ESLint
41-
run: npx eslint .
40+
run: pnpm dlx eslint .
4241
--config .eslintrc.cjs
4342
--ext .js,.jsx,.ts,.tsx,.astro
4443
--format @microsoft/eslint-formatter-sarif
4544
--output-file eslint-results.sarif
45+
env:
46+
SARIF_ESLINT_IGNORE_SUPPRESSED: 'true'
4647
continue-on-error: true
4748

4849
- name: Upload analysis results to GitHub

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"vite": "^4.4.9"
4040
},
4141
"devDependencies": {
42+
"@microsoft/eslint-formatter-sarif": "^3.1.0",
4243
"@rushstack/eslint-config": "^3.6.10",
4344
"@typescript-eslint/parser": "^7.10.0",
4445
"csstype": "^3.1.2",

pnpm-lock.yaml

Lines changed: 24 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)