Skip to content

Commit

Permalink
docs: component-selector both element and attribute rule (#698)
Browse files Browse the repository at this point in the history
* Update doc for both element and attribute rule

Related to bug #307

* Shorten sentence for both items
  • Loading branch information
PapsOu authored and mgechev committed Aug 8, 2018
1 parent a595f16 commit 22de2a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/componentSelectorRule.ts
Expand Up @@ -16,7 +16,8 @@ export class Rule extends SelectorRule {
optionExamples: [
[true, OPTION_ELEMENT, 'my-prefix', OPTION_KEBAB_CASE],
[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]
],
options: {
items: [
Expand Down Expand Up @@ -46,7 +47,7 @@ export class Rule extends SelectorRule {
},
optionsDescription: Utils.dedent`
Options accept three obligatory items as an array:
1. \`${OPTION_ELEMENT}\` or \`${OPTION_ATTRIBUTE}\` forces components either to be elements or attributes.
1. \`${OPTION_ELEMENT}\` or \`${OPTION_ATTRIBUTE}\` forces components to be used as either elements, attributes, or both (not recommended)
2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors.
3. \`${OPTION_KEBAB_CASE}\` or \`${OPTION_CAMEL_CASE}\` allows you to pick a case.
`,
Expand Down

0 comments on commit 22de2a6

Please sign in to comment.