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

can eslint be made aware of things to ignore? #2

Open
ndushay opened this issue Oct 10, 2018 · 3 comments
Open

can eslint be made aware of things to ignore? #2

ndushay opened this issue Oct 10, 2018 · 3 comments

Comments

@ndushay
Copy link

ndushay commented Oct 10, 2018

I imagine the answer is no, until eslint/eslint/issues/9844 is approved.

I'm also certain you already envision a time when the rules in eslintrc-todo.yml can be ignored by eslint so the results you get do not include anything in the todo file.

@richseviora
Copy link
Owner

Also didn't see this until now (shakes fist at Gmail)! Yes, I ran into the problem where if you run the app when you already have a eslintrc-todo.yml file in the extends array, then it generates nothing... so what I could do is drop that entry from the baseConfig object before running it.

@ndushay
Copy link
Author

ndushay commented Oct 24, 2018

you are suggesting what sounds like a great approach, but what I really meant was it would be great if eslint (plain) could be made aware of the todo file and not count those errors. As I said above, it would require eslint code changes for this to happen, so ... probably nothing can be done quickly.

@richseviora
Copy link
Owner

Hey, so I'm finally getting back to this, and I think this could be solved if you use the -o option, which then overrides the setting for all the todo items to off. They won't show up even as warnings at that point. Does that get at what you want?

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