Repository navigation
0.5.0
New rules, all enabled in the recommended configs:
timmo/no-untyped-custom-eventreportsCustomEventused as a type without a detail type, which leavesdetailasany.timmo/no-explicit-inferable-type-predicatereports explicitx is Tpredicates that TypeScript already infers, on non-exported functions whose body is only a null,typeoforinstanceofcheck.timmo/prefer-lit-query-decoratorsfollows eslint-plugin-lit'sprefer-query-decorators, including its options andsettings.lit.elementBaseClasses, and also catchesthis.shadowRoot!,?.and asserted render roots. It only reports static selectors. Turn offlit/prefer-query-decoratorswhen using it.timmo/no-unchecked-query-selector-typereports type arguments onquerySelector,querySelectorAllandclosest, which cast the result without checking it.timmo-effect/prefer-platform-services(inrecommended-effect) reports Nodechild_processandfsand Bun'sspawn,spawnSync,$,fileandwritein modules that import Effect. UseChildProcessSpawnerandFileSysteminstead.fetchis not reported.
Other changes:
timmo/prefer-event-parameter-typenow also reports casts ondetailand nesteddetailmembers.timmo/prefer-types-over-assertionsskips those so they are not reported twice.- The recommended configs now enable
typescript/no-non-null-assertion,typescript/no-unnecessary-type-arguments,typescript/no-unnecessary-type-assertionandtypescript/no-unnecessary-type-parametersas errors. The last three needtypeAware. - Rule helpers are shared across plugins, and the copy command copies them too.
- Pin the shared GitHub workflows to
20260929.0.
Full Changelog: 0.4.0...0.5.0