eslint-plugin-ideal
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -9,2 +9,3 @@ /** | ||
module.exports = function(context){ | ||
var lastVarEndLine = -1; | ||
@@ -14,6 +15,3 @@ function report(node){ | ||
node: node, | ||
message: "Variable `" + node.id.name + "` should be on a new line.", | ||
fix: function(fixer){ | ||
return fixer.insertTextBefore(node, "\n"); | ||
} | ||
message: "Variable `" + node.id.name + "` should be on a new line." | ||
}); | ||
@@ -28,6 +26,8 @@ } | ||
} | ||
lastVarEndLine = elem.loc.end.line; | ||
return elem.loc.end.line; | ||
}, -1); | ||
}, lastVarEndLine); | ||
} | ||
}; | ||
}; |
{ | ||
"name": "eslint-plugin-ideal", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "ESLint rules", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,3 +7,3 @@ [![NPM version](https://badge.fury.io/js/eslint-plugin-ideal.svg?style=flat-square)](http://badge.fury.io/js/eslint-plugin-ideal) | ||
#How to use | ||
# How to use | ||
@@ -74,3 +74,3 @@ ## Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally | ||
#List of supported rules | ||
# List of supported rules | ||
@@ -77,0 +77,0 @@ * [no-tabs-in-file](docs/rules/no-tabs-in-file.md) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6022
77