eslint-config-airbnb
Advanced tools
Comparing version 17.0.0 to 17.1.0
@@ -0,1 +1,9 @@ | ||
17.1.0 / 2018-08-13 | ||
================== | ||
- [new] add eslint v5 support | ||
- [minor] enable `label-has-associated-control` rule | ||
- [patch] re-enabling `jsx-one-expression-per-line` allowing single children, ignore DOM components on `jsx-no-bind` | ||
- [deps] update `eslint`, `eslint-config-airbnb-base`, `eslint-plugin-react`, `eslint-plugin-import`, `safe-publish-latest`, `eslint-plugin-jsx-a11y`, `eslint-find-rules` | ||
- [docs] fix readme typo (#1855) | ||
17.0.0 / 2018-06-21 | ||
@@ -2,0 +10,0 @@ ================== |
{ | ||
"name": "eslint-config-airbnb", | ||
"version": "17.0.0", | ||
"version": "17.1.0", | ||
"description": "Airbnb's ESLint config, following our styleguide", | ||
@@ -14,5 +14,6 @@ "main": "index.js", | ||
"test": "npm run --silent tests-only", | ||
"pretravis": "cd ../eslint-config-airbnb-base && npm install && npm link && cd - && npm link --no-save eslint-config-airbnb-base", | ||
"link:eslint": "cd node_modules/eslint && npm link && cd -", | ||
"pretravis": "npm run link:eslint && cd ../eslint-config-airbnb-base && npm link eslint && npm install && npm link && cd - && npm link --no-save eslint-config-airbnb-base", | ||
"travis": "npm run --silent test", | ||
"posttravis": "npm unlink --no-save eslint-config-airbnb-base >/dev/null &" | ||
"posttravis": "npm unlink --no-save eslint-config-airbnb-base eslint >/dev/null &" | ||
}, | ||
@@ -57,3 +58,3 @@ "repository": { | ||
"dependencies": { | ||
"eslint-config-airbnb-base": "^13.0.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"object.assign": "^4.1.0", | ||
@@ -63,20 +64,20 @@ "object.entries": "^1.0.4" | ||
"devDependencies": { | ||
"babel-preset-airbnb": "^2.5.1", | ||
"babel-preset-airbnb": "^2.5.3", | ||
"babel-tape-runner": "^2.0.1", | ||
"editorconfig-tools": "^0.1.1", | ||
"eslint": "^4.19.1", | ||
"eslint-find-rules": "^3.2.3", | ||
"eslint-plugin-import": "^2.12.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.9.1", | ||
"eslint": "^4.19.1 || ^5.3.0", | ||
"eslint-find-rules": "^3.3.1", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.1", | ||
"eslint-plugin-react": "^7.11.0", | ||
"in-publish": "^2.0.0", | ||
"react": ">= 0.13.0", | ||
"safe-publish-latest": "^1.1.1", | ||
"safe-publish-latest": "^1.1.2", | ||
"tape": "^4.9.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-import": "^2.12.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.9.1" | ||
"eslint": "^4.19.1 || ^5.3.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.1", | ||
"eslint-plugin-react": "^7.11.0" | ||
}, | ||
@@ -83,0 +84,0 @@ "engines": { |
@@ -60,3 +60,3 @@ # eslint-config-airbnb | ||
This entry point that only warns on whitespace rules and sets all other rules to warnings. View the list of whitespace rules [here](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/whitespace.js). | ||
This entry point only warns on whitespace rules and sets all other rules to warnings. View the list of whitespace rules [here](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/whitespace.js). | ||
@@ -63,0 +63,0 @@ ### eslint-config-airbnb/base |
@@ -59,2 +59,12 @@ module.exports = { | ||
// Enforce that a label tag has a text label and an associated control. | ||
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/b800f40a2a69ad48015ae9226fbe879f946757ed/docs/rules/label-has-associated-control.md | ||
'jsx-a11y/label-has-associated-control': ['error', { | ||
labelComponents: [], | ||
labelAttributes: [], | ||
controlComponents: [], | ||
assert: 'both', | ||
depth: 25 | ||
}], | ||
// require that mouseover/out come with focus/blur, for keyboard-only users | ||
@@ -61,0 +71,0 @@ // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md |
@@ -96,3 +96,5 @@ module.exports = { | ||
allowArrowFunctions: true, | ||
allowFunctions: false, | ||
allowBind: false, | ||
ignoreDOMComponents: true, | ||
}], | ||
@@ -417,3 +419,3 @@ | ||
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-one-expression-per-line.md | ||
'react/jsx-one-expression-per-line': 'error', | ||
'react/jsx-one-expression-per-line': ['error', { allow: 'single-child' }], | ||
@@ -450,2 +452,6 @@ // Enforce consistent usage of destructuring assignment of props, state, and context | ||
'react/jsx-props-no-multi-spaces': 'error', | ||
// Prevent usage of UNSAFE_ methods | ||
// https://github.com/yannickcr/eslint-plugin-react/blob/157cc932be2cfaa56b3f5b45df6f6d4322a2f660/docs/rules/no-unsafe.md | ||
'react/no-unsafe': 'off', | ||
}, | ||
@@ -452,0 +458,0 @@ |
64788
789
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Addedacorn@6.4.2(transitive)
+ Addedacorn-jsx@5.3.2(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedastral-regex@1.0.0(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedchardet@0.7.0(transitive)
+ Addedcross-spawn@6.0.5(transitive)
+ Addeddebug@4.3.5(transitive)
+ Addeddoctrine@3.0.0(transitive)
+ Addedemoji-regex@7.0.3(transitive)
+ Addedeslint@5.16.0(transitive)
+ Addedeslint-scope@4.0.3(transitive)
+ Addedeslint-utils@1.4.3(transitive)
+ Addedespree@5.0.1(transitive)
+ Addedexternal-editor@3.1.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfile-entry-cache@5.0.1(transitive)
+ Addedflat-cache@2.0.1(transitive)
+ Addedflatted@2.0.2(transitive)
+ Addedignore@4.0.6(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedinquirer@6.5.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedms@2.1.2(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpicocolors@1.0.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedregexpp@2.0.1(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedrxjs@6.6.7(transitive)
+ Addedslice-ansi@2.1.0(transitive)
+ Addedstring-width@3.1.0(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedtable@5.4.6(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedwrite@1.0.3(transitive)
- Removedacorn@3.3.05.7.4(transitive)
- Removedacorn-jsx@3.0.1(transitive)
- Removedajv@5.5.2(transitive)
- Removedajv-keywords@2.1.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbabel-code-frame@6.26.0(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcaller-path@0.1.0(transitive)
- Removedcallsites@0.2.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedchardet@0.4.2(transitive)
- Removedcircular-json@0.3.3(transitive)
- Removedco@4.6.0(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcross-spawn@5.1.0(transitive)
- Removedeslint@4.19.1(transitive)
- Removedeslint-scope@3.7.3(transitive)
- Removedespree@3.5.4(transitive)
- Removedexternal-editor@2.2.0(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedfile-entry-cache@2.0.0(transitive)
- Removedflat-cache@1.3.4(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedignore@3.3.10(transitive)
- Removedinquirer@3.3.0(transitive)
- Removedis-resolvable@1.1.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjson-schema-traverse@0.3.1(transitive)
- Removedlru-cache@4.1.5(transitive)
- Removedms@2.1.3(transitive)
- Removedpluralize@7.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpseudomap@1.0.2(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedregexpp@1.1.0(transitive)
- Removedrequire-uncached@1.0.3(transitive)
- Removedresolve-from@1.0.1(transitive)
- Removedrx-lite@4.0.8(transitive)
- Removedrx-lite-aggregates@4.0.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedslice-ansi@1.0.0(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtable@4.0.2(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwrite@0.2.1(transitive)
- Removedyallist@2.1.2(transitive)