Browse by type
Fast, deterministic CSS linting for modern projects.
This project is a Rust-first linter focused on CI-safe behavior and first-class support for:
.css.vue <style> blocks.svelte <style> blocksIt is currently in active development toward a scoped v1.
clint [path] [--config <path>] [--ignore-path <path>] [--targets <profile>] [--rule <rule_id>]... [--code-frame] [--profile] [--fix] [--format json|pretty] [--version|-v]
If path is omitted, clint defaults to ..
Core v1 commands:
clint <path>clint <path> --fixclint <path> --format jsonclint <path> --rule <rule_id>clint --versionExit codes:
0 no errors1 lint errors found2 runtime/config/internal failureFrom release binaries (no build):
curl -fsSL https://raw.githubusercontent.com/stolinski/csslint/main/scripts/install.sh | bash
The installer prefers the latest stable release and falls back to the newest tag when a stable asset for your platform is unavailable.
If the installer places clint in ~/.local/bin, make sure that directory is on your PATH:
export PATH="$HOME/.local/bin:$PATH"
Install a specific tag (including prereleases):
curl -fsSL https://raw.githubusercontent.com/stolinski/csslint/main/scripts/install.sh | bash -s -- --version v0.1.0-alpha.3
From this repo clone (build from source):
cargo install --path crates/csslint-cli --force
Or build locally and run from target:
cargo build --release
./target/release/clint --help
From GitHub Releases (after a tagged release):
clint-linux-x86_64.tar.gzclint-macos-arm64.tar.gzclint-macos-x86_64.tar.gzclint-windows-x86_64.zip.sha256 file.clint (or clint.exe) on your PATH.Quick try from extracted binary:
./clint --help
./clint /path/to/repo --format json
# lint
clint .
# print version
clint --version
# run only selected rule(s)
clint . --rule no_duplicate_selectors
# apply safe fixes
clint . --fix
# CI-friendly JSON output
clint . --format json
v1 config file:
.csslintSee docs/plan/08-cli-and-config.md and docs/rule-catalog-v1.md for canonical rule and preset behavior.
Default rules enabled by v1 (recommended preset):
no_unknown_properties (error)no_invalid_values (error)no_duplicate_selectors (error)no_duplicate_declarations (error)no_empty_rules (warn)no_legacy_vendor_prefixes (warn)no_overqualified_selectors (warn)prefer_logical_properties (warn)no_global_leaks (error)no_deprecated_features (warn)docs/README.mddocs/plan/README.mddocs/rule-catalog-v1.mddocs/json-output-schema-v1.mdbrowse all types & interfaces →
$ claude mcp add clint \
-- python -m otcore.mcp_server <graph>