使用了特定框架或库的伪类但未正确配置lint工具:有些JavaScript框架或库可能会定义自己的伪类,如果lint工具没有配置为识别这些伪类,就会报告错误。解决selector-pseudo-class-no-unknown错误的方法或建议 检查伪类的拼写:确保你使用的伪类名称是正确的,并且符合CSS规范的拼写。 查阅CSS规范:如果你不确定某个伪类是否有效,...
What minimal example or steps are needed to reproduce the bug? :active-view-transition {} :active-view-transition-type(foo) {} What minimal configuration is needed to reproduce the bug? { "rules": { "selector-pseudo-class-no-unknown": tr...
],rules: {'selector-pseudo-class-no-unknown': [true, {ignorePseudoClasses: ['deep'], }, ], }, };
Fix selector-pseudo-class-no-unknown false positives for :recto, :verso and :nth() #8170 Merged jeddy3 merged 1 commit into stylelint:main from Mouvedia:fix-spcnu-page Dec 5, 2024 +35 −5 Conversation 2 Commits 1 Checks 17 Files changed 4 ...
Name: selector-pseudo-class-no-unknown Primary option: true Secondary options: ignorePseudoClasses: [] (user defined array of custom pseudo classes) Message: "Unexpected unknown pseudo-class selector" Lets make sure we include all the Level 4 selectors. jeddy3added status: ready to implementis...