Skip to content

lint-staged / pre-commit

dscheck rules are ordinary eslint/stylelint rules, so if those already run in lint-staged, you’re done. To run the CLI directly on staged files:

package.json
{
"lint-staged": {
"*.{css,scss,tsx,jsx}": "dscheck check"
}
}

For the Python pre-commit framework:

.pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: dscheck
name: dscheck
entry: npx dscheck-cli check
language: system
files: \.(css|scss|tsx|jsx)$