Skip to content

Commit

Permalink
Merge pull request #334 from wKoza/fix_links_styleguide
Browse files Browse the repository at this point in the history
Fix links to angular.io styleguide
  • Loading branch information
mgechev committed Jun 18, 2017
2 parents 3a6d008 + 667318e commit 5a532b4
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/componentClassSuffixRule.ts
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/componentSelectorRule.ts
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/directiveClassSuffixRule.ts
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/directiveSelectorRule.ts
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/noInputRenameRule.ts
Expand Up @@ -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.`,
Expand Down
2 changes: 1 addition & 1 deletion src/noOutputRenameRule.ts
Expand Up @@ -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.`,
Expand Down
2 changes: 1 addition & 1 deletion src/useHostPropertyDecoratorRule.ts
Expand Up @@ -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 ` +
Expand Down
2 changes: 1 addition & 1 deletion src/useInputPropertyDecoratorRule.ts
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/useLifeCycleInterfaceRule.ts
Expand Up @@ -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.`,
Expand Down
2 changes: 1 addition & 1 deletion src/useOutputPropertyDecoratorRule.ts
Expand Up @@ -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.
Expand Down

0 comments on commit 5a532b4

Please sign in to comment.