Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Valid tag name #10

Merged
merged 8 commits into from
Mar 26, 2021
Merged

Valid tag name #10

merged 8 commits into from
Mar 26, 2021

Conversation

keithamus
Copy link
Contributor

This adds the valid-tag-name rule.

This rule enforces that calls to customElements.define or customElements.whenDefined express a valid tag name. There are certain mandatory rules a tag name must follow - such as starting with a letter, and including one dash. This rule will check the name follows these rules.

In addition, this rule can be customised to perform additional checks, such as requiring a prefix, or disallowing known prefixes such as x-.

Refs #3

@keithamus keithamus mentioned this pull request Mar 24, 2021
16 tasks
Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me

@keithamus keithamus merged commit e4d7757 into main Mar 26, 2021
@keithamus keithamus deleted the valid-tag-name branch March 26, 2021 16:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants