Skip to content

Commit

Permalink
Fix: Update default ignore list for CSS and HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
antross committed Jun 27, 2019
1 parent e4dbe33 commit 256c148
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/hint-compat-api/docs/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ default value is:
"-moz-appearance: none",
"-webkit-appearance: none",
"appearance: none",
"cursor"
"cursor",
"zoom: 1"
]
```

Expand Down
2 changes: 2 additions & 0 deletions packages/hint-compat-api/docs/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ default value is:
[
"crossorigin",
"integrity",
"link[rel=manifest]",
"main[role=main]",
"spellcheck"
]
```
Expand Down
3 changes: 2 additions & 1 deletion packages/hint-compat-api/src/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ export default class CSSCompatHint implements IHint {
'-moz-appearance: none',
'-webkit-appearance: none',
'appearance: none',
'cursor'
'cursor',
'zoom: 1'
], context.hintOptions);

context.on('parse::end::css', ({ ast, element, resource }) => {
Expand Down
2 changes: 2 additions & 0 deletions packages/hint-compat-api/src/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export default class HTMLCompatHint implements IHint {
const ignore = resolveIgnore([
'crossorigin',
'integrity',
'link[rel=manifest]',
'main[role=main]',
'spellcheck'
], context.hintOptions);

Expand Down

0 comments on commit 256c148

Please sign in to comment.