This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Update dependency eslint-plugin-react to version 6.10.3 #262
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency eslint-plugin-react from version
6.10.0
to6.10.3
Changelog
6.10.3 / 2017-03-20
This reverts commit 6e5f688065aa218d71742dc4b31929c16ab1078d.
Conflicts:
lib/rules/jsx-indent.js
tests/lib/rules/jsx-indent.js
6.10.2 / 2017-03-19
6.10.1 / 2017-03-19
Bug fix for false positives with no-multi-comp
Bug fix for false positives with no-multi-comp
Review: Use object.assign with sourceType: module in the added test overPreviously, when createElement was destructured from React, it would
cause any function defined in the file to be flagged as a React
Component. This change makes it such that the function must call
createElement to be considered a component.
Fixes #1088
babel-eslint.
Merge pull request #1080 from jomasti/issue-1073
Fix jsx-indent single line jsx
Also adds test
This ensures that the rule only checks for a `createElement` call from
React. It will also prevent the rule from failing when it hits a
`createElement` that only has an element as an argument.
Fix error caused by templates in ConditionalExpressions (jsx-indent)
Template strings are constructed differently from other tokens in
espree. Other tokens are created by the Token class and are thus
Token class objects. They look like this:
```
Token {
type: 'String',
value: '"bar"',
start: 44,
end: 49,
loc:
SourceLocation {
start: Position { line: 4, column: 11 },
end: Position { line: 4, column: 16 } },
range: [ 44, 49 ] }
```
Template tokens, however, are constructed differently and end up as
plain JavaScript objects, which look like this:
```
{ type: 'Template',
value: '`bar`',
loc:
{ start: Position { line: 4, column: 11 },
end: Position { line: 4, column: 16 } },
range: [ 44, 49 ] }
```
See: espree's token-translator.js
As a result of this different construction, the `start` and `end`
properties are not present on the template token object. To correct this
I've changed to using the `range` property, which I infer to be more
proper given the method it is being passed into is called
`getNodeByRangeIndex`. I also think we can safely rely on `range` being
present on all token types.
Fixes #1061
[Fix] jsx-indent with tabs