mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:47:14 +01:00
The two shared packages are the first repos on the preset (link:../ts_config inside the monorepo; consumers outside use the git tag). Each eslint.config.js is now the defineConfig() call plus one override with its reason: a public API name (`nextChance`, `fuzzyMatch`) the boolean-prefix rule would rename, which is a breaking change for the three repos importing it. Everything else the preset flagged is fixed in code, not disabled: key order (perfectionist), hex casing, sort compare functions in tests, Iterator#map().toArray(), explicit returns on multiline arrows. web_ui: react-refresh/only-export-components was a real finding -- range-slider.tsx exported `steppedValue` next to the component, which breaks Vite HMR for the module. The keyboard contract moves to stepped-value.ts as `steppedValue` + a new pure `keyTarget(key, values, current)`, which also resolves unicorn/no-late-event-control: the handler now decides the target first and calls preventDefault() only when it owns the key. Its tests move with it (the 250-line gate caught the combined file). Minor bump for the new export. dist/ rebuilt in both packages. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DnAYyNH1Sm4iJNidfYbrZJ
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"name": "@kuhyx/web-ui",
|
|
"version": "0.4.0",
|
|
"private": false,
|
|
"type": "module",
|
|
"description": "The shared token + component layer for kuhy's web apps: the frozen palette, spacing/radius/type scales as CSS custom properties, and the components that were each reimplemented in two or more repos.",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=24",
|
|
"pnpm": ">=10"
|
|
},
|
|
"packageManager": "pnpm@12.4.2",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./tokens.css": "./dist/tokens.css",
|
|
"./range-slider.css": "./dist/range-slider.css"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -b && cp src/tokens.css src/range-slider.css dist/",
|
|
"lint": "tsc --noEmit -p tsconfig.lint.json && eslint .",
|
|
"test": "vitest run",
|
|
"coverage": "vitest run --coverage"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=19"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "10.0.1",
|
|
"@kuhyx/ts-config": "link:../ts_config",
|
|
"@testing-library/jest-dom": "7.0.1",
|
|
"@testing-library/react": "16.3.3",
|
|
"@testing-library/user-event": "14.6.7",
|
|
"@types/node": "26.5.1",
|
|
"@types/react": "19.3.0",
|
|
"@types/react-dom": "19.3.0",
|
|
"@vitest/coverage-v8": "5.0.1",
|
|
"eslint": "10.10.0",
|
|
"jsdom": "30.0.1",
|
|
"react": "19.3.0",
|
|
"react-dom": "19.3.0",
|
|
"typescript": "6.0.3",
|
|
"typescript-eslint": "8.70.0",
|
|
"vitest": "5.0.1"
|
|
}
|
|
}
|