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:
{ "lint-staged": { "*.{css,scss,tsx,jsx}": "dscheck check" }}For the Python pre-commit framework:
repos: - repo: local hooks: - id: dscheck name: dscheck entry: npx dscheck-cli check language: system files: \.(css|scss|tsx|jsx)$