dayflower/tw-lint
Lint Tailwind CSS class usage via the Tailwind CSS language server, with inline annotations on the run and pull request.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| globs | Whitespace- or newline-separated glob patterns to lint. Leave empty to use the built-in defaults. | no | "" |
| working-directory | Project root directory to lint from (CLI `--cwd`). | no | . |
| config | Path to a linter config file (JSON). | no | "" |
| severity | Newline-separated `rule=level` overrides (e.g. `cssConflict=error`). | no | "" |
| tailwind-config | Force a specific Tailwind config file. | no | "" |
| max-warnings | Number of warnings that triggers a failing run. | no | "" |
| quiet | Report errors only. | no | false |
| fix | Automatically fix problems and write changes to files. | no | false |
| fix-dry-run | Compute fixes without writing changes to files. | no | false |
| fix-passes | Maximum number of fix passes when fixing (default 10; 0 or 1 = single pass). | no | "" |
| report-fixed | List the fixes applied when fixing. | no | "" |
| error-on-no-project | Fail the run when no Tailwind project is detected. Set to `false` to treat it as success. | no | true |
| verbose | Print language server diagnostics to the log. | no | false |
Outputs
| name | description |
|---|---|
| error-count | Total number of errors found. |
| warning-count | Total number of warnings found. |
| fix-count | Total number of fixes applied. |