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

Newly disabled rules don't combine with old ones #16

Open
chrbala opened this issue Feb 11, 2023 · 0 comments
Open

Newly disabled rules don't combine with old ones #16

chrbala opened this issue Feb 11, 2023 · 0 comments

Comments

@chrbala
Copy link

chrbala commented Feb 11, 2023

Right now, if you start with:

let foo_bar;

// eslint-disable-next-line no-console
console.log(); foo_bar;

eslint-bankruptcy will rewrite the file to:

let foo_bar;

// eslint-disable-next-line no-console
// eslint-disable-next-line camelcase
console.log(); foo_bar;

This doesn't work though, because only the line above the affected line is active. It should instead be:

let foo_bar;

// eslint-disable-next-line camelcase, no-console
console.log(); foo_bar;

I have set up a commit which adds a test that shows the wrong snapshot is generated when running this case.

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

1 participant