Skip to content

Commit 22de2a6

Browse files
PapsOumgechev
authored andcommitted
docs: component-selector both element and attribute rule (#698)
* Update doc for both element and attribute rule Related to bug #307 * Shorten sentence for both items
1 parent a595f16 commit 22de2a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/componentSelectorRule.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export class Rule extends SelectorRule {
1616
optionExamples: [
1717
[true, OPTION_ELEMENT, 'my-prefix', OPTION_KEBAB_CASE],
1818
[true, OPTION_ELEMENT, ['ng', 'ngx'], OPTION_KEBAB_CASE],
19-
[true, OPTION_ATTRIBUTE, 'myPrefix', OPTION_CAMEL_CASE]
19+
[true, OPTION_ATTRIBUTE, 'myPrefix', OPTION_CAMEL_CASE],
20+
[true, [OPTION_ELEMENT, OPTION_ATTRIBUTE], 'myPrefix', OPTION_CAMEL_CASE]
2021
],
2122
options: {
2223
items: [
@@ -46,7 +47,7 @@ export class Rule extends SelectorRule {
4647
},
4748
optionsDescription: Utils.dedent`
4849
Options accept three obligatory items as an array:
49-
1. \`${OPTION_ELEMENT}\` or \`${OPTION_ATTRIBUTE}\` forces components either to be elements or attributes.
50+
1. \`${OPTION_ELEMENT}\` or \`${OPTION_ATTRIBUTE}\` forces components to be used as either elements, attributes, or both (not recommended)
5051
2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors.
5152
3. \`${OPTION_KEBAB_CASE}\` or \`${OPTION_CAMEL_CASE}\` allows you to pick a case.
5253
`,

0 commit comments

Comments
 (0)