@shaulavo/standards 0.0.0-stage → 0.1.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,21 @@
1
+ // src/knip-reporter.ts
2
+ var EVIDENCE_PREFIX = "standards-knip-evidence ";
3
+ var NOT_ISSUES = new Set(["processed", "total"]);
4
+ function report(options) {
5
+ const issues = Object.entries(options.counters).filter(([key]) => !NOT_ISSUES.has(key)).reduce((sum, [, value]) => sum + value, 0);
6
+ const evidence = {
7
+ processed: options.counters.processed ?? 0,
8
+ issues,
9
+ hints: size(options.configurationHints) + size(options.tagHints),
10
+ configErrors: options.hasConfigLoadErrors === true
11
+ };
12
+ process.stdout.write(`${EVIDENCE_PREFIX}${JSON.stringify(evidence)}
13
+ `);
14
+ }
15
+ function size(hints) {
16
+ return "length" in hints ? hints.length : hints.size;
17
+ }
18
+ export {
19
+ EVIDENCE_PREFIX,
20
+ report as default
21
+ };
@@ -0,0 +1,5 @@
1
+ // src/react-compiler-plugin.ts
2
+ import { default as default2 } from "oxc-plugin-react-compiler/eslint";
3
+ export {
4
+ default2 as default
5
+ };
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@shaulavo/standards",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Shared code-quality gates, CI, project template and engineering skills",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/ShaulLavo/standards.git"
9
+ },
10
+ "bin": {
11
+ "standards": "dist/cli.js"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "config"
16
+ ],
17
+ "type": "module",
18
+ "scripts": {
19
+ "build": "bun build src/cli.ts src/knip-reporter.ts src/react-compiler-plugin.ts --target node --format esm --external oxc-parser --external oxc-plugin-react-compiler --outdir dist",
20
+ "prepack": "bun run build",
21
+ "test": "bun test ./tests",
22
+ "check": "bun run build && node dist/cli.js oxfmt --check && node dist/cli.js oxlint && node dist/cli.js suppressions && node dist/cli.js source --allow tests/fixtures/ && node dist/cli.js dupes && node dist/cli.js structure && node dist/cli.js actionlint && node dist/cli.js knip && node dist/cli.js tsc && node dist/cli.js doctor && bun test ./tests"
23
+ },
24
+ "dependencies": {
25
+ "@tsconfig/bun": "1.0.12",
26
+ "@tsconfig/node24": "24.0.6",
27
+ "jscpd": "5.4.2",
28
+ "knip": "6.41.0",
29
+ "oxc-parser": "0.160.0",
30
+ "oxc-plugin-react-compiler": "0.2.0",
31
+ "oxfmt": "0.70.0",
32
+ "oxlint": "1.88.0",
33
+ "publint": "0.3.25",
34
+ "unknot": "0.1.2"
35
+ },
36
+ "devDependencies": {
37
+ "@types/bun": "1.4.4",
38
+ "ignore": "7.0.17",
39
+ "jsonc-parser": "3.3.1",
40
+ "tinyglobby": "0.2.17",
41
+ "typescript": "7.0.2"
42
+ },
43
+ "engines": {
44
+ "node": ">=22.12"
45
+ }
46
+ }