Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@equisoft/stylelint-scss-config
Advanced tools
This projects hosts Equisoft's stylelint configuration for SASS.
The versioning of this project respects semver. That means your project's package.json can caret (^
) import it.
Install the libraries in your project:
yarn add --dev @equisoft/stylelint-scss-config stylelint
Then create a .stylelintrc file that uses Equisoft's configuration:
{
"extends": ["@equisoft/stylelint-scss-config"]
}
Finally create a script in your package.json to easily run stylelint:
{
"scripts": {
"stylelint": "stylelint 'src/**/*.{css,scss}'",
"stylelint:ci": "yarn stylelint"
}
}
Now you can use yarn stylelint
to validate the code style of your CSS files!
We strongly suggest that you enforce code style checks on your CI. For example, on CircleCI you can add a configuration similar to this one to your .circleci/config.yml:
stylelint:
executor: 'node'
steps:
- run: 'yarn stylelint:ci'
Stylelint supports exclusion of globs in .stylelintignore. One way to gradually migrate a legacy code base to this configuration is to exclude all source files and add conforming files one at a time. To achieve this, add this key to your ".stylelintignore" file:
src/**/*.scss
!src/contacts/**/*.scss
Note how an entry prefixed by !
is added to re-include some source files.
For more information on this technique, you can read the stylelint documentation.
FAQs
Equisoft's stylelint SASS configuration.
We found that @equisoft/stylelint-scss-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.