eslint-plugin-eslint-comments
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -28,14 +28,2 @@ /** | ||
/** | ||
* Checks `a` is less than `b`. | ||
* | ||
* @param {{line: number, column: number}} a - A location to compare. | ||
* @param {{line: number, column: number}} b - Another location to compare. | ||
* @returns {boolean} `true` if `a` is less than `b`. | ||
* @private | ||
*/ | ||
function lt(a, b) { | ||
return a.line < b.line || (a.line === b.line && a.column < b.column) | ||
} | ||
//------------------------------------------------------------------------------ | ||
@@ -186,5 +174,2 @@ // Exports | ||
if (lt(location, area.start)) { | ||
break | ||
} | ||
if ((area.ruleId === null || area.ruleId === ruleId) && | ||
@@ -191,0 +176,0 @@ lte(area.start, location) && |
{ | ||
"name": "eslint-plugin-eslint-comments", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Additional ESLint rules for directive comments of ESLint.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
30259
644