@aiready/consistency 0.2.5 → 0.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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-test.log +3 -3
- package/README.md +20 -4
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/consistency@0.
|
|
3
|
+
> @aiready/consistency@0.3.0 build /Users/pengcao/projects/aiready/packages/consistency
|
|
4
4
|
> tsup src/index.ts src/cli.ts --format cjs,esm --dts
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mCJS[39m [1mdist/index.js [22m[32m14.13 KB[39m
|
|
13
13
|
[32mCJS[39m [1mdist/cli.js [22m[32m23.02 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/cli.mjs [22m[32m8.54 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 57ms
|
|
16
15
|
[32mESM[39m [1mdist/index.mjs [22m[32m220.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m8.54 KB[39m
|
|
17
17
|
[32mESM[39m [1mdist/chunk-CF4LU7KE.mjs [22m[32m12.90 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 57ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
20
|
+
DTS ⚡️ Build success in 558ms
|
|
21
21
|
DTS dist/cli.d.ts 20.00 B
|
|
22
22
|
DTS dist/index.d.ts 2.60 KB
|
|
23
23
|
DTS dist/cli.d.mts 20.00 B
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/consistency@0.
|
|
3
|
+
> @aiready/consistency@0.3.0 test /Users/pengcao/projects/aiready/packages/consistency
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
51
51
|
[2m Tests [22m [1m[32m14 passed[39m[22m[90m (14)[39m
|
|
52
|
-
[2m Start at [22m 07:
|
|
53
|
-
[2m Duration [22m
|
|
52
|
+
[2m Start at [22m 07:46:28
|
|
53
|
+
[2m Duration [22m 441ms[2m (transform 95ms, setup 0ms, collect 166ms, tests 25ms, environment 0ms, prepare 49ms)[22m
|
|
54
54
|
|
|
55
55
|
[?25h[?25h
|
package/README.md
CHANGED
|
@@ -124,15 +124,31 @@ Create `aiready.json` in your project root:
|
|
|
124
124
|
|
|
125
125
|
```json
|
|
126
126
|
{
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"checkPatterns": true,
|
|
130
|
-
"minSeverity": "minor",
|
|
127
|
+
"scan": {
|
|
128
|
+
"include": ["src/**/*.{ts,tsx,js,jsx}"],
|
|
131
129
|
"exclude": ["**/dist/**", "**/node_modules/**"]
|
|
130
|
+
},
|
|
131
|
+
"tools": {
|
|
132
|
+
"consistency": {
|
|
133
|
+
"checkNaming": true,
|
|
134
|
+
"checkPatterns": true,
|
|
135
|
+
"minSeverity": "minor"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"output": {
|
|
139
|
+
"format": "console"
|
|
132
140
|
}
|
|
133
141
|
}
|
|
134
142
|
```
|
|
135
143
|
|
|
144
|
+
**Configuration Options:**
|
|
145
|
+
|
|
146
|
+
| Option | Type | Default | Description |
|
|
147
|
+
|--------|------|---------|-------------|
|
|
148
|
+
| `checkNaming` | boolean | `true` | Check naming conventions |
|
|
149
|
+
| `checkPatterns` | boolean | `true` | Check code pattern consistency |
|
|
150
|
+
| `minSeverity` | string | `'info'` | Filter: `'info'`, `'minor'`, `'major'`, `'critical'` |
|
|
151
|
+
|
|
136
152
|
## 🔧 Programmatic API
|
|
137
153
|
|
|
138
154
|
```typescript
|
package/package.json
CHANGED