Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

☂️ Linter, port eslint's recommended preset #3953

Open
26 of 30 tasks
ematipico opened this issue Dec 5, 2022 · 2 comments
Open
26 of 30 tasks

☂️ Linter, port eslint's recommended preset #3953

ematipico opened this issue Dec 5, 2022 · 2 comments
Assignees
Labels
A-Linter Area: linter umbrella Issue to track a collection of other issues
Milestone

Comments

@ematipico
Copy link
Contributor

ematipico commented Dec 5, 2022

Description

This umbrella is meant to track all the rules that belong to the recommended preset of ESLint and move them to Rome.

Some rules already exist and they might have a different names.

You can use this project to better track the progress.

[This spreadsheet] tracks all of them, with the relative rule in Rome.

The community might decide to split some rules into multiple rules, for different reasons:

  • technical constraints (using different query systems in one rule is not possible in Rome);
  • break down the scope of a rule into more specialized rules (for example in 📎 Lint cases similar to no-dupe-keys #3731 there was a discussion that ended up splitting a rule into multiple rules);
  • our grouping system might not fit a rule;

Contribution guidelines

Always refer to our contribution guidelines when implementing the rule.

When porting a rule, make sure that the name of the rule reflects our internal naming patterns, and refrain from using abbreviations in the name of the rule. We try to promote complete names whenever it's possible.

Each task has an associated label that will mark its difficulty in implementing the rule. The difficulty has been assessed roughly by looking at ESLint implementation (their source code), so it's not bulletproof.

Any questions regarding a rule (technical or not) should be posted in the issue of the rule.

Remaining rules

List of rules

This list doesn't contain the recommended rules that belong to the layout/formatting section.
Below, is the list of recommended rules that haven't been implemented yet.

@ematipico ematipico added umbrella Issue to track a collection of other issues A-Linter Area: linter labels Dec 5, 2022
@ematipico ematipico added this to the Next milestone Dec 5, 2022
@mzbac
Copy link
Contributor

mzbac commented Dec 5, 2022

Is it possible to categorize the rule into different difficulty groups? So people would know how to pick it up based on their level. I am pretty new to Rome and Rust, so I had a lot of trouble picking the right issue to contribute.

@ematipico
Copy link
Contributor Author

Is it possible to categorize the rule into different difficulty groups? So people would know how to pick it up based on their level. I am pretty new to Rome and Rust, so I had a lot of trouble picking the right issue to contribute.

Yes, that's what I plan to do with each rule, I started doing so with the Accessibility rules.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter umbrella Issue to track a collection of other issues
Projects
Status: No status
Development

No branches or pull requests

5 participants