Skip to content

Commit 09bf5e8

Browse files
committed
Merge pull request airbnb#622 from billyjanitsch/jsx-quotes
[eslint config] [fix] Remove deprecated react/jsx-quotes
2 parents 60b01bd + bbcb137 commit 09bf5e8

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

packages/eslint-config-airbnb/rules/react.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ module.exports = {
2727
// Disallow undeclared variables in JSX
2828
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md
2929
'react/jsx-no-undef': 2,
30-
// Enforce quote style for JSX attributes
31-
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-quote.md
32-
'react/jsx-quotes': [2, 'double'],
3330
// Enforce propTypes declarations alphabetical sorting
3431
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md
3532
'react/jsx-sort-prop-types': 0,

react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
> Why? JSX attributes [can't contain escaped quotes](http://eslint.org/docs/rules/jsx-quotes), so double quotes make conjunctions like `"don't"` easier to type.
129129
> Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
130130
131-
eslint rules: [`react/jsx-quotes`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-quotes.md).
131+
eslint rules: [`jsx-quotes`](http://eslint.org/docs/rules/jsx-quotes).
132132
133133
```javascript
134134
// bad

0 commit comments

Comments
 (0)