slop-police 0.3.4 → 0.3.6

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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -41,13 +41,15 @@ slop-police reads `slop-police.json` from the current directory:
41
41
  ```
42
42
 
43
43
  - `projects`: tsconfig files to analyze. Usages are counted across all of them, so a method used only by another package still counts as used.
44
- - `ignore`: glob patterns (relative to the config) for files to skip entirely.
44
+ - `ignore`: glob patterns (relative to the config) for files to skip entirely. Files that `.gitignore` ignores are skipped too.
45
45
  - `testFiles`: glob patterns for tests. Usages inside tests count, but declarations inside tests are not reported.
46
46
  - `rules`: every built-in rule runs as an error with its default options. List a rule here to change that: `"error"`, `"warn"` or `"off"`, or `[severity, options]`. Plugin rules run only when they're listed.
47
47
  - `plugins`: modules with [custom rules](#custom-rules), as paths relative to the config or package names.
48
48
 
49
49
  Exit code is `1` when there are errors, `2` for an invalid config, `0` otherwise.
50
50
 
51
+ slop-police needs your dependencies installed: without their types it can't tell where a method or key is used. When imports in the analyzed files don't resolve (and no `declare module` covers them), it lists them and exits with `1` without linting. Side-effect imports like `import "./styles.css"` don't count.
52
+
51
53
  ## Rules
52
54
 
53
55
  ### unused-methods
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slop-police",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "Type-aware TypeScript linter for the dead code and needless indirection AI agents leave behind",
5
5
  "keywords": [
6
6
  "typescript",
@@ -41,9 +41,9 @@
41
41
  "node": ">=22.18"
42
42
  },
43
43
  "optionalDependencies": {
44
- "slop-police-darwin-arm64": "0.3.4",
45
- "slop-police-darwin-x64": "0.3.4",
46
- "slop-police-linux-arm64": "0.3.4",
47
- "slop-police-linux-x64": "0.3.4"
44
+ "slop-police-darwin-arm64": "0.3.6",
45
+ "slop-police-darwin-x64": "0.3.6",
46
+ "slop-police-linux-arm64": "0.3.6",
47
+ "slop-police-linux-x64": "0.3.6"
48
48
  }
49
49
  }