prodlint 0.3.0 → 0.5.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/README.md +136 -102
- package/dist/cli.js +635 -77
- package/dist/index.d.ts +7 -0
- package/dist/index.js +593 -54
- package/dist/mcp.js +593 -54
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _babel_parser from '@babel/parser';
|
|
2
|
+
import * as _babel_types from '@babel/types';
|
|
3
|
+
|
|
1
4
|
type Severity = 'critical' | 'warning' | 'info';
|
|
2
5
|
type Category = 'security' | 'reliability' | 'performance' | 'ai-quality';
|
|
3
6
|
interface Finding {
|
|
@@ -8,6 +11,7 @@ interface Finding {
|
|
|
8
11
|
message: string;
|
|
9
12
|
severity: Severity;
|
|
10
13
|
category: Category;
|
|
14
|
+
fix?: string;
|
|
11
15
|
}
|
|
12
16
|
interface FileContext {
|
|
13
17
|
absolutePath: string;
|
|
@@ -16,6 +20,7 @@ interface FileContext {
|
|
|
16
20
|
lines: string[];
|
|
17
21
|
ext: string;
|
|
18
22
|
commentMap: boolean[];
|
|
23
|
+
ast?: _babel_parser.ParseResult<_babel_types.File> | null;
|
|
19
24
|
}
|
|
20
25
|
interface ProjectContext {
|
|
21
26
|
root: string;
|
|
@@ -23,6 +28,8 @@ interface ProjectContext {
|
|
|
23
28
|
declaredDependencies: Set<string>;
|
|
24
29
|
tsconfigPaths: Set<string>;
|
|
25
30
|
hasAuthMiddleware: boolean;
|
|
31
|
+
hasRateLimiting: boolean;
|
|
32
|
+
detectedFrameworks: Set<string>;
|
|
26
33
|
gitignoreContent: string | null;
|
|
27
34
|
envInGitignore: boolean;
|
|
28
35
|
allFiles: string[];
|