This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Commit 43b8bb7
authored
chore(infrastructure): Add
### What it does
* Adds `npm run lint:html` command
- Runs against `test/screenshot/spec/**/*.html` files (excluding `index.html`)
* Adds root `.htmllintrc` config file
- Unfortunately, [`htmllint`](https://www.npmjs.com/package/htmllint-cli) doesn't support disabling individual rules with inline comments.
- However, you can disable _all_ rules with a comment block:
```html
<a>Allowed tag</a>
<!-- htmllint-disable -->
<b>Banned tag</b>
<!-- htmllint-enable -->
<code>Allowed tag</code>
```
* Fixes linter errors in `button`, `card`, `drawer`, `radio`, `switch`, and `textfield` pages'
* Adds `<label>` elements to `radio` and `switch` pages:


### How to test
```bash
npm run lint:html
```npm run lint:html for screenshot pages (#3502)1 parent cd28c19 commit 43b8bb7
63 files changed
Lines changed: 3455 additions & 2442 deletions
File tree
- packages/mdc-switch
- test/screenshot
- spec
- mdc-button/mixins
- mdc-card/classes
- mdc-drawer
- classes
- mixins
- mdc-radio
- classes
- mixins
- mdc-select/issues
- mdc-switch
- classes
- mixins
- mdc-textfield
- classes
- issues
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments