Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@contactlab/stylelint-config
Advanced tools
Contactlab Stylelint modular configuration - inspired by @giotramu/stylelint-config
Contactlab Stylelint extensible and sharable configuration.
Inspired by @giotramu/stylelint-config
package.
It supports CSS or PostCSS syntax and CSS-in-JS solutions, like Styled Components, Emotion.js or Linaria.
Warning! This package needs Stylelint v15 (or higher) which has deprecated some rules, removed Nodejs v12 support and made Prettier integration smoother.
Install the configuration as a npm package:
npm i -D @contactlab/stylelint-config
# --- OR ---
yarn add -D @contactlab/stylelint-config
and then add it as extension in your Stylelint configuration file:
{
"extends": ["@contactlab/stylelint-config"]
}
In order to have support for CSS-in-JS tools, use the styled
config as extension:
{
"extends": ["@contactlab/stylelint-config/styled"]
}
Stylelint Config sorts the CSS property declarations by grouping them in the following order:
You can extend the configuration or overrides some rules. More details about the loading mechanism are available in the Stylelint documentation.
{
"extends": "@contactlab/stylelint-config",
"rules": {
"selector-id-pattern": null,
"selector-class-pattern": null
}
}
install the Stylelint plugin;
add the following code to your .vscode/settings.json
:
{
"css.validate": false,
"scss.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
},
"stylelint.validate": ["css"] // Add the type of file you want to validate (e.g. ["css", "scss", "typescript", "typescriptreact"])
}
highlight the CSS-in-JS syntax with the Styled Components plugin (optional)
Breaking changes:
Dependencies:
FAQs
Contactlab Stylelint modular configuration - inspired by @giotramu/stylelint-config
The npm package @contactlab/stylelint-config receives a total of 5 weekly downloads. As such, @contactlab/stylelint-config popularity was classified as not popular.
We found that @contactlab/stylelint-config demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.