Comparing version 4.4.3 to 4.4.4
@@ -171,7 +171,3 @@ "use strict"; | ||
roots.forEach(function (r) { return visitor.visit(r, context.controller); }); | ||
visitor | ||
.getFailures() | ||
.forEach(function (f) { | ||
return _this.addFailureFromStartToEnd(f.getStartPosition().getPosition(), f.getEndPosition().getPosition(), f.getFailure(), f.getFix()); | ||
}); | ||
visitor.getFailures().forEach(function (f) { return _this.addFailure(f); }); | ||
}; | ||
@@ -186,7 +182,3 @@ NgWalker.prototype.visitNgStyleHelper = function (style, context, styleMetadata, baseStart) { | ||
style.visit(visitor); | ||
visitor | ||
.getFailures() | ||
.forEach(function (f) { | ||
return _this.addFailureFromStartToEnd(f.getStartPosition().getPosition(), f.getEndPosition().getPosition(), f.getFailure(), f.getFix()); | ||
}); | ||
visitor.getFailures().forEach(function (f) { return _this.addFailure(f); }); | ||
}; | ||
@@ -193,0 +185,0 @@ NgWalker.prototype.getContextSourceFile = function (path, content) { |
@@ -55,3 +55,4 @@ "use strict"; | ||
[true, OPTION_ELEMENT, ['ng', 'ngx'], OPTION_KEBAB_CASE], | ||
[true, OPTION_ATTRIBUTE, 'myPrefix', OPTION_CAMEL_CASE] | ||
[true, OPTION_ATTRIBUTE, 'myPrefix', OPTION_CAMEL_CASE], | ||
[true, [OPTION_ELEMENT, OPTION_ATTRIBUTE], 'myPrefix', OPTION_CAMEL_CASE] | ||
], | ||
@@ -84,3 +85,3 @@ options: { | ||
}, | ||
optionsDescription: lib_1.Utils.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Options accept three obligatory items as an array:\n 1. `", "` or `", "` forces components either to be elements or attributes.\n 2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors.\n 3. `", "` or `", "` allows you to pick a case.\n "], ["\n Options accept three obligatory items as an array:\n 1. \\`", "\\` or \\`", "\\` forces components either to be elements or attributes.\n 2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors.\n 3. \\`", "\\` or \\`", "\\` allows you to pick a case.\n "])), OPTION_ELEMENT, OPTION_ATTRIBUTE, OPTION_KEBAB_CASE, OPTION_CAMEL_CASE), | ||
optionsDescription: lib_1.Utils.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Options accept three obligatory items as an array:\n 1. `", "` or `", "` forces components to be used as either elements, attributes, or both (not recommended)\n 2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors.\n 3. `", "` or `", "` allows you to pick a case.\n "], ["\n Options accept three obligatory items as an array:\n 1. \\`", "\\` or \\`", "\\` forces components to be used as either elements, attributes, or both (not recommended)\n 2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors.\n 3. \\`", "\\` or \\`", "\\` allows you to pick a case.\n "])), OPTION_ELEMENT, OPTION_ATTRIBUTE, OPTION_KEBAB_CASE, OPTION_CAMEL_CASE), | ||
rationale: lib_1.Utils.dedent(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n * Consistent conventions make it easy to quickly identify and reference assets of different types.\n * Makes it easier to promote and share the component in other apps.\n * Components are easy to identify in the DOM.\n * Keeps the element names consistent with the specification for Custom Elements.\n * Components have templates containing HTML and optional Angular template syntax.\n * They display content. Developers place components on the page as they would native HTML elements and WebComponents.\n * It is easier to recognize that a symbol is a component by looking at the template's HTML.\n "], ["\n * Consistent conventions make it easy to quickly identify and reference assets of different types.\n * Makes it easier to promote and share the component in other apps.\n * Components are easy to identify in the DOM.\n * Keeps the element names consistent with the specification for Custom Elements.\n * Components have templates containing HTML and optional Angular template syntax.\n * They display content. Developers place components on the page as they would native HTML elements and WebComponents.\n * It is easier to recognize that a symbol is a component by looking at the template's HTML.\n "]))), | ||
@@ -87,0 +88,0 @@ ruleName: 'component-selector', |
@@ -242,7 +242,3 @@ "use strict"; | ||
style.visit(visitor); | ||
visitor | ||
.getFailures() | ||
.forEach(function (f) { | ||
return _this.addFailureFromStartToEnd(f.getStartPosition().getPosition(), f.getEndPosition().getPosition(), f.getFailure(), f.getFix()); | ||
}); | ||
visitor.getFailures().forEach(function (f) { return _this.addFailure(f); }); | ||
} | ||
@@ -249,0 +245,0 @@ }; |
{ | ||
"name": "codelyzer", | ||
"version": "4.4.3", | ||
"version": "4.4.4", | ||
"description": "Linting for Angular applications, following angular.io/styleguide.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
452691
9282