Comparing version 6.0.0 to 6.0.1
@@ -37,7 +37,7 @@ "use strict"; | ||
{ selector: '[md-tooltip], [mdTooltip]', exportAs: 'mdTooltip' }, | ||
{ selector: 'md-select', exportAs: 'mdSelect' } | ||
{ selector: 'md-select', exportAs: 'mdSelect' }, | ||
], | ||
resolveUrl: function (url) { return url; }, | ||
transformStyle: function (code, url) { return transform(code, [CSS_FILE_EXTENSION], url); }, | ||
transformTemplate: function (code, url) { return transform(code, [HTML_FILE_EXTENSION, SVG_FILE_EXTENSION], url); } | ||
transformTemplate: function (code, url) { return transform(code, [HTML_FILE_EXTENSION, SVG_FILE_EXTENSION], url); }, | ||
}; | ||
@@ -44,0 +44,0 @@ try { |
@@ -67,3 +67,3 @@ "use strict"; | ||
return ast.constructor.name === 'ASTWithSource'; | ||
} | ||
}, | ||
}; |
@@ -96,3 +96,3 @@ "use strict"; | ||
animation: normalizeTransformed({ code: inlineAnimation.text }), | ||
node: inlineAnimation | ||
node: inlineAnimation, | ||
}); }); | ||
@@ -107,3 +107,3 @@ }); | ||
template: normalizeTransformed(config_1.Config.transformTemplate(inlineTemplate.text)), | ||
url: undefined | ||
url: undefined, | ||
}); }) | ||
@@ -115,3 +115,3 @@ .catch(function () { | ||
template: normalizeTransformed(config_1.Config.transformTemplate(template, url)), | ||
url: url | ||
url: url, | ||
}); }); | ||
@@ -127,3 +127,3 @@ }); | ||
node: inlineStyle, | ||
style: normalizeTransformed(config_1.Config.transformStyle(inlineStyle.text)) | ||
style: normalizeTransformed(config_1.Config.transformStyle(inlineStyle.text)), | ||
}); }); | ||
@@ -138,3 +138,3 @@ }) | ||
style: normalizeTransformed(config_1.Config.transformStyle(style, url)), | ||
url: url | ||
url: url, | ||
}); }); | ||
@@ -141,0 +141,0 @@ }); |
@@ -58,3 +58,3 @@ "use strict"; | ||
templateVisitorCtrl: basicTemplateAstVisitor_1.BasicTemplateAstVisitor, | ||
expressionVisitorCtrl: recursiveAngularExpressionVisitor_1.RecursiveAngularExpressionVisitor | ||
expressionVisitorCtrl: recursiveAngularExpressionVisitor_1.RecursiveAngularExpressionVisitor, | ||
}, _this._config || {}); | ||
@@ -61,0 +61,0 @@ return _this; |
@@ -16,3 +16,3 @@ "use strict"; | ||
expressionVisitorCtrl: recursiveAngularExpressionVisitor_1.RecursiveAngularExpressionVisitor, | ||
cssVisitorCtrl: basicCssAstVisitor_1.BasicCssAstVisitor | ||
cssVisitorCtrl: basicCssAstVisitor_1.BasicCssAstVisitor, | ||
}; | ||
@@ -25,3 +25,3 @@ }, | ||
return Object.assign(this.defaultConfig(), config || {}); | ||
} | ||
}, | ||
}; |
@@ -66,3 +66,3 @@ "use strict"; | ||
character: position - lineStarts[lineNumber], | ||
line: lineNumber | ||
line: lineNumber, | ||
}; | ||
@@ -69,0 +69,0 @@ } |
@@ -80,3 +80,3 @@ "use strict"; | ||
before: content.substring(startOffset, this.offset), | ||
after: content.substring(this.offset, endOffset + 1) | ||
after: content.substring(this.offset, endOffset + 1), | ||
}; | ||
@@ -83,0 +83,0 @@ } |
@@ -24,3 +24,3 @@ "use strict"; | ||
isHost: false, | ||
reference: ++refId + '-ref' | ||
reference: ++refId + '-ref', | ||
}, | ||
@@ -39,4 +39,4 @@ isComponent: false, | ||
ngContentSelectors: [], | ||
encapsulation: 0 | ||
} | ||
encapsulation: 0, | ||
}, | ||
}; | ||
@@ -96,5 +96,5 @@ }; | ||
encapsulation: this.encapsulation, | ||
summaryKind: summaryKind | ||
summaryKind: summaryKind, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -110,3 +110,3 @@ var type = { | ||
value: '', | ||
identifier: null | ||
identifier: null, | ||
}; | ||
@@ -118,3 +118,3 @@ var result; | ||
type: type, | ||
template: templateMetadata | ||
template: templateMetadata, | ||
}), template, defaultDirectives, [], [core_1.NO_ERRORS_SCHEMA], '').templateAst; | ||
@@ -142,3 +142,3 @@ }) | ||
rendererType: null, | ||
componentFactory: null | ||
componentFactory: null, | ||
}), template, defaultDirectives, [], [core_1.NO_ERRORS_SCHEMA], '').templateAst; | ||
@@ -166,3 +166,3 @@ }) | ||
rendererType: null, | ||
componentFactory: null | ||
componentFactory: null, | ||
}), template, defaultDirectives, [], [core_1.NO_ERRORS_SCHEMA], '').templateAst; | ||
@@ -190,3 +190,3 @@ }) | ||
rendererType: null, | ||
componentFactory: null | ||
componentFactory: null, | ||
}), template, defaultDirectives, [], [core_1.NO_ERRORS_SCHEMA], '', true).templateAst; | ||
@@ -214,3 +214,3 @@ }) | ||
componentFactory: null, | ||
guards: {} | ||
guards: {}, | ||
}), template, defaultDirectives, [], [core_1.NO_ERRORS_SCHEMA], '', true).templateAst; | ||
@@ -217,0 +217,0 @@ }); |
@@ -39,3 +39,3 @@ "use strict"; | ||
return config_1.Config.resolveUrl(_this.pathResolver.resolve(p, componentPath_1)); | ||
}) | ||
}), | ||
}; | ||
@@ -45,3 +45,3 @@ } | ||
templateUrl: config_1.Config.resolveUrl(null), | ||
styleUrls: [] | ||
styleUrls: [], | ||
}; | ||
@@ -48,0 +48,0 @@ }; |
@@ -144,3 +144,3 @@ "use strict"; | ||
new InterpolationWhitespaceVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart), | ||
new SemicolonTemplateVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart) | ||
new SemicolonTemplateVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart), | ||
]; | ||
@@ -238,3 +238,3 @@ return _this; | ||
_this.visitors = [ | ||
new PipeWhitespaceVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.basePosition) | ||
new PipeWhitespaceVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.basePosition), | ||
]; | ||
@@ -265,3 +265,3 @@ return _this; | ||
expressionVisitorCtrl: ExpressionVisitorCtrl, | ||
templateVisitorCtrl: TemplateVisitorCtrl | ||
templateVisitorCtrl: TemplateVisitorCtrl, | ||
}; | ||
@@ -284,3 +284,3 @@ var walker = new ngWalker_1.NgWalker(sourceFile, this.getOptions(), walkerConfig); | ||
[true, OPTION_CHECK_SEMICOLON], | ||
[true, OPTION_CHECK_INTERPOLATION, OPTION_CHECK_PIPE, OPTION_CHECK_SEMICOLON] | ||
[true, OPTION_CHECK_INTERPOLATION, OPTION_CHECK_PIPE, OPTION_CHECK_SEMICOLON], | ||
], | ||
@@ -290,7 +290,7 @@ options: { | ||
enum: [OPTION_CHECK_INTERPOLATION, OPTION_CHECK_PIPE, OPTION_CHECK_SEMICOLON], | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
maxLength: 3, | ||
minLength: 1, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -301,3 +301,3 @@ optionsDescription: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n One (or both) of the following arguments must be provided:\n * `", "` - checks for whitespace before and after the interpolation characters.\n * `", "` - checks for whitespace before and after a pipe.\n * `", "` - checks for whitespace after semicolon.\n "], ["\n One (or both) of the following arguments must be provided:\n * \\`", "\\` - checks for whitespace before and after the interpolation characters.\n * \\`", "\\` - checks for whitespace before and after a pipe.\n * \\`", "\\` - checks for whitespace after semicolon.\n "])), OPTION_CHECK_INTERPOLATION, OPTION_CHECK_PIPE, OPTION_CHECK_SEMICOLON), | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -304,0 +304,0 @@ return Rule; |
@@ -40,6 +40,6 @@ "use strict"; | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
minLength: 0, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -50,3 +50,3 @@ optionsDescription: 'Supply a list of allowed component suffixes. Defaults to "Component".', | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -53,0 +53,0 @@ Rule.FAILURE_STRING = 'The name of the class %s should end with the suffix %s (https://angular.io/styleguide#style-02-03)'; |
@@ -68,16 +68,16 @@ "use strict"; | ||
_b[OPTION_ANIMATIONS] = { | ||
type: 'number' | ||
type: 'number', | ||
}, | ||
_b[OPTION_STYLES] = { | ||
type: 'number' | ||
type: 'number', | ||
}, | ||
_b[OPTION_TEMPLATE] = { | ||
type: 'number' | ||
type: 'number', | ||
}, | ||
_b), | ||
type: 'object' | ||
type: 'object', | ||
}, | ||
maxLength: 1, | ||
minLength: 0, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -88,3 +88,3 @@ optionsDescription: utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n It can take an optional object with the properties '", "', '", "' and '", "':\n * `", "` - number > 0 defining the maximum allowed inline lines for animations. Defaults to ", ".\n * `", "` - number > 0 defining the maximum allowed inline lines for styles. Defaults to ", ".\n * `", "` - number > 0 defining the maximum allowed inline lines for template. Defaults to ", ".\n "], ["\n It can take an optional object with the properties '", "', '", "' and '", "':\n * \\`", "\\` - number > 0 defining the maximum allowed inline lines for animations. Defaults to ", ".\n * \\`", "\\` - number > 0 defining the maximum allowed inline lines for styles. Defaults to ", ".\n * \\`", "\\` - number > 0 defining the maximum allowed inline lines for template. Defaults to ", ".\n "])), OPTION_ANIMATIONS, OPTION_STYLES, OPTION_TEMPLATE, OPTION_ANIMATIONS, DEFAULT_ANIMATIONS_LIMIT, OPTION_STYLES, DEFAULT_STYLES_LIMIT, OPTION_TEMPLATE, DEFAULT_TEMPLATE_LIMIT), | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -91,0 +91,0 @@ Rule.FAILURE_STRING = "Exceeds the maximum allowed inline lines for %s. Defined limit: %s / total lines: %s (" + STYLE_GUIDE_LINK + ")"; |
@@ -64,3 +64,3 @@ "use strict"; | ||
[true, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, 'myPrefix', selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE], | ||
[true, [selectorPropertyBase_1.OPTION_TYPE_ELEMENT, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE], 'myPrefix', selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE] | ||
[true, [selectorPropertyBase_1.OPTION_TYPE_ELEMENT, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE], 'myPrefix', selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE], | ||
], | ||
@@ -70,3 +70,3 @@ options: { | ||
{ | ||
enum: [selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, selectorPropertyBase_1.OPTION_TYPE_ELEMENT] | ||
enum: [selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, selectorPropertyBase_1.OPTION_TYPE_ELEMENT], | ||
}, | ||
@@ -77,18 +77,18 @@ { | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
{ | ||
type: 'string' | ||
} | ||
] | ||
type: 'string', | ||
}, | ||
], | ||
}, | ||
{ | ||
enum: [selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE, selectorPropertyBase_1.OPTION_STYLE_KEBAB_CASE] | ||
} | ||
enum: [selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE, selectorPropertyBase_1.OPTION_STYLE_KEBAB_CASE], | ||
}, | ||
], | ||
maxLength: 3, | ||
minLength: 3, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -99,3 +99,3 @@ optionsDescription: utils_1.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 "])), selectorPropertyBase_1.OPTION_TYPE_ELEMENT, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, selectorPropertyBase_1.OPTION_STYLE_KEBAB_CASE, selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE), | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -102,0 +102,0 @@ return Rule; |
@@ -45,3 +45,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -57,6 +57,3 @@ Rule.FAILURE_STRING = 'Decorator out of context for "@%s()"'; | ||
var getClassDecoratorName = function (klass) { | ||
return typescript_1.createNodeArray(klass.decorators) | ||
.map(utils_2.getDecoratorName) | ||
.filter(isNotNullOrUndefined_1.isNotNullOrUndefined) | ||
.find(utils_2.isAngularClassDecorator); | ||
return typescript_1.createNodeArray(klass.decorators).map(utils_2.getDecoratorName).filter(isNotNullOrUndefined_1.isNotNullOrUndefined).find(utils_2.isAngularClassDecorator); | ||
}; | ||
@@ -63,0 +60,0 @@ var isDeclarationLike = function (node) { |
@@ -45,3 +45,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -48,0 +48,0 @@ Rule.FAILURE_STRING = 'The method "%s" is not allowed for class "%s" because it is decorated with "%s"'; |
@@ -40,6 +40,6 @@ "use strict"; | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
minLength: 0, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -50,3 +50,3 @@ optionsDescription: 'Supply a list of allowed component suffixes. Defaults to "Directive".', | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -53,0 +53,0 @@ Rule.FAILURE_STRING = 'The name of the class %s should end with the suffix %s (https://angular.io/styleguide#style-02-03)'; |
@@ -63,3 +63,3 @@ "use strict"; | ||
[true, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, 'myPrefix', selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE], | ||
[true, [selectorPropertyBase_1.OPTION_TYPE_ELEMENT, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE], 'myPrefix', selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE] | ||
[true, [selectorPropertyBase_1.OPTION_TYPE_ELEMENT, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE], 'myPrefix', selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE], | ||
], | ||
@@ -69,3 +69,3 @@ options: { | ||
{ | ||
enum: [selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, selectorPropertyBase_1.OPTION_TYPE_ELEMENT] | ||
enum: [selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, selectorPropertyBase_1.OPTION_TYPE_ELEMENT], | ||
}, | ||
@@ -76,18 +76,18 @@ { | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
{ | ||
type: 'string' | ||
} | ||
] | ||
type: 'string', | ||
}, | ||
], | ||
}, | ||
{ | ||
enum: [selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE, selectorPropertyBase_1.OPTION_STYLE_KEBAB_CASE] | ||
} | ||
enum: [selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE, selectorPropertyBase_1.OPTION_STYLE_KEBAB_CASE], | ||
}, | ||
], | ||
maxLength: 3, | ||
minLength: 3, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -98,3 +98,3 @@ optionsDescription: utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n Options accept three obligatory items as an array:\n 1. `", "` or `", "` forces directives 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 directive selectors.\n 3. `", "` or `", "` allows you to pick a case.\n "], ["\n Options accept three obligatory items as an array:\n 1. \\`", "\\` or \\`", "\\` forces directives 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 directive selectors.\n 3. \\`", "\\` or \\`", "\\` allows you to pick a case.\n "])), selectorPropertyBase_1.OPTION_TYPE_ELEMENT, selectorPropertyBase_1.OPTION_TYPE_ATTRIBUTE, selectorPropertyBase_1.OPTION_STYLE_KEBAB_CASE, selectorPropertyBase_1.OPTION_STYLE_CAMEL_CASE), | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -101,0 +101,0 @@ return Rule; |
@@ -36,3 +36,3 @@ "use strict"; | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -39,0 +39,0 @@ Rule.FAILURE_STRING = "Import statement's curly braces must be spaced exactly by a space to the right and a space to the left"; |
@@ -35,3 +35,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -38,0 +38,0 @@ Rule.FAILURE_STRING = "@" + ATTRIBUTE + " is considered bad practice. Use @Input instead."; |
@@ -28,7 +28,7 @@ "use strict"; | ||
utils_2.AngularLifecycleInterfaces.DoCheck, | ||
utils_2.AngularLifecycleInterfaces.OnChanges | ||
utils_2.AngularLifecycleInterfaces.OnChanges, | ||
]; | ||
var LIFECYCLE_METHODS = [ | ||
utils_2.AngularLifecycleMethods.ngDoCheck, | ||
utils_2.AngularLifecycleMethods.ngOnChanges | ||
utils_2.AngularLifecycleMethods.ngOnChanges, | ||
]; | ||
@@ -52,3 +52,3 @@ exports.getFailureMessage = function (failureParameters) { return sprintf_js_1.sprintf(failureParameters.message); }; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -72,3 +72,3 @@ Rule.FAILURE_STRING_INTERFACE_HOOK = utils_1.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Implementing ", " and ", " in a class is not recommended\n "], ["\n Implementing ", " and ", " in a class is not recommended\n "])), utils_2.AngularLifecycleInterfaces.DoCheck, utils_2.AngularLifecycleInterfaces.OnChanges); | ||
var failure = exports.getFailureMessage({ | ||
message: Rule.FAILURE_STRING_INTERFACE_HOOK | ||
message: Rule.FAILURE_STRING_INTERFACE_HOOK, | ||
}); | ||
@@ -83,3 +83,3 @@ context.addFailureAtNode(node, failure); | ||
var failure = exports.getFailureMessage({ | ||
message: Rule.FAILURE_STRING_METHOD_HOOK | ||
message: Rule.FAILURE_STRING_METHOD_HOOK, | ||
}); | ||
@@ -86,0 +86,0 @@ context.addFailureAtNode(node, failure); |
@@ -35,3 +35,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -38,0 +38,0 @@ Rule.FAILURE_STRING = "Avoid using `" + exports.FORWARD_REF + "`"; |
@@ -31,3 +31,3 @@ "use strict"; | ||
errorMessage: Rule.FAILURE_STRING, | ||
propertyName: METADATA_PROPERTY_NAME | ||
propertyName: METADATA_PROPERTY_NAME, | ||
}, options) || this; | ||
@@ -43,3 +43,3 @@ } | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -46,0 +46,0 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Use @", " or\n @", " rather than the `", "` metadata property (", ")\n "], ["\n Use @", " or\n @", " rather than the \\`", "\\` metadata property (", ")\n "])), utils_2.AngularInnerClassDecorators.HostBinding, utils_2.AngularInnerClassDecorators.HostListener, METADATA_PROPERTY_NAME, STYLE_GUIDE_LINK); |
@@ -51,7 +51,7 @@ "use strict"; | ||
{ | ||
type: 'string' | ||
} | ||
type: 'string', | ||
}, | ||
], | ||
minLength: 1, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -62,3 +62,3 @@ optionsDescription: 'Options accept a string array of disallowed input prefixes.', | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -65,0 +65,0 @@ Rule.FAILURE_STRING = '@Inputs should not be prefixed by %s'; |
@@ -43,3 +43,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -89,3 +89,3 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n In the class \"%s\", the directive input property \"%s\" should not be renamed.\n However, you should use an alias when the directive name is also an input property, and the directive name\n doesn't describe the property. In this last case, you can disable this rule with `tslint:disable-next-line:no-input-rename`.\n "], ["\n In the class \"%s\", the directive input property \"%s\" should not be renamed.\n However, you should use an alias when the directive name is also an input property, and the directive name\n doesn't describe the property. In this last case, you can disable this rule with \\`tslint:disable-next-line:no-input-rename\\`.\n "]))); | ||
'aria-valuenow', | ||
'aria-valuetext' | ||
'aria-valuetext', | ||
]); | ||
@@ -92,0 +92,0 @@ var Walker = (function (_super) { |
@@ -31,3 +31,3 @@ "use strict"; | ||
errorMessage: Rule.FAILURE_STRING, | ||
propertyName: METADATA_PROPERTY_NAME | ||
propertyName: METADATA_PROPERTY_NAME, | ||
}, options) || this; | ||
@@ -43,3 +43,3 @@ } | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -46,0 +46,0 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Use @", " rather than the `", "` metadata property (", ")\n "], ["\n Use @", " rather than the \\`", "\\` metadata property (", ")\n "])), utils_2.AngularInnerClassDecorators.Input, METADATA_PROPERTY_NAME, STYLE_GUIDE_LINK); |
@@ -37,3 +37,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -40,0 +40,0 @@ Rule.FAILURE_STRING = 'Avoid explicit calls to lifecycle methods'; |
@@ -192,3 +192,3 @@ "use strict"; | ||
'waiting', | ||
'wheel' | ||
'wheel', | ||
]); | ||
@@ -214,3 +214,3 @@ exports.getFailureMessage = function (failureParameters) { | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -217,0 +217,0 @@ Rule.FAILURE_STRING = 'In the class "%s", the output property "%s" should not be named or renamed as a native event'; |
@@ -38,3 +38,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -41,0 +41,0 @@ Rule.FAILURE_STRING = 'In the class "%s", the output property "%s" should not be prefixed with on'; |
@@ -36,3 +36,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -39,0 +39,0 @@ Rule.FAILURE_STRING = '@Outputs should not be renamed'; |
@@ -31,3 +31,3 @@ "use strict"; | ||
errorMessage: Rule.FAILURE_STRING, | ||
propertyName: METADATA_PROPERTY_NAME | ||
propertyName: METADATA_PROPERTY_NAME, | ||
}, options) || this; | ||
@@ -43,3 +43,3 @@ } | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -46,0 +46,0 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Use @", " rather than the `", "` metadata property (", ")\n "], ["\n Use @", " rather than the \\`", "\\` metadata property (", ")\n "])), utils_2.AngularInnerClassDecorators.Output, METADATA_PROPERTY_NAME, STYLE_GUIDE_LINK); |
@@ -41,3 +41,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -44,0 +44,0 @@ Rule.FAILURE_STRING = 'Impure pipe declared in class %s'; |
@@ -30,3 +30,3 @@ "use strict"; | ||
errorMessage: Rule.FAILURE_STRING, | ||
propertyName: METADATA_PROPERTY_NAME | ||
propertyName: METADATA_PROPERTY_NAME, | ||
}, options) || this; | ||
@@ -41,3 +41,3 @@ } | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -44,0 +44,0 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Use @", ",\n @", ",\n @", "\n or @", "\n rather than the `", "` metadata property\n "], ["\n Use @", ",\n @", ",\n @", "\n or @", "\n rather than the \\`", "\\` metadata property\n "])), utils_2.AngularInnerClassDecorators.ContentChild, utils_2.AngularInnerClassDecorators.ContentChildren, utils_2.AngularInnerClassDecorators.ViewChild, utils_2.AngularInnerClassDecorators.ViewChildren, METADATA_PROPERTY_NAME); |
@@ -64,3 +64,3 @@ "use strict"; | ||
return targetAttr ? targetAttr.value : undefined; | ||
} | ||
}, | ||
}); | ||
@@ -99,3 +99,3 @@ var ElementVisitor = (function (_super) { | ||
return (ast.inputs || []).some(function (i) { return i.name === 'className' || i.name === 'ngClass'; }); | ||
} | ||
}, | ||
}; | ||
@@ -138,3 +138,3 @@ var ElementFilterVisitor = (function (_super) { | ||
typescriptOnly: true, | ||
hasFix: true | ||
hasFix: true, | ||
}; | ||
@@ -141,0 +141,0 @@ return Rule; |
{ | ||
"name": "codelyzer", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Linting for Angular applications, following angular.io/styleguide.", | ||
@@ -46,4 +46,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"@angular/compiler": ">=2.3.1 <11.0.0 || >9.0.0-beta <11.0.0 || >9.1.0-beta <11.0.0 || >9.2.0-beta <11.0.0", | ||
"@angular/core": ">=2.3.1 <11.0.0 || >9.0.0-beta <11.0.0 || >9.1.0-beta <11.0.0 || >9.2.0-beta <11.0.0", | ||
"@angular/compiler": ">=2.3.1 <12.0.0 || ^11.0.0-next || ^11.1.0-next || ^11.2.0-next", | ||
"@angular/core": ">=2.3.1 <12.0.0 || ^11.0.0-next || ^11.1.0-next || ^11.2.0-next", | ||
"tslint": "^5.0.0 || ^6.0.0" | ||
@@ -50,0 +50,0 @@ }, |
@@ -54,11 +54,14 @@ "use strict"; | ||
description: 'Enforce consistent prefix for pipes.', | ||
optionExamples: [[true, 'myPrefix'], [true, 'myPrefix', 'myOtherPrefix']], | ||
optionExamples: [ | ||
[true, 'myPrefix'], | ||
[true, 'myPrefix', 'myOtherPrefix'], | ||
], | ||
options: { | ||
items: [ | ||
{ | ||
type: 'string' | ||
} | ||
type: 'string', | ||
}, | ||
], | ||
minLength: 1, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -69,3 +72,3 @@ optionsDescription: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n * The list of arguments are supported prefixes (given as strings).\n "], ["\n * The list of arguments are supported prefixes (given as strings).\n "]))), | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -72,0 +75,0 @@ Rule.FAILURE_STRING = "The name of the Pipe decorator of class %s should start with prefix %s, however its value is \"%s\""; |
@@ -49,3 +49,3 @@ "use strict"; | ||
{ | ||
type: 'boolean' | ||
type: 'boolean', | ||
}, | ||
@@ -55,10 +55,10 @@ { | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
type: 'array', | ||
uniqueItems: true | ||
uniqueItems: true, | ||
}, | ||
type: 'object' | ||
} | ||
] | ||
type: 'object', | ||
}, | ||
], | ||
}; | ||
@@ -130,4 +130,4 @@ var DEFAULT_OPTIONS = (_a = {}, | ||
_c[OPTION_SETTERS] = true, | ||
_c) | ||
] | ||
_c), | ||
], | ||
], | ||
@@ -144,3 +144,3 @@ options: { | ||
_f), | ||
type: 'object' | ||
type: 'object', | ||
}, | ||
@@ -151,3 +151,3 @@ optionsDescription: utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n An optional object with optional `", "`, `", "`, `", "`, `", "`, `", "` and `", "` properties.\n\n The properties can be specifed as booleans or as objects with the property `", "` containing the names of the decorators that should be ignored. Note that if a declaration is decorated with multiple decorators and at least one of them is present in `", "`, this declaration is ignored.\n\n * `", "` - requires that ", " are on the same line as its decorator(s). Defaults to `true`.\n * `", "` - requires that ", " are on the same line as its decorator(s). Defaults to `true`.\n * `", "` - requires that parameter properties are on the same line as its decorator(s). Defaults to `true`.\n * `", "` - requires that ", " are on the same line as its decorator(s). Defaults to `true`.\n * `", "` - requires that ", " are on the same line as its decorator(s). Defaults to `true`.\n * `", "` - requires that ", " are on the same line as its decorator(s). Defaults to `true`.\n "], ["\n An optional object with optional \\`", "\\`, \\`", "\\`, \\`", "\\`, \\`", "\\`, \\`", "\\` and \\`", "\\` properties.\n\n The properties can be specifed as booleans or as objects with the property \\`", "\\` containing the names of the decorators that should be ignored. Note that if a declaration is decorated with multiple decorators and at least one of them is present in \\`", "\\`, this declaration is ignored.\n\n * \\`", "\\` - requires that ", " are on the same line as its decorator(s). Defaults to \\`true\\`.\n * \\`", "\\` - requires that ", " are on the same line as its decorator(s). Defaults to \\`true\\`.\n * \\`", "\\` - requires that parameter properties are on the same line as its decorator(s). Defaults to \\`true\\`.\n * \\`", "\\` - requires that ", " are on the same line as its decorator(s). Defaults to \\`true\\`.\n * \\`", "\\` - requires that ", " are on the same line as its decorator(s). Defaults to \\`true\\`.\n * \\`", "\\` - requires that ", " are on the same line as its decorator(s). Defaults to \\`true\\`.\n "])), OPTION_GETTERS, OPTION_METHODS, OPTION_PARAMETER_PROPERTIES, OPTION_PARAMETERS, OPTION_PROPERTIES, OPTION_SETTERS, OPTION_SAFELIST, OPTION_SAFELIST, OPTION_GETTERS, OPTION_GETTERS, OPTION_METHODS, OPTION_METHODS, OPTION_PARAMETER_PROPERTIES, OPTION_PARAMETERS, OPTION_PARAMETERS, OPTION_PROPERTIES, OPTION_PROPERTIES, OPTION_SETTERS, OPTION_SETTERS), | ||
type: 'style', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -154,0 +154,0 @@ Rule.FAILURE_STRING = "Place declarations on the same line as its decorator(s) (" + STYLE_GUIDE_LINK + ")"; |
@@ -43,3 +43,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -46,0 +46,0 @@ Rule.FAILURE_STRING = "The changeDetection value of a component should be set to ChangeDetectionStrategy." + ON_PUSH; |
@@ -35,3 +35,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -38,0 +38,0 @@ Rule.FAILURE_STRING = 'Prefer to declare `@Output` as readonly since they are not supposed to be reassigned'; |
@@ -78,3 +78,3 @@ [![npm version](https://badge.fury.io/js/codelyzer.svg)](https://badge.fury.io/js/codelyzer) | ||
TSLint will now complain that there are rules which require type checking. In order to fix this, use thw `-p` config option: | ||
TSLint will now complain that there are rules which require type checking. In order to fix this, use the `-p` config option: | ||
@@ -204,5 +204,3 @@ ```bash | ||
selector: 'codelyzer', | ||
template: ` | ||
<h1>Hello {{ name }}!</h1> | ||
` | ||
template: ` <h1>Hello {{ name }}!</h1> `, | ||
}) | ||
@@ -360,3 +358,3 @@ class Codelyzer { | ||
selector: 'codelyzer', | ||
templateUrl: './codelyzer.component.html' | ||
templateUrl: './codelyzer.component.html', | ||
}) | ||
@@ -414,3 +412,3 @@ class Codelyzer {} | ||
// None = 0b000, Error = 0b001, Info = 0b011, Debug = 0b111 | ||
logLevel: 0b111 | ||
logLevel: 0b111, | ||
}; | ||
@@ -417,0 +415,0 @@ ``` |
@@ -37,3 +37,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -40,0 +40,0 @@ Rule.FAILURE_STRING = 'The ./ prefix is standard syntax for relative URLs. (https://angular.io/styleguide#style-05-04)'; |
@@ -38,3 +38,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -41,0 +41,0 @@ Rule.FAILURE_STRING = '%s element must have a text alternative.'; |
@@ -64,3 +64,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -67,0 +67,0 @@ Rule.FAILURE_STRING = '<%s/> element should have content'; |
@@ -41,8 +41,8 @@ "use strict"; | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
type: 'array', | ||
uniqueItems: true | ||
uniqueItems: true, | ||
}, | ||
type: 'object' | ||
type: 'object', | ||
}; | ||
@@ -97,3 +97,3 @@ var DEFAULT_CONTROL_COMPONENTS = ['button', 'input', 'meter', 'output', 'progress', 'select', 'textarea']; | ||
_a[OPTION_CONTROL_COMPONENTS] = ['app-input'], | ||
_a) | ||
_a), | ||
], | ||
@@ -106,4 +106,4 @@ [ | ||
_b[OPTION_LABEL_COMPONENTS] = ['app-label'], | ||
_b) | ||
] | ||
_b), | ||
], | ||
], | ||
@@ -117,3 +117,3 @@ options: { | ||
_c), | ||
type: 'object' | ||
type: 'object', | ||
}, | ||
@@ -123,3 +123,3 @@ optionsDescription: utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n An optional object with optional `", "`, `", "` and `", "` properties.\n\n * `", "` - components that must be inside a label component. Default and non overridable values are\n ", ".\n * `", "` - attributes that must be set on label components. Default and non overridable values are\n ", ".\n * `", "` - components that act like a label. Default and non overridable values are\n ", ".\n "], ["\n An optional object with optional \\`", "\\`, \\`", "\\` and \\`", "\\` properties.\n\n * \\`", "\\` - components that must be inside a label component. Default and non overridable values are\n ", ".\n * \\`", "\\` - attributes that must be set on label components. Default and non overridable values are\n ", ".\n * \\`", "\\` - components that act like a label. Default and non overridable values are\n ", ".\n "])), OPTION_CONTROL_COMPONENTS, OPTION_LABEL_ATTRIBUTES, OPTION_LABEL_COMPONENTS, OPTION_CONTROL_COMPONENTS, getReadableItems(DEFAULT_CONTROL_COMPONENTS), OPTION_LABEL_ATTRIBUTES, getReadableItems(DEFAULT_LABEL_ATTRIBUTES), OPTION_LABEL_COMPONENTS, getReadableItems(DEFAULT_LABEL_COMPONENTS)), | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -126,0 +126,0 @@ Rule.FAILURE_STRING = 'A label component must be associated with a form element'; |
@@ -38,3 +38,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -41,0 +41,0 @@ Rule.FAILURE_MESSAGE = 'tabindex attribute cannot be positive'; |
@@ -63,3 +63,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -66,0 +66,0 @@ Rule.FAILURE_MESSAGE = 'Scope attribute can only be on <th> element'; |
@@ -47,3 +47,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -50,0 +50,0 @@ return Rule; |
@@ -42,3 +42,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -45,0 +45,0 @@ Rule.FAILURE_STRING = 'Invalid binding syntax. Use [(expr)] instead'; |
@@ -42,3 +42,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -45,0 +45,0 @@ Rule.FAILURE_STRING = 'click must be accompanied by either keyup, keydown or keypress event for accessibility'; |
@@ -42,7 +42,7 @@ "use strict"; | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
maxLength: 1, | ||
minLength: 0, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -53,3 +53,3 @@ optionsDescription: 'Determine the maximum number of Boolean operators allowed.', | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -56,0 +56,0 @@ Rule.DEFAULT_MAX_COMPLEXITY = 3; |
@@ -41,7 +41,7 @@ "use strict"; | ||
items: { | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
maxLength: 1, | ||
minLength: 0, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -52,3 +52,3 @@ optionsDescription: 'Determine the maximum number of the cyclomatic complexity.', | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -55,0 +55,0 @@ Rule.FAILURE_STRING = "The cyclomatic complexity exceeded the defined limit (cost '%s'). Your template should be refactored."; |
@@ -53,11 +53,15 @@ "use strict"; | ||
description: 'Ensures following best practices for i18n.', | ||
optionExamples: [[true, OPTION_CHECK_ID], [true, OPTION_CHECK_TEXT], [true, OPTION_CHECK_ID, OPTION_CHECK_TEXT]], | ||
optionExamples: [ | ||
[true, OPTION_CHECK_ID], | ||
[true, OPTION_CHECK_TEXT], | ||
[true, OPTION_CHECK_ID, OPTION_CHECK_TEXT], | ||
], | ||
options: { | ||
items: { | ||
enum: [OPTION_CHECK_ID, OPTION_CHECK_TEXT], | ||
type: 'string' | ||
type: 'string', | ||
}, | ||
maxLength: 2, | ||
minLength: 1, | ||
type: 'array' | ||
type: 'array', | ||
}, | ||
@@ -68,3 +72,3 @@ optionsDescription: utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n One (or both) of the following arguments must be provided:\n * `", "` Makes sure i18n attributes have ID specified\n * `", "` Makes sure there are no elements with text content but no i18n attribute\n "], ["\n One (or both) of the following arguments must be provided:\n * \\`", "\\` Makes sure i18n attributes have ID specified\n * \\`", "\\` Makes sure there are no elements with text content but no i18n attribute\n "])), OPTION_CHECK_ID, OPTION_CHECK_TEXT), | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -157,3 +161,3 @@ Rule.FAILURE_STRING_ATTR = 'Missing custom message identifier. For more information visit https://angular.io/guide/i18n'; | ||
new TemplateVisitorAttrCtrl(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart), | ||
new TemplateVisitorTextCtrl(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart) | ||
new TemplateVisitorTextCtrl(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart), | ||
]; | ||
@@ -160,0 +164,0 @@ return _this; |
@@ -37,3 +37,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -40,0 +40,0 @@ Rule.FAILURE_STRING_MOUSE_OVER = 'mouseover must be accompanied by focus event for accessibility'; |
@@ -44,3 +44,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -47,0 +47,0 @@ Rule.FAILURE_STRING = "Avoid using '" + ANY_TYPE_CAST_FUNCTION_NAME + "' in templates"; |
@@ -37,3 +37,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -40,0 +40,0 @@ Rule.FAILURE_STRING = 'autofocus attribute should not be used, as it reduces usability and accessibility for users.'; |
@@ -30,3 +30,3 @@ "use strict"; | ||
expressionVisitorCtrl: ExpressionVisitorCtrl, | ||
templateVisitorCtrl: TemplateVisitorCtrl | ||
templateVisitorCtrl: TemplateVisitorCtrl, | ||
}; | ||
@@ -43,3 +43,3 @@ var walker = new ngWalker_1.NgWalker(sourceFile, this.getOptions(), walkerConfig); | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -46,0 +46,0 @@ Rule.FAILURE_STRING = 'Avoid calling expressions in templates'; |
@@ -38,3 +38,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -41,0 +41,0 @@ Rule.FAILURE_STRING = 'Avoid using <%s/> elements as they create visual accessibility issues.'; |
@@ -45,3 +45,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -48,0 +48,0 @@ Rule.FAILURE_STRING_NEGATED_PIPE = 'Async pipes should not be negated. Use (observable | async) === (false | null | undefined) to check its value instead'; |
@@ -40,3 +40,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -74,3 +74,3 @@ Rule.FAILURE_STRING = 'Missing trackBy function in ngFor directive'; | ||
_this.visitors = new Set([ | ||
new TemplateUseTrackByFunctionVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart) | ||
new TemplateUseTrackByFunctionVisitor(_this.getSourceFile(), _this.getOptions(), _this.context, _this.templateStart), | ||
]); | ||
@@ -77,0 +77,0 @@ return _this; |
@@ -39,3 +39,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -42,0 +42,0 @@ Rule.FAILURE_STRING = 'The selector of the component "%s" is mandatory'; |
@@ -37,3 +37,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -40,0 +40,0 @@ Rule.FAILURE_STRING = "Using ViewEncapsulation." + NONE + " makes your styles global, which may have an unintended effect"; |
@@ -35,3 +35,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -38,0 +38,0 @@ Rule.FAILURE_STRING = "Classes decorated with @Injectable should use the 'providedIn' property"; |
@@ -42,3 +42,3 @@ "use strict"; | ||
type: 'functionality', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -45,0 +45,0 @@ Rule.FAILURE_STRING = "Lifecycle interface %s should be implemented for method %s. (" + STYLE_GUIDE_LINK + ")"; |
@@ -41,3 +41,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -44,0 +44,0 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n Classes that implement the ", " interface should be decorated\n with @", "\n "], ["\n Classes that implement the ", " interface should be decorated\n with @", "\n "])), PIPE_TRANSFORM, utils_2.AngularClassDecorators.Pipe); |
@@ -42,3 +42,3 @@ "use strict"; | ||
type: 'maintainability', | ||
typescriptOnly: true | ||
typescriptOnly: true, | ||
}; | ||
@@ -45,0 +45,0 @@ Rule.FAILURE_STRING = utils_1.dedent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n Classes decorated with @", " decorator should\n implement ", " interface\n "], ["\n Classes decorated with @", " decorator should\n implement ", " interface\n "])), utils_2.AngularClassDecorators.Pipe, PIPE_TRANSFORM); |
@@ -38,6 +38,4 @@ "use strict"; | ||
function decoratorArgument(dec) { | ||
return function_1.Maybe.lift(dec) | ||
.bind(callExpression) | ||
.bind(objectLiteralExpression); | ||
return function_1.Maybe.lift(dec).bind(callExpression).bind(objectLiteralExpression); | ||
} | ||
exports.decoratorArgument = decoratorArgument; |
@@ -22,3 +22,3 @@ "use strict"; | ||
var interactiveRoles = new Set(__spreadArrays(roleKeys, [ | ||
'toolbar' | ||
'toolbar', | ||
]).filter(function (name) { | ||
@@ -25,0 +25,0 @@ var role = aria_query_1.roles.get(name); |
@@ -34,3 +34,3 @@ "use strict"; | ||
}; | ||
} | ||
}, | ||
}; |
@@ -88,4 +88,4 @@ "use strict"; | ||
exports.AngularInnerClassDecorators.Self, | ||
exports.AngularInnerClassDecorators.SkipSelf | ||
]) | ||
exports.AngularInnerClassDecorators.SkipSelf, | ||
]), | ||
], | ||
@@ -99,4 +99,4 @@ [ | ||
exports.AngularInnerClassDecorators.Self, | ||
exports.AngularInnerClassDecorators.SkipSelf | ||
]) | ||
exports.AngularInnerClassDecorators.SkipSelf, | ||
]), | ||
], | ||
@@ -110,5 +110,5 @@ [ | ||
exports.AngularInnerClassDecorators.Self, | ||
exports.AngularInnerClassDecorators.SkipSelf | ||
]) | ||
] | ||
exports.AngularInnerClassDecorators.SkipSelf, | ||
]), | ||
], | ||
]); | ||
@@ -122,3 +122,3 @@ exports.ANGULAR_LIFECYCLE_INTERFACES = new Set(exports.angularLifecycleInterfaceKeys); | ||
[AngularClassDecorators.NgModule, new Set([])], | ||
[AngularClassDecorators.Pipe, new Set([AngularLifecycleMethods.ngOnDestroy])] | ||
[AngularClassDecorators.Pipe, new Set([AngularLifecycleMethods.ngOnDestroy])], | ||
]); | ||
@@ -125,0 +125,0 @@ exports.getClassName = function (node) { |
@@ -22,3 +22,3 @@ "use strict"; | ||
kind: 'Node', | ||
validate: function (node, options) { return (node.kind === syntaxKind ? validateFn(node, options) : function_1.Maybe.nothing); } | ||
validate: function (node, options) { return (node.kind === syntaxKind ? validateFn(node, options) : function_1.Maybe.nothing); }, | ||
}); }; | ||
@@ -30,3 +30,3 @@ } | ||
kind: 'NgComponent', | ||
validate: validate | ||
validate: validate, | ||
}; | ||
@@ -33,0 +33,0 @@ } |
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
570917
11173
454