eslint-plugin-ai-rules 0.3.1 → 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/LICENSE +1 -1
- package/README.md +170 -57
- package/dist/index.cjs +80 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +80 -38
- package/dist/index.js.map +1 -1
- package/package.json +19 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-ai-rules",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "ESLint plugin
|
|
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,10 +32,11 @@
|
|
|
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": "
|
|
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
41
|
"prepack": "yarn build"
|
|
40
42
|
},
|
|
@@ -45,7 +47,11 @@
|
|
|
45
47
|
"eslint",
|
|
46
48
|
"eslintplugin",
|
|
47
49
|
"eslint-plugin",
|
|
48
|
-
"
|
|
50
|
+
"flat-config",
|
|
51
|
+
"ai-rules",
|
|
52
|
+
"project-structure",
|
|
53
|
+
"architecture",
|
|
54
|
+
"boundaries"
|
|
49
55
|
],
|
|
50
56
|
"author": "Lucas Souza <ls18017@gmail.com>",
|
|
51
57
|
"license": "MIT",
|
|
@@ -69,17 +75,22 @@
|
|
|
69
75
|
"typescript-eslint": "^8.0.0"
|
|
70
76
|
},
|
|
71
77
|
"devDependencies": {
|
|
78
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
72
79
|
"@eslint/js": "^10.0.0",
|
|
73
80
|
"@types/node": "^22.0.0",
|
|
74
81
|
"c8": "^12.0.0",
|
|
75
82
|
"eslint": "^10.0.0",
|
|
76
83
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
84
|
+
"eslint-plugin-eslint-plugin": "^7.6.2",
|
|
77
85
|
"globals": "^17.0.0",
|
|
86
|
+
"publint": "^0.3.25",
|
|
78
87
|
"tsup": "^8.0.0",
|
|
79
88
|
"tsx": "^4.0.0",
|
|
80
89
|
"typescript": "^5.6.0"
|
|
81
90
|
},
|
|
82
91
|
"engines": {
|
|
83
|
-
"node": ">=20.0.0"
|
|
84
|
-
|
|
92
|
+
"node": ">=20.0.0",
|
|
93
|
+
"yarn": ">=1.22.0"
|
|
94
|
+
},
|
|
95
|
+
"packageManager": "yarn@1.22.22"
|
|
85
96
|
}
|