Skip to content

Commit 9c7674a

Browse files
committed
Update for upstream dependencies
- react/jsx-quotes has been superseded by jsx-quotes - eqeqeq now covers comparisons to null
1 parent db6c4a8 commit 9c7674a

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

packages/eslint-config-airbnb/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
},
2727
"homepage": "https://github.com/airbnb/javascript",
2828
"devDependencies": {
29-
"babel-eslint": "4.0.10",
29+
"babel-eslint": "4.1.3",
3030
"babel-tape-runner": "1.2.0",
31-
"eslint": "1.3.0",
32-
"eslint-plugin-react": "3.2.3",
31+
"eslint": "1.5.1",
32+
"eslint-plugin-react": "3.4.2",
3333
"react": "0.13.3",
3434
"tape": "4.2.0"
3535
}

packages/eslint-config-airbnb/rules/best-practices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
// disallow use of labels for anything other then loops and switches
3232
'no-empty-label': 2,
3333
// disallow comparisons to null without a type-checking operator
34-
'no-eq-null': 2,
34+
'no-eq-null': 0,
3535
// disallow use of eval()
3636
'no-eval': 2,
3737
// disallow adding to native types

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
// Disallow undeclared variables in JSX
1919
'react/jsx-no-undef': 2,
2020
// Enforce quote style for JSX attributes
21-
'react/jsx-quotes': [2, 'double'],
21+
'react/jsx-quotes': 0,
2222
// Enforce propTypes declarations alphabetical sorting
2323
'react/jsx-sort-prop-types': 0,
2424
// Enforce props alphabetical sorting

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module.exports = {
2424
'id-length': [2, {'min': 2, 'properties': 'never'}],
2525
// this option sets a specific tab width for your code
2626
'indent': [2, 2],
27+
// specify whether double or single quotes should be used in JSX attributes
28+
'jsx-quotes': 2,
2729
// enforces spacing between keys and values in object literal properties
2830
'key-spacing': [2, {'beforeColon': false, 'afterColon': true}],
2931
// enforces empty lines around comments

0 commit comments

Comments
 (0)