Skip to content

Autofix --fix-type layout #2618

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

Open
ghost opened this issue Apr 7, 2020 · 3 comments · May be fixed by #3165
Open

Autofix --fix-type layout #2618

ghost opened this issue Apr 7, 2020 · 3 comments · May be fixed by #3165

Comments

@ghost
Copy link

ghost commented Apr 7, 2020

I want to use eslint's autofix to fix layouts only.
Like this: eslint --fix --fix-type layout
(--fix-type: https://eslint.org/docs/user-guide/command-line-interface#fix-type )
To work that one plugin's rules must contains the type field.
( the type field: https://eslint.org/docs/developer-guide/working-with-rules#rule-basics )
Are there any reasons why this field cannot be added?

@ljharb
Copy link
Member

ljharb commented Apr 7, 2020

No reason; that option was added in v5.9.0, which isn't all that long ago :-)

A PR to add "type" to every rule, would be appreciated.

@ghost ghost mentioned this issue Apr 8, 2020
@sryze
Copy link

sryze commented Jan 4, 2022

I ran into the same issue... using --fix-type layout or any fix type at all doesn't trigger autofixing

@ljharb
Copy link
Member

ljharb commented Jan 4, 2022

A PR continues to be welcome; sadly #2619's author deleted their github account so the PR died.

@sryze sryze linked a pull request Jan 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants