![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
stylelint-selector-tag-no-without-class
Advanced tools
Styelint plugin to disallow certain tags without a qualifying classname in selectors
A stylelint plugin to disallow certain tags without a class qualifier in selectors.
For example, if this rule is configured for (only) the <div>
tag, the following patterns are considered violations:
div {}
.foo div {}
div .foo {}
div, .bar {}
div:hover {}
The following patterns are not considered violations:
div.foo {} /* (tag is qualified with a class) */
a {} /* (rule not configured for '<a>' tag) */
According to the HTML specification, tags like <div>
and <span>
do no inherently represent anything. It would therefore be strange to attach styling to such a generic container, even within a given context. We believe that tags like <div>
and <span>
should only have meaning (and thus receive corresponding style rules) when they have a class as an additional qualifier.
Install this package as a development dependency using NPM:
npm install --save-dev stylelint-selector-tag-no-without-class
Add the plugin and the corresponding rule to the stylelint configuration file, and configure the tags that should not be used as a selector without a qualifying classname:
// .stylelintrc
{
"plugins": [
"stylelint-selector-tag-no-without-class"
],
"rules": {
"plugin/selector-tag-no-without-class": ["div", "span"]
}
}
array|string
: ["array", "of", "tags", "or", "/regexes/"]|"tag"|"/regex/"
Specification of tags that should not occur without a class qualifier. If a string is surrounded with "/"
, it is interpreted as a regular expression. For example, "^/h\d+$/"
disallows using any section heading without a class qualifier.
This project adheres to Semantic Versioning. A list of notable changes for each release can be found in the changelog.
This plugin is released under the MIT license.
FAQs
Styelint plugin to disallow certain tags without a qualifying classname in selectors
The npm package stylelint-selector-tag-no-without-class receives a total of 3,841 weekly downloads. As such, stylelint-selector-tag-no-without-class popularity was classified as popular.
We found that stylelint-selector-tag-no-without-class demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.