eslint-plugin-ai-rules 0.3.0 → 0.4.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-ai-rules",
3
- "version": "0.3.0",
4
- "description": "ESLint plugin com regras úteis para projetos com ESLint - AI Rules",
3
+ "version": "0.4.0",
4
+ "description": "Flat-config ESLint plugin that enforces filenames, imports and project structure for AI-generated code.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -16,7 +16,8 @@
16
16
  "types": "./dist/index.d.cts",
17
17
  "default": "./dist/index.cjs"
18
18
  }
19
- }
19
+ },
20
+ "./package.json": "./package.json"
20
21
  },
21
22
  "files": [
22
23
  "dist"
@@ -31,14 +32,13 @@
31
32
  "lint": "eslint .",
32
33
  "typecheck": "tsc --noEmit",
33
34
  "test": "yarn build && node --test test/*.test.mjs",
35
+ "test:watch": "node --test --watch test/*.test.mjs",
34
36
  "test:coverage": "yarn build && c8 --include dist/index.js --check-coverage --lines 95 --branches 90 --functions 95 --reporter=text node --test test/*.test.mjs",
35
37
  "test:consumer": "node scripts/TestConsumer.mjs",
36
- "test:package": "npx --yes publint --pack npm && npx --yes @arethetypeswrong/cli --pack .",
37
- "test:release": "yarn test:consumer && yarn test:package",
38
+ "test:package": "yarn build && publint --pack npm && attw --pack .",
39
+ "test:release": "yarn verify && yarn test:coverage && yarn test:consumer && yarn test:package",
38
40
  "verify": "yarn typecheck && yarn test && yarn lint && npm pack --dry-run",
39
- "prepack": "yarn build",
40
- "prepublishOnly": "test -z \"$(git status --porcelain)\" || (echo '✖ working tree not clean — commit before publishing' && exit 1) && yarn verify",
41
- "postpublish": "echo '✔ published. Run: git push --follow-tags'"
41
+ "prepack": "yarn build"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
@@ -47,7 +47,11 @@
47
47
  "eslint",
48
48
  "eslintplugin",
49
49
  "eslint-plugin",
50
- "ai-rules"
50
+ "flat-config",
51
+ "ai-rules",
52
+ "project-structure",
53
+ "architecture",
54
+ "boundaries"
51
55
  ],
52
56
  "author": "Lucas Souza <ls18017@gmail.com>",
53
57
  "license": "MIT",
@@ -71,17 +75,22 @@
71
75
  "typescript-eslint": "^8.0.0"
72
76
  },
73
77
  "devDependencies": {
78
+ "@arethetypeswrong/cli": "^0.18.5",
74
79
  "@eslint/js": "^10.0.0",
75
80
  "@types/node": "^22.0.0",
76
81
  "c8": "^12.0.0",
77
82
  "eslint": "^10.0.0",
78
83
  "eslint-import-resolver-typescript": "^4.4.5",
84
+ "eslint-plugin-eslint-plugin": "^7.6.2",
79
85
  "globals": "^17.0.0",
86
+ "publint": "^0.3.25",
80
87
  "tsup": "^8.0.0",
81
88
  "tsx": "^4.0.0",
82
89
  "typescript": "^5.6.0"
83
90
  },
84
91
  "engines": {
85
- "node": ">=20.0.0"
86
- }
92
+ "node": ">=20.0.0",
93
+ "yarn": ">=1.22.0"
94
+ },
95
+ "packageManager": "yarn@1.22.22"
87
96
  }