-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate jsx-quotes rule (fixes #217)
- Loading branch information
Showing
4 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3b1f29e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change ended up creating a bunch of false positive errors. My setting in eslintrc (yaml) was
react/jsx-quotes: [2, single]
and when I got version 3.4.0 I got an error for every file that was checked. Previous semver ranges were^1.3.1
for eslint and^3.3.2
for eslint-react-plugin. I realize this isn't really a big change, but that seems more backward incompatible than semver would suggest.Not sure if (1) I was doing anything wrong or (2) this was intended behavior.
p.s. Also worth noting that eslint's syntax is different than the previous one used here (e.g.
single
is replaced byprefer-single
).3b1f29e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. It was a mistake to display this as ESLint errors. I replaced it by a simple
console.log
, so it should solve the problem while keeping the warning.Related issue #220
3b1f29e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry I missed that issue. Thanks.