eslint-plugin-diff
Advanced tools
Comparing version 1.0.2 to 1.0.3-0
@@ -36,5 +36,5 @@ "use strict"; | ||
], | ||
"/mock-filename.js", | ||
`/mock filename with quotes ", semicolons ; and spaces.js`, | ||
]; | ||
exports.postprocessArguments = postprocessArguments; | ||
//# sourceMappingURL=postprocessArguments.js.map |
@@ -26,4 +26,5 @@ "use strict"; | ||
const Range_1 = require("./Range"); | ||
const sanitizeFilePath = (filePath) => JSON.stringify(path.resolve(filePath)); | ||
const getDiffForFile = (filePath, staged = false) => child_process | ||
.execSync(`git diff --diff-filter=ACM --unified=0 HEAD ${staged ? " --staged" : ""} -- ${path.resolve(filePath)}`) | ||
.execSync(`git diff --diff-filter=ACM --unified=0 HEAD ${staged ? " --staged" : ""} -- ${sanitizeFilePath(filePath)}`) | ||
.toString(); | ||
@@ -30,0 +31,0 @@ exports.getDiffForFile = getDiffForFile; |
{ | ||
"name": "eslint-plugin-diff", | ||
"version": "1.0.2", | ||
"version": "1.0.3-0", | ||
"description": "Run ESLint on your changes only", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
34707
415
1