eslint-plugin-requirejs
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -0,1 +1,5 @@ | ||
### v3.2.0 - May 1, 2018 | ||
* Fix: Support ArrowFunctionExpression in one-dependency-per-line (#107) (Mackie Underdown) | ||
### v3.1.1 - January 2, 2017 | ||
@@ -2,0 +6,0 @@ |
@@ -89,3 +89,3 @@ /** | ||
const indentation = (node) => { | ||
const statement = node.body.body[0]; | ||
const statement = node.type === "ArrowFunctionExpression" ? node.body : node.body.body[0]; | ||
return statement && line(node) !== line(statement) ? column(statement) : 0; | ||
@@ -92,0 +92,0 @@ }; |
{ | ||
"name": "eslint-plugin-requirejs", | ||
"author": "Casey Visco <cvisco@gmail.com>", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Enforce code conventions for RequireJS modules with ESLint", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/cvisco/eslint-plugin-requirejs", |
73357