2025-09-23 14:18:04 +02:00
|
|
|
{
|
|
|
|
|
"name": "kraiken-ponder",
|
|
|
|
|
"version": "0.0.1",
|
|
|
|
|
"private": true,
|
|
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
feat(ponder): Add strict ESLint + Prettier with pre-commit hooks (#52)
- Install eslint, @typescript-eslint plugins, prettier, husky, lint-staged
- Configure ESLint flat config with TypeScript parser
- Enforce: no-explicit-any (with exceptions), no-unused-vars, naming-convention, prefer-const, no-console
- Set style: 2-space indent, 140 char max-len, disable complexity rules
- Configure Prettier: single quotes, 140 width, trailing commas
- Setup husky pre-commit hook to auto-fix and format on commit
- Replace console.log/warn with context.logger.info/warn in handlers
- Remove console.log from ponder.config.ts (replaced with comment)
- Add npm scripts: lint, lint:fix, format, format:check
- All lint rules pass without warnings
resolvel #45
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/52
2025-10-04 15:37:26 +02:00
|
|
|
"dev": "node ./node_modules/ponder/dist/esm/bin/ponder.js dev",
|
|
|
|
|
"start": "node ./node_modules/ponder/dist/esm/bin/ponder.js start",
|
|
|
|
|
"codegen": "node ./node_modules/ponder/dist/esm/bin/ponder.js codegen",
|
|
|
|
|
"build": "node ./node_modules/ponder/dist/esm/bin/ponder.js codegen",
|
|
|
|
|
"lint": "eslint .",
|
|
|
|
|
"lint:fix": "eslint . --fix",
|
|
|
|
|
"format": "prettier --write \"src/**/*.ts\" \"ponder.config.ts\" \"ponder.schema.ts\"",
|
|
|
|
|
"format:check": "prettier --check \"src/**/*.ts\" \"ponder.config.ts\" \"ponder.schema.ts\"",
|
|
|
|
|
"prepare": "husky"
|
2025-09-23 14:18:04 +02:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2025-09-23 16:57:49 +02:00
|
|
|
"hono": "^4.5.0",
|
2025-09-30 20:02:43 +02:00
|
|
|
"kraiken-lib": "file:../../kraiken-lib",
|
2025-10-01 20:26:49 +02:00
|
|
|
"ponder": "^0.13.8",
|
2025-09-23 16:57:49 +02:00
|
|
|
"viem": "^2.21.0"
|
2025-09-23 14:18:04 +02:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@types/node": "^20.11.30",
|
feat(ponder): Add strict ESLint + Prettier with pre-commit hooks (#52)
- Install eslint, @typescript-eslint plugins, prettier, husky, lint-staged
- Configure ESLint flat config with TypeScript parser
- Enforce: no-explicit-any (with exceptions), no-unused-vars, naming-convention, prefer-const, no-console
- Set style: 2-space indent, 140 char max-len, disable complexity rules
- Configure Prettier: single quotes, 140 width, trailing commas
- Setup husky pre-commit hook to auto-fix and format on commit
- Replace console.log/warn with context.logger.info/warn in handlers
- Remove console.log from ponder.config.ts (replaced with comment)
- Add npm scripts: lint, lint:fix, format, format:check
- All lint rules pass without warnings
resolvel #45
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/52
2025-10-04 15:37:26 +02:00
|
|
|
"@typescript-eslint/eslint-plugin": "^8.45.0",
|
|
|
|
|
"@typescript-eslint/parser": "^8.45.0",
|
2025-09-23 16:57:49 +02:00
|
|
|
"esbuild": "^0.25.10",
|
feat(ponder): Add strict ESLint + Prettier with pre-commit hooks (#52)
- Install eslint, @typescript-eslint plugins, prettier, husky, lint-staged
- Configure ESLint flat config with TypeScript parser
- Enforce: no-explicit-any (with exceptions), no-unused-vars, naming-convention, prefer-const, no-console
- Set style: 2-space indent, 140 char max-len, disable complexity rules
- Configure Prettier: single quotes, 140 width, trailing commas
- Setup husky pre-commit hook to auto-fix and format on commit
- Replace console.log/warn with context.logger.info/warn in handlers
- Remove console.log from ponder.config.ts (replaced with comment)
- Add npm scripts: lint, lint:fix, format, format:check
- All lint rules pass without warnings
resolvel #45
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/52
2025-10-04 15:37:26 +02:00
|
|
|
"eslint": "^9.36.0",
|
|
|
|
|
"eslint-config-prettier": "^10.1.8",
|
|
|
|
|
"husky": "^9.1.7",
|
|
|
|
|
"lint-staged": "^16.2.3",
|
|
|
|
|
"prettier": "^3.6.2",
|
2025-09-30 20:02:43 +02:00
|
|
|
"typescript": "^5.9.2"
|
2025-09-23 14:18:04 +02:00
|
|
|
},
|
feat(ponder): Add strict ESLint + Prettier with pre-commit hooks (#52)
- Install eslint, @typescript-eslint plugins, prettier, husky, lint-staged
- Configure ESLint flat config with TypeScript parser
- Enforce: no-explicit-any (with exceptions), no-unused-vars, naming-convention, prefer-const, no-console
- Set style: 2-space indent, 140 char max-len, disable complexity rules
- Configure Prettier: single quotes, 140 width, trailing commas
- Setup husky pre-commit hook to auto-fix and format on commit
- Replace console.log/warn with context.logger.info/warn in handlers
- Remove console.log from ponder.config.ts (replaced with comment)
- Add npm scripts: lint, lint:fix, format, format:check
- All lint rules pass without warnings
resolvel #45
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/52
2025-10-04 15:37:26 +02:00
|
|
|
"lint-staged": {
|
|
|
|
|
"src/**/*.ts": [
|
|
|
|
|
"eslint --fix",
|
|
|
|
|
"prettier --write"
|
|
|
|
|
],
|
|
|
|
|
"ponder.config.ts": [
|
|
|
|
|
"eslint --fix",
|
|
|
|
|
"prettier --write"
|
|
|
|
|
],
|
|
|
|
|
"ponder.schema.ts": [
|
|
|
|
|
"eslint --fix",
|
|
|
|
|
"prettier --write"
|
|
|
|
|
]
|
|
|
|
|
},
|
2025-09-23 16:57:49 +02:00
|
|
|
"overrides": {
|
|
|
|
|
"esbuild": "^0.25.10",
|
2025-09-23 19:24:05 +02:00
|
|
|
"vite": "^5.4.11"
|
2025-09-23 16:57:49 +02:00
|
|
|
},
|
2025-09-23 14:18:04 +02:00
|
|
|
"engines": {
|
|
|
|
|
"node": ">=18.0.0"
|
|
|
|
|
}
|
2025-09-23 16:57:49 +02:00
|
|
|
}
|