Socket
Socket
Sign inDemoInstall

eslint-config-airbnb

Package Overview
Dependencies
274
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 17.0.0 to 17.1.0

8

CHANGELOG.md

@@ -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 @@ ==================

31

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc