nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
107.92k stars 29.74k forks source link

tools: lint TypeScript files #55702

Open marco-ippolito opened 2 weeks ago

marco-ippolito commented 2 weeks ago

What is the problem this feature will solve?

Since --experimental-typescript-support landed there are more and more TypeScript file in the codebase (especially in the test folder). Currently those are ignored by the make lint job.

What is the feature you are proposing to solve the problem?

Add the eslint typescript plugin, so we can have linting for TypeScript files.

What alternatives have you considered?

Manually format 😿

RedYetiDev commented 2 weeks ago

If we do that, we can probably replace some of our rules with builtins from it, IIRC it comes with plenty of builtin plugins.

If you'd like, I can look into it later today. (But I don't want to take away the opportunity for someone else to implement this if they want)