From 667318e60ebcd03eb8b125c1a6bf940f7d5196e7 Mon Sep 17 00:00:00 2001 From: WilliamKoza Date: Sun, 18 Jun 2017 13:55:01 +0200 Subject: [PATCH] fix links to angular.io styleguide --- src/componentClassSuffixRule.ts | 2 +- src/componentSelectorRule.ts | 4 ++-- src/directiveClassSuffixRule.ts | 2 +- src/directiveSelectorRule.ts | 4 ++-- src/noInputRenameRule.ts | 2 +- src/noOutputRenameRule.ts | 2 +- src/useHostPropertyDecoratorRule.ts | 2 +- src/useInputPropertyDecoratorRule.ts | 2 +- src/useLifeCycleInterfaceRule.ts | 2 +- src/useOutputPropertyDecoratorRule.ts | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/componentClassSuffixRule.ts b/src/componentClassSuffixRule.ts index 179d7af7f..1e9ad6dde 100644 --- a/src/componentClassSuffixRule.ts +++ b/src/componentClassSuffixRule.ts @@ -14,7 +14,7 @@ export class Rule extends Lint.Rules.AbstractRule { ruleName: 'component-class-suffix', type: 'style', description: `Classes decorated with @Component must have suffix "Component" (or custom) in their name.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#02-03.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-02-03.`, rationale: `Consistent conventions make it easy to quickly identify and reference assets of different types.`, options: { type: 'array', diff --git a/src/componentSelectorRule.ts b/src/componentSelectorRule.ts index 96ec443c5..a125ec568 100644 --- a/src/componentSelectorRule.ts +++ b/src/componentSelectorRule.ts @@ -7,8 +7,8 @@ export class Rule extends SelectorRule { ruleName: 'component-selector', type: 'style', description: `Component selectors should follow given naming rules.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#02-07, https://angular.io/styleguide#!#05-02, ` + - `and https://angular.io/styleguide#!#05-03.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-02-07, https://angular.io/styleguide#style-05-02, ` + + `and https://angular.io/styleguide#style-05-03.`, rationale: Lint.Utils.dedent` * Consistent conventions make it easy to quickly identify and reference assets of different types. * Makes it easier to promote and share the component in other apps. diff --git a/src/directiveClassSuffixRule.ts b/src/directiveClassSuffixRule.ts index 70ba838b3..d18f29b1f 100644 --- a/src/directiveClassSuffixRule.ts +++ b/src/directiveClassSuffixRule.ts @@ -11,7 +11,7 @@ export class Rule extends Lint.Rules.AbstractRule { ruleName: 'directive-class-suffix', type: 'style', description: `Classes decorated with @Directive must have suffix "Directive" (or custom) in their name.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#02-03.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-02-03.`, rationale: `Consistent conventions make it easy to quickly identify and reference assets of different types.`, options: { type: 'array', diff --git a/src/directiveSelectorRule.ts b/src/directiveSelectorRule.ts index 310c01250..20c6d0f65 100644 --- a/src/directiveSelectorRule.ts +++ b/src/directiveSelectorRule.ts @@ -7,8 +7,8 @@ export class Rule extends SelectorRule { ruleName: 'directive-selector', type: 'style', description: `Directive selectors should follow given naming rules.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#02-07, https://angular.io/styleguide#!#05-02, ` + - `and https://angular.io/styleguide#!#05-03.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-02-07, https://angular.io/styleguide#style-05-02, ` + + `and https://angular.io/styleguide#style-05-03.`, rationale: Lint.Utils.dedent` * Consistent conventions make it easy to quickly identify and reference assets of different types. * Makes it easier to promote and share the directive in other apps. diff --git a/src/noInputRenameRule.ts b/src/noInputRenameRule.ts index 323589604..986c0e532 100644 --- a/src/noInputRenameRule.ts +++ b/src/noInputRenameRule.ts @@ -8,7 +8,7 @@ export class Rule extends Lint.Rules.AbstractRule { ruleName: 'no-input-rename', type: 'maintainability', description: `Disallows renaming directive inputs by providing a string to the decorator.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#05-13.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-05-13.`, rationale: `Two names for the same property (one private, one public) is inherently confusing.`, options: null, optionsDescription: `Not configurable.`, diff --git a/src/noOutputRenameRule.ts b/src/noOutputRenameRule.ts index 4e95f5dfc..856c018ee 100644 --- a/src/noOutputRenameRule.ts +++ b/src/noOutputRenameRule.ts @@ -8,7 +8,7 @@ export class Rule extends Lint.Rules.AbstractRule { ruleName: 'no-output-rename', type: 'maintainability', description: `Disallows renaming directive outputs by providing a string to the decorator.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#05-13.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-05-13.`, rationale: `Two names for the same property (one private, one public) is inherently confusing.`, options: null, optionsDescription: `Not configurable.`, diff --git a/src/useHostPropertyDecoratorRule.ts b/src/useHostPropertyDecoratorRule.ts index 564d0e5a5..caf3e4589 100644 --- a/src/useHostPropertyDecoratorRule.ts +++ b/src/useHostPropertyDecoratorRule.ts @@ -8,7 +8,7 @@ export class Rule extends UsePropertyDecorator { ruleName: 'use-host-property-decorator', type: 'style', description: `Use @HostProperty decorator rather than the \`host\` property of \`@Component\` and \`@Directive\` metadata.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#06-03.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-06-03.`, rationale: `The property associated with \`@HostBinding\` or the method associated with \`@HostListener\` ` + `can be modified only in a single place: in the directive's class. If you use the \`host\` metadata ` + `property, you must modify both the property declaration inside the controller, and the metadata ` + diff --git a/src/useInputPropertyDecoratorRule.ts b/src/useInputPropertyDecoratorRule.ts index b9ab8bce8..ee1db6941 100644 --- a/src/useInputPropertyDecoratorRule.ts +++ b/src/useInputPropertyDecoratorRule.ts @@ -8,7 +8,7 @@ export class Rule extends UsePropertyDecorator { ruleName: 'use-input-property-decorator', type: 'style', description: `Use \`@Input\` decorator rather than the \`inputs\` property of \`@Component\` and \`@Directive\` metadata.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#05-12.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-05-12.`, rationale: Lint.Utils.dedent` * It is easier and more readable to identify which properties in a class are inputs. * If you ever need to rename the property name associated with \`@Input\`, you can modify it in a single place. diff --git a/src/useLifeCycleInterfaceRule.ts b/src/useLifeCycleInterfaceRule.ts index 0d02accaf..8978fc33c 100644 --- a/src/useLifeCycleInterfaceRule.ts +++ b/src/useLifeCycleInterfaceRule.ts @@ -15,7 +15,7 @@ export class Rule extends Lint.Rules.AbstractRule { ruleName: 'use-life-cycle-interface', type: 'maintainability', description: `Ensure that components implement life cycle interfaces if they use them.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#09-01.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-09-01.`, rationale: `Interfaces prescribe typed method signatures. Use those signatures to flag spelling and syntax mistakes.`, options: null, optionsDescription: `Not configurable.`, diff --git a/src/useOutputPropertyDecoratorRule.ts b/src/useOutputPropertyDecoratorRule.ts index 70f677ef6..16ea72bd8 100644 --- a/src/useOutputPropertyDecoratorRule.ts +++ b/src/useOutputPropertyDecoratorRule.ts @@ -8,7 +8,7 @@ export class Rule extends UsePropertyDecorator { ruleName: 'use-output-property-decorator', type: 'style', description: `Use \`@Output\` decorator rather than the \`outputs\` property of \`@Component\` and \`@Directive\` metadata.`, - descriptionDetails: `See more at https://angular.io/styleguide#!#05-12.`, + descriptionDetails: `See more at https://angular.io/styleguide#style-05-12.`, rationale: Lint.Utils.dedent` * It is easier and more readable to identify which properties in a class are events. * If you ever need to rename the event name associated with \`@Output\`, you can modify it in a single place.