nwtgck / piping-server

Infinitely transfer between every device over pure HTTP with pipes or browsers
MIT License
3k stars 155 forks source link

Introduce Biome for lint instead of TSLint #877

Open unvalley opened 9 months ago

unvalley commented 9 months ago

Closes #168 This PR introduces Biome instead of TSLint. I enabled only lint feature. I skip formatter and analyzer here.

This PR was created because of its superiority over ESLint in terms of speed, readiness to install formatter features. ESLint and typescript-eslint have the advantage of being de facto with abundant rules. If ESLint is needed, I will close this PR and create a PR that uses that one.

Referencing previous tslint.json, TSLint rule triple-equals is enabled by default in Biome as noDoubleEquals. Others are set false, so ignored (it means, there is no need to suppress Biome's lint rules if the lint command passes).

Caring about disabled TSLint rules in comments (I deleted):

NOTICE

Currently, Biome cannot handle lint rules that require TypeScript type info. For example, no-floating-promise. The team would like to address this, but has not found a definitive solution. So, in this TSLint's recommended set, biome can't handle the lint rules require type info.