tailwind-lint 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.d.cts ADDED
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,35 @@
1
+ import { Diagnostic } from "vscode-languageserver";
2
+
3
+ //#region src/types.d.ts
4
+ interface LintFileResult {
5
+ path: string;
6
+ diagnostics: Diagnostic[];
7
+ fixed?: boolean;
8
+ fixedCount?: number;
9
+ }
10
+ interface LintOptions {
11
+ cwd: string;
12
+ patterns: string[];
13
+ configPath?: string;
14
+ autoDiscover: boolean;
15
+ fix?: boolean;
16
+ verbose?: boolean;
17
+ onProgress?: (current: number, total: number, file: string) => void;
18
+ }
19
+ interface LintResult {
20
+ files: LintFileResult[];
21
+ totalFilesProcessed: number;
22
+ }
23
+ //#endregion
24
+ //#region src/linter.d.ts
25
+ declare function lint({
26
+ cwd,
27
+ patterns,
28
+ configPath,
29
+ autoDiscover,
30
+ fix,
31
+ verbose,
32
+ onProgress
33
+ }: LintOptions): Promise<LintResult>;
34
+ //#endregion
35
+ export { type LintFileResult, type LintOptions, type LintResult, lint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-lint",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "A command-line tool that uses the Tailwind CSS IntelliSense plugin to show linting suggestions for your Tailwind CSS classes",
5
5
  "keywords": [
6
6
  "tailwindcss",
@@ -32,6 +32,7 @@
32
32
  "bin": {
33
33
  "tailwind-lint": "./dist/cli.cjs"
34
34
  },
35
+ "types": "./dist/linter.d.ts",
35
36
  "files": [
36
37
  "dist",
37
38
  "README.md",
@@ -48,6 +49,7 @@
48
49
  "@biomejs/biome": "^2.3.12",
49
50
  "@types/node": "^25.0.10",
50
51
  "tsdown": "^0.20.1",
52
+ "typescript": "^5.9.3",
51
53
  "vitest": "^4.0.18"
52
54
  },
53
55
  "engines": {