How to use the ESLint annotations?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- eslint, github-actions, node.js, typescript
- Lĩnh vực
- ci-cd, documentation
Hướng nghiên cứu
Bắt đầu bằng cách xem lại workflow YAML và các script trong package.json được hiển thị trong issue, đặc biệt là lệnh eslint:github-action và đầu ra của lệnh này. Kiểm tra tài liệu hiện có của repository hoặc hành vi của action đối với các chú thích ESLint, sau đó ghi lại liệu thiết lập này có tạo ra các chú thích trên pull request hay không và cần cấu hình nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It's my first time using the annotations feature, so please forgive me if this issue is irrelevant.
I'm trying to have annotations in the PR, however all I can get is a simple annotation in the actions screen with irrelevant information. I'm guessing that's a problem of mine, and since there's not a lot documentation (that I could find) about this might as well ask.
That's the output of a failing eslint job. The current configuration is:
quality:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Cache node modules
id: cache
uses: actions/cache@v1
with:
path: node_modules # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Prettier
run: npm run fmt:check
- name: ESlint
run: npm run eslint:github-action
where my package.json looks like:
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"prettier": "^1.19.1",
"serverless-dynamodb-local": "^0.2.38",
"serverless-offline": "^5.12.1",
"serverless-plugin-typescript": "^1.1.9",
"typescript": "^3.7.3"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint functions/**.ts",
"eslint:github-action": "eslint functions/**",
"fmt": "prettier --write ./**.{json,js,ts,yml,md}",
"fmt:check": "prettier --check ./**.{json,js,ts,yml,md}"
},
I expected that the following error would actually appear in the annotation, and hopefully in the PR too.
/home/runner/work/utom.is/utom.is/functions/a.ts
1:0 error Parsing error: Declaration or statement expected
but as you can get the from screenshot, all I have is that the process completed with error 1.
Is my expectation wrong? Or do I have something misconfigured?
Thanks
- Ngôn ngữ chính
- TypeScript
- Star
- 5k
- Fork
- 1.7k
- Merge trung bình
- 2 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của actions/setup-node
-
feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
actions/setup-node#1531 · 1 bình luận · 4 reaction ·
-
feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
actions/setup-node#1634 · 1 bình luận ·
-
actions/setup-node#1628 · 3 bình luận · 1 người được giao ·
-
`npm config get cache` fails with `EBADDEVENGINES` when requiring newer npm versions in `devEngines` Đang mởfeature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
actions/setup-node#1553 · 12 bình luận · 2 reaction ·
-
feature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
actions/setup-node#1428 · 1 bình luận · 3 reaction ·
Tất cả issue của actions/setup-node
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·