eslint-config-airbnb
Advanced tools
Comparing version 1.0.0 to 1.0.2
{ | ||
"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, |
25835
19
606
86