eslint-plugin-ecology9
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -14,2 +14,3 @@ | ||
const limitMax = (context.options[0] || 10); | ||
const doFix = (context.options[1] || false); | ||
// const jsxElements = []; | ||
@@ -51,6 +52,8 @@ function checkParentArray(node, limit = 0) { | ||
context.report({ | ||
const r = { | ||
node, | ||
message: `Missing "ecId" prop for element${inArray ? ' in array' : ''}, please add parent's ecId${inArray ? ' and different key "diffKey"' : ''}.`, | ||
fix: function(fixer) { | ||
}; | ||
if (doFix) { | ||
r.fix = function(fixer) { | ||
return fixer.insertTextAfterRange( | ||
@@ -61,3 +64,4 @@ openingElement.name.range, | ||
} | ||
}); | ||
} | ||
context.report(r); | ||
} | ||
@@ -64,0 +68,0 @@ |
{ | ||
"name": "eslint-plugin-ecology9", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "eslint plugin for weaver ecology 9.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
14189
416