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.1.0 to 17.1.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

17.1.1 / 2019-07-01
==================
- [patch] Turn off `react/no-multi-comp` (#2006)
- [patch] extend `no-underscore-dangle` to allow for redux dev tools in the main config instead (#1996)
- [meta] add disabled `jsx-fragments` rule
- [deps] update `eslint-config-airbnb-base`, `object.entries`, `eslint-plugin-import`, `eslint-plugin-react`, `eslint-plugin-jsx-a11y`, `babel-preset-airbnb`, `tape` (#2005, etc)
- [docs] correct JavaScript capitalization (#2046)
- [docs] fix docs for whitespace config (#1914, #1871)
- [readme] Improve eslint config setup instructions for yarn (#2001)
17.1.0 / 2018-08-13

@@ -2,0 +12,0 @@ ==================

24

package.json
{
"name": "eslint-config-airbnb",
"version": "17.1.0",
"version": "17.1.1",
"description": "Airbnb's ESLint config, following our styleguide",

@@ -14,3 +14,3 @@ "main": "index.js",

"test": "npm run --silent tests-only",
"link:eslint": "cd node_modules/eslint && npm link && cd -",
"link:eslint": "cd node_modules/eslint && npm link --production && 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",

@@ -58,8 +58,8 @@ "travis": "npm run --silent test",

"dependencies": {
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-airbnb-base": "^13.2.0",
"object.assign": "^4.1.0",
"object.entries": "^1.0.4"
"object.entries": "^1.1.0"
},
"devDependencies": {
"babel-preset-airbnb": "^2.5.3",
"babel-preset-airbnb": "^2.6.0",
"babel-tape-runner": "^2.0.1",

@@ -69,15 +69,15 @@ "editorconfig-tools": "^0.1.1",

"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",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.2",
"in-publish": "^2.0.0",
"react": ">= 0.13.0",
"safe-publish-latest": "^1.1.2",
"tape": "^4.9.1"
"tape": "^4.11.0"
},
"peerDependencies": {
"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"
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.2"
},

@@ -84,0 +84,0 @@ "engines": {

@@ -15,4 +15,2 @@ # eslint-config-airbnb

If you use yarn, run `npm info "eslint-config-airbnb@latest" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev <dependency>@<version>` for each listed peer dependency. See below for npm instructions.
1. Install the correct versions of each package, which are listed by the command:

@@ -30,2 +28,5 @@

If using **yarn**, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.
Otherwise, run `npm info "eslint-config-airbnb@latest" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev <dependency>@<version>` for each listed peer dependency.
If using **npm < 5**, Linux/OSX users can run

@@ -62,3 +63,3 @@

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).
This entry point only errors 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).

@@ -73,3 +74,3 @@ ### eslint-config-airbnb/base

See [Airbnb's Javascript styleguide](https://github.com/airbnb/javascript) and
See [Airbnb's JavaScript styleguide](https://github.com/airbnb/javascript) and
the [ESlint config docs](https://eslint.org/docs/user-guide/configuring#extending-configuration-files)

@@ -76,0 +77,0 @@ for more information.

@@ -0,1 +1,6 @@

const assign = require('object.assign');
const baseStyleRules = require('eslint-config-airbnb-base/rules/style').rules;
const dangleRules = baseStyleRules['no-underscore-dangle'];
module.exports = {

@@ -15,2 +20,6 @@ plugins: [

rules: {
'no-underscore-dangle': [dangleRules[0], assign({}, dangleRules[1], {
allow: dangleRules[1].allow.concat(['__REDUX_DEVTOOLS_EXTENSION_COMPOSE__']),
})],
// Specify whether double or single quotes should be used in JSX attributes

@@ -189,3 +198,3 @@ // https://eslint.org/docs/rules/jsx-quotes

// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
'react/no-multi-comp': ['error', { ignoreStateless: true }],
'react/no-multi-comp': 'off',

@@ -456,2 +465,7 @@ // Prevent usage of setState

'react/no-unsafe': 'off',
// Enforce shorthand or standard form for React fragments
// https://github.com/yannickcr/eslint-plugin-react/blob/bc976b837abeab1dffd90ac6168b746a83fc83cc/docs/rules/jsx-fragments.md
// TODO: enable, semver-major
'react/jsx-fragments': ['off', 'syntax'],
},

@@ -458,0 +472,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