
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@icelandair/stylelint-config
Advanced tools
This package provides Icelandair's stylelint as an extensible shared config extending stylelint-config-recommended.
Additionally it provides an optional csscomb config for automatic css/scss formatting.
Assuming you already have a valid package.json
:
yarn add -D @icelandair/stylelint-config stylelint
or
npm install --save-dev @icelandair/stylelint-config stylelint
If you are writing a React application or component your .stylelintrc will look like this:
{
"extends": "@icelandair/stylelint-config"
}
Is is possible to disable or activate additional rules.
Example:
{
"extends": "@icelandair/stylelint-config",
"rules": {
"max-nesting-depth": 4,
}
}
Full list of rules can be found in stylelints user guide.
To exlude files or folders, create a .stylelintignore file next to the stylelintrc. Documentation in the stylelint user guide
Install stylelint extension to atom, vsCode, sublime to get warnings when editing files.
Add a script in your package.json, example:
"lint:styles": "stylelint 'src/**/*.scss' --fix"
To utilise the csscomb config for automatic code formatting you will need to add a .csscomb file to the root of your project.
{
"extends": "node_modules/@icelandair/stylelint-config/csscomb.json"
}
Additionally you need to install the csscomb plugin to your editor and activate the format on save
option.
FAQs
Icelandair's stylelint config
We found that @icelandair/stylelint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.