Files
cyberduck/README-LINTING.md
2026-03-09 11:33:07 +01:00

23 lines
635 B
Markdown

SASS linting & formatting
=========================
This project uses Stylelint (for SCSS linting) and Prettier (for formatting).
Install dev dependencies:
```bash
npm install -D stylelint stylelint-config-standard-scss stylelint-scss stylelint-order postcss-scss prettier husky lint-staged
```
Available scripts:
```bash
npm run lint:css # run stylelint
npm run format:css # run prettier on styles
npm run prepare # sets up husky hooks (run after npm install)
```
Pre-commit hook
We use `lint-staged` to run formatting/lint fixes on staged SCSS files. The hook runs `prettier --write` followed by `stylelint --fix`.