Socket
Socket
Sign inDemoInstall

eslint-config-airbnb

Package Overview
Dependencies
88
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.2

.npmignore

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,5 +12,5 @@ # eslint-config-airbnb

Our default export contains all of our ESLint rules, including EcmaScript 6+
and React. It requires `eslint`, `babel-eslint`, and `eslint-plugin-react`.
and React. It requires `eslint` and `eslint-plugin-react`.
1. `npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react eslint`
1. `npm install --save-dev eslint-config-airbnb eslint-plugin-react eslint`
2. add `"extends": "airbnb"` to your .eslintrc

@@ -20,5 +20,5 @@

Lints ES6+ but does not lint React. Requires `eslint` and `babel-eslint`.
Lints ES6+ but does not lint React. Requires `eslint`.
1. `npm install --save-dev eslint-config-airbnb babel-eslint eslint`
1. `npm install --save-dev eslint-config-airbnb eslint`
2. add `"extends": "airbnb/base"` to your .eslintrc

@@ -49,2 +49,10 @@

### 1.0.2
- enable rest params in linter, derp. (#592)
- enforce rule 18.5, ensuring files end with a single newline character. (#578)
### 1.0.1
oops
### 1.0.0

@@ -51,0 +59,0 @@ - require `eslint` `v1.0.0` or higher

@@ -18,2 +18,3 @@ module.exports = {

'objectLiteralShorthandProperties': true,
'restParams': true,
'spread': true,

@@ -20,0 +21,0 @@ 'superInFunctions': true,

@@ -53,4 +53,4 @@ module.exports = {

'no-mixed-spaces-and-tabs': 2,
// disallow multiple empty lines
'no-multiple-empty-lines': [2, {'max': 2}],
// disallow multiple empty lines and only one newline at the end
'no-multiple-empty-lines': [2, {'max': 2, 'maxEOF': 1}],
// disallow nested ternary expressions

@@ -57,0 +57,0 @@ 'no-nested-ternary': 2,

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc