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

Allow rules to have the fix function #102

Open
jcreamer898 opened this issue Jan 19, 2023 · 1 comment
Open

Allow rules to have the fix function #102

jcreamer898 opened this issue Jan 19, 2023 · 1 comment
Milestone

Comments

@jcreamer898
Copy link
Collaborator

There are rules which we could potentially enable fixers for.

Imagine if the rule had an API such as...

const someRule = {
  check: async (filename, options) => {
    // make an errors array
    return errors;
  }, 
  fix: async (errors, options) => {
    // do some stuff to fix the error
  }
}

export const someRule;

This is similar to how manypkg works here...

And how eslint rules work as well such as here...

@jcreamer898 jcreamer898 added this to the Boll v3 milestone Jan 19, 2023
@dannyvv
Copy link
Member

dannyvv commented Dec 20, 2023

Yes, this will be invaluable to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants