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

rule no-deprecated-report-api should consider spread operator #64

Closed
aladdin-add opened this issue Oct 24, 2018 · 2 comments
Closed

rule no-deprecated-report-api should consider spread operator #64

aladdin-add opened this issue Oct 24, 2018 · 2 comments

Comments

@aladdin-add
Copy link
Contributor

                errors.forEach(error => {
                    context.report(...error);
                });

it was found in https://github.com/eslint/eslint/blob/3943635e10c6cf47d3268c91baf9e24c07401af9/lib/rules/no-irregular-whitespace.js#L226-L228

@not-an-aardvark
Copy link
Contributor

I agree, I think this should be considered a bug.

@aladdin-add
Copy link
Contributor Author

working on this.

not-an-aardvark added a commit to eslint/eslint that referenced this issue Oct 24, 2018
This updates the no-irregular-whitespace rule to avoid using the legacy multi-argument `context.report` API. We have a linting rule to enforce against using the API, but the rule wasn't enforcing it in this case.

This was originally found by Aladdin-ADD in eslint-community/eslint-plugin-eslint-plugin#64.
not-an-aardvark added a commit to eslint/eslint that referenced this issue Oct 24, 2018
This updates the no-irregular-whitespace rule to avoid using the legacy multi-argument `context.report` API. We have a linting rule to enforce against using the API, but the rule wasn't enforcing it in this case.

This was originally found by Aladdin-ADD in eslint-community/eslint-plugin-eslint-plugin#64.
not-an-aardvark added a commit to eslint/eslint that referenced this issue Oct 24, 2018
This updates the no-irregular-whitespace rule to avoid using the legacy multi-argument `context.report` API. We have a linting rule to enforce against using the API, but the rule wasn't enforcing it in this case.

This was originally found by Aladdin-ADD in eslint-community/eslint-plugin-eslint-plugin#64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants