eslint-loader
Advanced tools
Comparing version 0.11.2 to 0.12.0
@@ -0,1 +1,6 @@ | ||
# 0.12.0 - 2015-06-04 | ||
- Changed: upgrade to eslint 0.22.x | ||
- Fixed: respect .eslintrc files in directory tree ([#21](https://github.com/MoOx/eslint-loader/issues/21)) | ||
# 0.11.2 - 2015-05-11 | ||
@@ -2,0 +7,0 @@ |
11
index.js
@@ -17,3 +17,12 @@ var eslint = require("eslint") | ||
var res = engine.executeOnText(input) | ||
var resourcePath = webpack.resourcePath | ||
var cwd = process.cwd() | ||
// remove cwd from resource path in case webpack has been started from project | ||
// root, to allow having relative paths in .eslintignore | ||
if (resourcePath.indexOf(cwd) === 0) { | ||
resourcePath = resourcePath.substr(cwd.length + 1) | ||
} | ||
var res = engine.executeOnText(input, resourcePath) | ||
// executeOnText ensure we will have res.results[0] only | ||
@@ -20,0 +29,0 @@ |
{ | ||
"name": "eslint-loader", | ||
"version": "0.11.2", | ||
"version": "0.12.0", | ||
"description": "eslint loader (for webpack)", | ||
"keywords": [ | ||
"lint", | ||
"linter", | ||
"eslint", | ||
@@ -27,3 +28,3 @@ "loader", | ||
"peerDependencies": { | ||
"eslint": "0.17 - 0.21" | ||
"eslint": "0.21 - 0.22" | ||
}, | ||
@@ -35,3 +36,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"eslint": "^0.19.0", | ||
"eslint": "^0.22.1", | ||
"eslint-friendly-formatter": "^1.0.3", | ||
@@ -38,0 +39,0 @@ "tape": "^4.0.0", |
Sorry, the diff of this file is not supported yet
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
11157
99