mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Extras commands had multiple issues with tilde (~) path handling — Go doesn't expand ~ (that's shell behavior), so paths like ~/.claude/rules were treated as literal relative paths, creating bogus ~/ directories. Key fixes: - Export config.ExpandPath() and call it before os.Stat / sync operations in extras_list, sync_extras, extras_collect, and doctor - Unify extras output headers to match target list style (single "Extras" header instead of per-extra headers, fix double-icon bug in list) - Add per-target reachability warning in doctor for unreachable extras targets with expanded path display Update all 3 E2E runbooks to use extras/<name>/ path layout, add /tmp cleanup for idempotent re-runs, add migration test step, and create new comprehensive extras_commands_runbook (18 steps covering init/list/remove/ collect/doctor/tilde/project-mode). Improve cli-e2e-test skill with 4 new checklist items and 2 rules learned from test friction (/tmp isolation, symlink write-through, cat>> idempotency, extras path layout).
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])