catlint 1.2.1 → 1.3.0
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/index.cjs +1 -1
- package/dist/cli/index.d.cts +1 -0
- package/dist/index.d.cts +80 -0
- package/package.json +1 -1
- package/src/cli/index.ts +1 -1
- package/tsup.config.ts +1 -1
- package/dist/chunk-XMKWAQ3V.js +0 -4934
- package/dist/cli/index.js +0 -22995
- package/dist/index.js +0 -50
package/dist/index.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defaultConfig,
|
|
3
|
-
defineConfig,
|
|
4
|
-
lintFile,
|
|
5
|
-
lintProject,
|
|
6
|
-
loadConfig,
|
|
7
|
-
loadConfigFromFile,
|
|
8
|
-
travelFile
|
|
9
|
-
} from "./chunk-XMKWAQ3V.js";
|
|
10
|
-
|
|
11
|
-
// src/ir/models/Node.ts
|
|
12
|
-
var IRKind = /* @__PURE__ */ ((IRKind2) => {
|
|
13
|
-
IRKind2[IRKind2["Codeline"] = 0] = "Codeline";
|
|
14
|
-
IRKind2[IRKind2["Literal"] = 1] = "Literal";
|
|
15
|
-
IRKind2[IRKind2["Function"] = 2] = "Function";
|
|
16
|
-
IRKind2[IRKind2["Class"] = 3] = "Class";
|
|
17
|
-
IRKind2[IRKind2["Variable"] = 4] = "Variable";
|
|
18
|
-
return IRKind2;
|
|
19
|
-
})(IRKind || {});
|
|
20
|
-
|
|
21
|
-
// src/rules/models/rule/service.ts
|
|
22
|
-
var createRule = (name, fn) => {
|
|
23
|
-
const subrules = [];
|
|
24
|
-
const ruleFn = fn((subrule) => subrules.push(subrule));
|
|
25
|
-
return {
|
|
26
|
-
name,
|
|
27
|
-
fn: ruleFn,
|
|
28
|
-
subrules
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// src/rules/models/message/model.ts
|
|
33
|
-
var Level = /* @__PURE__ */ ((Level2) => {
|
|
34
|
-
Level2["Error"] = "ERROR";
|
|
35
|
-
Level2["Warning"] = "WARNING";
|
|
36
|
-
Level2["Info"] = "INFO";
|
|
37
|
-
return Level2;
|
|
38
|
-
})(Level || {});
|
|
39
|
-
export {
|
|
40
|
-
IRKind,
|
|
41
|
-
Level,
|
|
42
|
-
createRule,
|
|
43
|
-
defaultConfig,
|
|
44
|
-
defineConfig,
|
|
45
|
-
lintFile,
|
|
46
|
-
lintProject,
|
|
47
|
-
loadConfig,
|
|
48
|
-
loadConfigFromFile,
|
|
49
|
-
travelFile
|
|
50
|
-
};
|