
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@equisoft/stylelint-config
Advanced tools
This is Equisoft's stylelint config. This can be used with projects that rely on styled-components as stylelint now supports css-in-js syntax.
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 stylelint stylelint-order @equisoft/stylelint-config postcss postcss-styled-syntax
Then create a .stylelintrc file that uses Equisoft's configuration:
{
"extends": ["@equisoft/stylelint-config"]
}
Finally create a script in your package.json to easily run stylelint:
{
"scripts": {
"stylelint": "stylelint --config .stylelintrc --custom-formatter @equisoft/stylelint-config/formatter 'src/**/*.{css,scss,js,jsx,ts,tsx}'",
"stylelint:ci": "yarn stylelint"
}
}
Now you can use yarn stylelint to validate the code style of your files!
We strongly suggest that you enforce code style checks on your CI. For example, on Github Actions you can add a configuration similar to this one to your workflow:
stylelint:
name: Stylelint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup asdf-vm
uses: equisoft-actions/with-asdf-vm@v1
- name: Install NPM dependencies
uses: equisoft-actions/yarn-install@v1
- name: Run Stylelint
uses: equisoft-actions/yarn-stylelint@v1
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 configuration
The npm package @equisoft/stylelint-config receives a total of 185 weekly downloads. As such, @equisoft/stylelint-config popularity was classified as not popular.
We found that @equisoft/stylelint-config demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers