
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@captive/stylelint-config
Advanced tools
StyleLint configuration presets
npm install --save-dev @captive/stylelint-config stylelint
Update your package.json
:
{
...
"scripts": {
...
"lint:style": "stylelint \"app/**/*.{css,scss}\"",
"format:style": "stylelint \"app/**/*.{css,scss}\" --fix"
},
"stylelint": {
"extends": [
"@captive/stylelint-config"
]
}
}
add stylelintignore
file :
/public
/node_modules
/tmp
/log
/vendor
/www
**/*.bundle.scss
**/generateur/**/*.scss
**/vendor/**/*.scss
**/root/**/*.scss
/app/assets/builds
**/*.min.css
To check your style :
npm run lint:style
To autocorrect your style :
npm run format:style
Features :
CSS
and SCSS
validationthe configuration is very strict, it is normal to have many errors
npm run format:style
create .stylelint_todo.cjs
for all non passing rules. It is advised to fix them later, rule by rule :
module.exports = {
rules: {}
}
update your package.json
:
{
...
"stylelint": {
"extends": [
"@captive/stylelint-config",
+ "./.stylelint_todo.cjs"
]
}
}
MIT © Julien Polo julien.polo@captive.fr
@captive/stylelint-config is maintained and funded by Captive. The names and logos for captive are trademarks of captive-studio.
We love open source software! See our other projects or hire us to design, develop, and grow your product.
FAQs
StyleLint configuration presets
The npm package @captive/stylelint-config receives a total of 158 weekly downloads. As such, @captive/stylelint-config popularity was classified as not popular.
We found that @captive/stylelint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.