rome / tools

Unified developer tools for JavaScript, TypeScript, and the web
https://docs.rome.tools/
MIT License
23.75k stars 660 forks source link

☂️ Lint rules from other sources #3358

Closed ematipico closed 1 year ago

ematipico commented 2 years ago

Description

The team has selected the following additional rules to implement for the 10.0.0 release.

They have been selected from https://github.com/rome/tools/discussions/3357

If the team is able to implement all of them before the release of 10.0.0, other rules will be added.

Note: if the external rule does have options, ignore them for the time being and focus on the default implementation.

IWANABETHATGUY commented 2 years ago

Would you mind assigning me the task prefer-numeric-literals?

ematipico commented 2 years ago

Would you mind assigning me the task prefer-numeric-literals?

Sure! Please leave a comment in the issue so I can assign it to you

xunilrj commented 1 year ago

More details about

https://github.com/rome/tools/pull/3355 Checks the dependencies array of React Hooks contains all referenced bindings Example error: function Component({ prop }) { useEffect(() => { prop(); }, []); }

DerGernTod commented 1 year ago

i didn't find any issue that would fit this comment better: are you planning to support custom linting rules? we have a lot of very project-specific linting rules we wrote on our own (we have our internal linting rule package), and for eslint there's lots of third party linting packages out there (e.g. https://github.com/getify/eslint-plugin-proper-arrows/)

ematipico commented 1 year ago

i didn't find any issue that would fit this comment better: are you planning to support custom linting rules? we have a lot of very project-specific linting rules we wrote on our own (we have our internal linting rule package), and for eslint there's lots of third party linting packages out there (e.g. getify/eslint-plugin-proper-arrows)

It's something that we want to support, but on the other hand it's not something that is easily implementable; we are investigating how to to use V8 as runtime, then we will need to investigate how to add new rules, dynamically. Nowadays it's not even possible using the Rust API because the infrastructure doesn't allow it.

ematipico commented 1 year ago

Closing in favour of #3739