github / github/eslint-plugin-github
Request: Add typescript support
- Ngôn ngữ chính
- JavaScript
- Star
- 336
- Fork
- 67
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 6
Mô tả
I'm working on an addition to [insights-web](https://github.com/github/insights-web) ([PR](https://github.com/github/insights-web/pull/123)) that requires an upgrade to Chart.js 4. Chart.js 4 added typescript `.d.ts` definitions for various exported types. This breaks the GitHub eslint rules because the linter isn't able to resolve the imported types, despite everything compiling correctly. I was able to fix the linting by adding and configuring [eslint-import-resolver-typescript](https://www.npmjs.com/package/eslint-import-resolver-typescript) to the project. I wanted to submit this issue here though because this seems like a better addition to `estlint-plugin-github`, that way we have org-wide TS linting support. There's also an alternative [eslint-plugin-i](https://github.com/un-es/eslint-plugin-i) package that claims to be faster than `eslint-plugin-import`.
Hướng dẫn đóng góp
Hướng nghiên cứu
Xem xét cấu hình dependency và resolver hiện tại của eslint-plugin-github, sau đó so sánh cách tiếp cận eslint-import-resolver-typescript được đề xuất với package eslint-plugin-i thay thế. Hoàn thành nghĩa là các import TypeScript .d.ts được resolve chính xác theo các quy tắc ESLint của plugin và các kiểm tra lint hiện có đều vượt qua.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, typescript
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100