summarum/package.json
qwen.ai[bot] d8437eddbe feat: add ESLint + Prettier configuration and fix 123 linting errors
- Add ESLint v9+ with TypeScript parser and rules
- Add Prettier for code formatting
- Add npm scripts: lint, lint:fix, format, format:check
- Fix all auto-fixable linting errors (123 errors, 7 warnings)
- Improve type safety in editor.ts, storage.ts and test files
- Add curly braces to all control statements
- Fix unbound method warnings in tests
2026-08-12 13:36:01 +00:00

52 lines
1.7 KiB
JSON

{
"name": "summarum",
"private": true,
"version": "1.2.4",
"description": "Summarum — natural language calculator notebook for Windows",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest",
"icons": "node scripts/gen-icon.ts",
"tauri": "tauri",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx}\""
},
"dependencies": {
"@codemirror/autocomplete": "^6.18.0",
"@codemirror/commands": "^6.8.0",
"@codemirror/language": "^6.10.0",
"@codemirror/state": "^6.5.0",
"@codemirror/view": "^6.36.0",
"@jitl/quickjs-singlefile-browser-release-sync": "^0.32.0",
"@lezer/highlight": "^1.2.0",
"@tauri-apps/api": "^2.5.0",
"@tauri-apps/plugin-autostart": "^2.3.0",
"@tauri-apps/plugin-dialog": "^2.7.1",
"@tauri-apps/plugin-global-shortcut": "^2.2.0",
"@tauri-apps/plugin-opener": "^2.2.0",
"@tauri-apps/plugin-process": "^2.3.1",
"@tauri-apps/plugin-updater": "^2.10.1",
"decimal.js": "^10.4.3",
"quickjs-emscripten-core": "^0.32.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@tauri-apps/cli": "^2.5.0",
"@types/node": "^25.9.2",
"@typescript-eslint/eslint-plugin": "^8.67.0",
"@typescript-eslint/parser": "^8.67.0",
"eslint": "^10.8.1",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.9.6",
"typescript": "^5.7.0",
"typescript-eslint": "^8.67.0",
"vite": "^6.0.0",
"vitest": "^3.0.0"
}
}