Skip to content

Commit

Permalink
Fix selector-type-case false positive for model
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouvedia committed May 25, 2024
1 parent 5f366b6 commit 7266aeb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-cups-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `selector-type-case` false positive for `model`
8 changes: 7 additions & 1 deletion lib/reference/selectors.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ const deprecatedHtmlTypeSelectors = new Set([
/** @type {Set<string>} */
const standardHtmlTypeSelectors = new Set(htmlTags);

const experimentalHtmlTypeSelectors = new Set(['fencedframe', 'listbox', 'portal', 'selectlist']);
const experimentalHtmlTypeSelectors = new Set([
'fencedframe',
'listbox',
'model',
'portal',
'selectlist',
]);

const htmlTypeSelectors = uniteSets(
deprecatedHtmlTypeSelectors,
Expand Down
8 changes: 7 additions & 1 deletion lib/reference/selectors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ const deprecatedHtmlTypeSelectors = new Set([
/** @type {Set<string>} */
const standardHtmlTypeSelectors = new Set(htmlTags);

const experimentalHtmlTypeSelectors = new Set(['fencedframe', 'listbox', 'portal', 'selectlist']);
const experimentalHtmlTypeSelectors = new Set([
'fencedframe',
'listbox',
'model',
'portal',
'selectlist',
]);

export const htmlTypeSelectors = uniteSets(
deprecatedHtmlTypeSelectors,
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/selector-type-no-unknown/__tests__/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ testRule({
description: 'svg tags',
},
{
code: 'fencedframe, listbox, portal, selectlist {}',
code: 'fencedframe, listbox, model, portal, selectlist {}',
},
{
code: 'foreignObject {}',
Expand Down

0 comments on commit 7266aeb

Please sign in to comment.