unguard 0.12.1 → 0.13.1
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 +2 -0
- package/dist/{chunk-PIWZRXCI.js → chunk-VYUMERJP.js} +1692 -1492
- package/dist/chunk-VYUMERJP.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PIWZRXCI.js.map +0 -1
package/README.md
CHANGED
|
@@ -148,6 +148,8 @@ These rules use the TypeScript type checker. Non-nullable types suppress the dia
|
|
|
148
148
|
| `no-inline-param-type` | warning | `(params: { id: string; ... })` — inline object type on parameter |
|
|
149
149
|
| `prefer-default-param-value` | info | Optional param reassigned with `??` in the body |
|
|
150
150
|
| `prefer-required-param-with-guard` | info | `arg?: T` followed by `if (!arg) throw` |
|
|
151
|
+
| `repeated-literal-property` | warning | Same literal value (`as const`: 3+, plain: 5+) repeated in object properties within a file |
|
|
152
|
+
| `repeated-return-shape` | warning | 3+ functions return object literals with the same property name set |
|
|
151
153
|
|
|
152
154
|
### State management
|
|
153
155
|
|