Socket
Book a DemoInstallSign in
Socket

@etchteam/stylelint-config

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etchteam/stylelint-config

Etch's standard eslint config

latest
Source
npmnpm
Version
1.7.2
Version published
Maintainers
5
Created
Source

@etchteam/stylelint

The stylelint config that we use at Etch

Install

npm i -D stylelint prettier @etchteam/stylelint-config

Usage

echo "module.exports = { extends: ['@etchteam/stylelint-config'] };" > stylelint.config.cjs

With lint-staged

New project

Run the following:

npm i -D husky lint-staged

echo "module.exports = { '*.{css,scss}': 'stylelint --fix' };" > lint-staged.config.cjs

npx husky init

echo "npx --no-install -- lint-staged" > .husky/pre-commit

Existing project with husky and lint staged

Add the following to your lint-staged config:

'*.{css,scss}': 'stylelint --fix'

Usage with VSCode

New project with no VSCode config

Run the following:

mkdir .vscode

echo "{ \"editor.formatOnSave\": false, \"editor.codeActionsOnSave\": { \"source.fixAll.stylelint\": true } }" > .vscode/settings.json

Exisiting project with VSCode config

Add the following to .vscode/settings.json:

"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
  "source.fixAll.stylelint": true
}

Keywords

stylelint

FAQs

Package last updated on 26 Feb 2025

Did you know?

Socket

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.

Install

Related posts