mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] [*] [breaking] [deps] update eslint, eslint-plugin-import, eslint-plugin-react
This commit is contained in:
@@ -47,16 +47,16 @@
|
||||
"devDependencies": {
|
||||
"babel-preset-airbnb": "^2.1.1",
|
||||
"babel-tape-runner": "^2.0.1",
|
||||
"eslint": "^3.9.1",
|
||||
"eslint": "^3.10.1",
|
||||
"eslint-find-rules": "^1.14.3",
|
||||
"eslint-plugin-import": "^2.1.0",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"in-publish": "^2.0.0",
|
||||
"safe-publish-latest": "^1.1.1",
|
||||
"tape": "^4.6.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^3.9.1",
|
||||
"eslint-plugin-import": "^2.1.0"
|
||||
"eslint": "^3.10.1",
|
||||
"eslint-plugin-import": "^2.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
|
||||
@@ -195,6 +195,9 @@ module.exports = {
|
||||
// disallow use of assignment in return statement
|
||||
'no-return-assign': 'error',
|
||||
|
||||
// disallow redundant `return await`
|
||||
'no-return-await': 'error',
|
||||
|
||||
// disallow use of `javascript:` urls.
|
||||
'no-script-url': 'error',
|
||||
|
||||
|
||||
@@ -50,21 +50,21 @@
|
||||
"devDependencies": {
|
||||
"babel-preset-airbnb": "^2.1.1",
|
||||
"babel-tape-runner": "^2.0.1",
|
||||
"eslint": "^3.9.1",
|
||||
"eslint": "^3.10.1",
|
||||
"eslint-find-rules": "^1.14.3",
|
||||
"eslint-plugin-import": "^2.1.0",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"eslint-plugin-jsx-a11y": "^3.0.1",
|
||||
"eslint-plugin-react": "^6.6.0",
|
||||
"eslint-plugin-react": "^6.7.0",
|
||||
"in-publish": "^2.0.0",
|
||||
"react": ">= 0.13.0",
|
||||
"safe-publish-latest": "^1.1.1",
|
||||
"tape": "^4.6.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^3.9.1",
|
||||
"eslint": "^3.10.1",
|
||||
"eslint-plugin-jsx-a11y": "^3.0.1",
|
||||
"eslint-plugin-import": "^2.1.0",
|
||||
"eslint-plugin-react": "^6.6.0"
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"eslint-plugin-react": "^6.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
|
||||
10
packages/eslint-config-airbnb/rules/react.js
vendored
10
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -287,7 +287,15 @@ module.exports = {
|
||||
|
||||
// Prevent passing of children as props
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
|
||||
'react/no-children-prop': 'error'
|
||||
'react/no-children-prop': 'error',
|
||||
|
||||
// Validate whitespace in and around the JSX opening and closing brackets
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md
|
||||
'react/jsx-tag-spacing': ['error', {
|
||||
closingSlash: 'never',
|
||||
beforeSelfClosing: 'always',
|
||||
afterOpening: 'never'
|
||||
}],
|
||||
},
|
||||
|
||||
settings: {
|
||||
|
||||
Reference in New Issue
Block a user