Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible rules #104

Closed
sindresorhus opened this issue Apr 17, 2016 · 9 comments
Closed

Impossible rules #104

sindresorhus opened this issue Apr 17, 2016 · 9 comments
Labels

Comments

@sindresorhus
Copy link
Member

sindresorhus commented Apr 17, 2016

I thought I'd collect some rules I'd like to see that are impossible with the current ESLint. For posterity.

Comment on other things that would be cool if ESLint didn't have its current limits.

@sindresorhus
Copy link
Member Author

Wonder if we could integrate Tern.js into ESLint somehow or maybe compile Flow into Asm.js/WebAssembly.

@jamiebuilds
Copy link

Flow can already be compiled to JavaScript, that's how we run in the browser (https://flowtype.org/try/), if you want to experiment with doing eslint rules that consume Flow I can help you out with that.

I suspect it will be slower than you want because Flow is more meant for incremental checks with a server running in the background. Where eslint can get away with starting up cold. It's not that slow, but you will notice the difference.

@jfmengels
Copy link
Contributor

That'd be really awesome! I'd love to work on that!

@jamiebuilds
Copy link

Added it to my team's backlog.

@sindresorhus
Copy link
Member Author

Writing rules targeted at TypeScript and taking advantage of its type information would solve many of these problems.

https://twitter.com/sindresorhus/status/1089602422236864512

@RichiCoder1
Copy link

RichiCoder1 commented Feb 8, 2019

I'm playing around with the new Typescript eslint parser, and I think I'd like to try my hand at a POC implementation of some of these. Will still have to ignore non or untyped nodes, but I think many of these are possible now with @typescript-eslint

@sindresorhus
Copy link
Member Author

@RichiCoder1 Awesome! 👍

I would be happy to host them over at eslint-plugin-unicorn if you want.

@sindresorhus
Copy link
Member Author

typescript-eslint/typescript-eslint#283

typescript-eslint/typescript-eslint#284

typescript-eslint/typescript-eslint#285

@fregante
Copy link
Member

fregante commented Aug 6, 2022

Closing as old and resolved. Many rules are now possible thanks to typescript. The ones mentioned now exist.

If new ideas come up, I think it would be best tracked in the unicorn plugin repo

@fregante fregante closed this as completed Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants