7 Commits

Author SHA1 Message Date
roymondchen
a1fcb191d2 feat(eslint-config): 禁止匿名 default class/function 导出
新增 no-restricted-syntax 规则,禁止匿名形式的
`export default class {}` 与 `export default function () {}`。

匿名 default 导出在 dts 聚合(rolldown / api-extractor /
vue-tsc 等)时会被命名为 `export_default`,导致跨包继承链在
.vue / .tsx 下解析失败,父类成员(如 EventEmitter 的 on/off)
无法被 ts-plugin 推断。

同时重申 base.mjs 中已有的 ForIn / Labeled / With 选择器,
避免在 .ts/.tsx 下被本规则整体覆盖。
2026-05-26 17:09:37 +08:00
roymondchen
6e07d5762b chore(eslint-config): release 0.1.0 2026-04-09 12:15:05 +08:00
roymondchen
73c676931f build: 更新ts@10 2026-04-07 18:25:35 +08:00
roymondchen
5ae667b7ee chore: update eslint 10 2026-03-17 20:03:45 +08:00
roymondchen
f267643c42 chore: update deps 2025-08-26 17:27:37 +08:00
roymondchen
e01ce2128e feat(eslint-conft): 添加import-sort的本地目录 2025-06-04 19:34:17 +08:00
roymondchen
e7e9197ae3 style: 更新eslint版本,更新eslint配置 2025-04-21 20:35:54 +08:00