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

Lint 'object destructuring filter' consistently #131

Merged
merged 1 commit into from Mar 31, 2016
Merged

Lint 'object destructuring filter' consistently #131

merged 1 commit into from Mar 31, 2016

Conversation

boromisp
Copy link
Contributor

The pattern const { map, url, ...props } = this.props usually
failed during linting, because the map variable is defined but
not used (no-unused-vars rule).

After adding the "varsIgnorePattern": "^_" option to the
no-unused-vars rule, unused properies can be marked as:
const { map: _, url, ...props } = this.props.

I also updated the eslint and babel-eslint dependencies, because of
some relevant bugfixes.

The pattern ```const { map, url, ...props } = this.props``` usually
failed during linting, because the ```map``` variable is defined but
not used.

After adding the ```"varsIgnorePattern": "^_"``` option to the
```no-unused-vars``` rule, unused properies can be marked as:
```const { map: _, url, ...props } = this.props```.

I also updated the eslint and babel-eslint dependencies, because of
some relevant bugfixes.
@PaulLeCam PaulLeCam merged commit 8e628c4 into PaulLeCam:master Mar 31, 2016
@PaulLeCam
Copy link
Owner

Good idea, thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants