@interfere/landmines 0.0.0-stage → 0.0.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.
@@ -0,0 +1,2 @@
1
+ declare const plugin: import("@oxlint/plugins").Plugin;
2
+ export { plugin as default };
package/dist/types.mjs ADDED
@@ -0,0 +1,29 @@
1
+ import { definePlugin, defineRule } from "@oxlint/plugins";
2
+ // src/rules/no-explicit-return-types.ts
3
+ const noExplicitReturnTypes = defineRule({
4
+ meta: {
5
+ type: "suggestion",
6
+ schema: [],
7
+ docs: { description: "Infer return types on function implementations." },
8
+ messages: { noExplicitReturnType: "Remove the explicit return type and let it be inferred; pin a contract with a typed variable or `satisfies` at the return site instead." }
9
+ },
10
+ create(context) {
11
+ function check(node) {
12
+ if (node.body !== null && node.returnType !== void 0 && node.returnType !== null && node.returnType.typeAnnotation.type !== "TSTypePredicate" && node.returnType.typeAnnotation.type !== "TSNeverKeyword") context.report({
13
+ node: node.returnType,
14
+ messageId: "noExplicitReturnType"
15
+ });
16
+ }
17
+ return {
18
+ FunctionDeclaration: check,
19
+ FunctionExpression: check,
20
+ ArrowFunctionExpression: check
21
+ };
22
+ }
23
+ });
24
+ // src/plugins/types.ts
25
+ const plugin = definePlugin({
26
+ meta: { name: "landmines-types" },
27
+ rules: { "no-explicit-return-types": noExplicitReturnTypes }
28
+ });
29
+ export { plugin as default };
package/package.json CHANGED
@@ -1,6 +1,78 @@
1
1
  {
2
2
  "name": "@interfere/landmines",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.0",
4
+ "description": "Oxlint rules that keep AI-written code honest: real implementations, real signals, no flake masking.",
5
+ "keywords": [
6
+ "agents",
7
+ "ai",
8
+ "lint",
9
+ "msw",
10
+ "oxlint",
11
+ "oxlint-plugin",
12
+ "testing"
13
+ ],
14
+ "homepage": "https://github.com/interfere-inc/landmines#readme",
15
+ "bugs": "https://github.com/interfere-inc/landmines/issues",
16
+ "license": "MIT",
17
+ "author": "Interfere, Inc.",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/interfere-inc/landmines.git",
21
+ "directory": "packages/landmines"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "configs"
26
+ ],
27
+ "type": "module",
28
+ "exports": {
29
+ "./testing": {
30
+ "types": "./dist/testing.d.mts",
31
+ "default": "./dist/testing.mjs"
32
+ },
33
+ "./style": {
34
+ "types": "./dist/style.d.mts",
35
+ "default": "./dist/style.mjs"
36
+ },
37
+ "./structure": {
38
+ "types": "./dist/structure.d.mts",
39
+ "default": "./dist/structure.mjs"
40
+ },
41
+ "./types": {
42
+ "types": "./dist/types.d.mts",
43
+ "default": "./dist/types.mjs"
44
+ },
45
+ "./configs/recommended.json": "./configs/recommended.json",
46
+ "./package.json": "./package.json"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "provenance": true
51
+ },
52
+ "scripts": {
53
+ "build": "tsdown",
54
+ "clean": "git clean -xdf .cache .turbo dist node_modules",
55
+ "test": "vitest run",
56
+ "typecheck": "tsc"
57
+ },
58
+ "dependencies": {
59
+ "@babel/parser": "8.0.4",
60
+ "@babel/types": "8.0.4",
61
+ "@oxlint/plugins": "1.81.0",
62
+ "oxc-resolver": "11.24.2",
63
+ "zod": "4.6.6"
64
+ },
65
+ "devDependencies": {
66
+ "@types/node": "26.4.1",
67
+ "oxlint": "1.81.0",
68
+ "tsdown": "0.23.0",
69
+ "typescript": "7.0.2",
70
+ "vitest": "5.0.5"
71
+ },
72
+ "peerDependencies": {
73
+ "oxlint": ">=1.81.0"
74
+ },
75
+ "engines": {
76
+ "node": ">=22.18.0"
77
+ }
78
+ }