43081j / 43081j/eslint-plugin-lit
Support https://typescript-eslint.io/rules/unbound-method in `lit/no-template-arrow` rule
- 主要语言
- TypeScript
- 星标
- 138
- 派生
- 26
- 平均合并
- 23 小时 29 分钟
- 30 天内合并 PR
- 4
描述
This is similar to https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/unbound-method.ts
The jest plugin checks whether the unbound method is valid in the context of jest, or it falls back to the typescript-eslint/unbound-method rule.
It would be helpful if the `lit/no-template-arrow` rule did the same. Especially now that the latest `eslint-config-standard-with-typescript` version now includes the `@typescript-eslint/unbound-method` rule.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Look at the existing `lit/no-template-arrow` rule implementation and the linked jest plugin rule (`src/rules/unbound-method.ts`). Understand how the jest plugin defers to `@typescript-eslint/unbound-method`. Modify the lit rule to check if the unbound method is valid in lit-html template contexts, otherwise fall back. Test with the latest `eslint-config-standard-with-typescript`.
由索引模型根据 Issue 内容生成。
评估
- 领域
- devtools, tooling
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100