install wsl
run (this will install ubuntu)
wsl --install
Optional
ssh -L <local-port>:<remote-host>:<remote-port> <username>@wsl.localhost
wsl -l -v
to show versions
wsl --set-version Ubuntu 1
install docker for desktop
https://docs.docker.com/desktop/wsl/
https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
Instructions above dont quite work, have to use the cat /etc/resolv.conf the ip to use for export DOCKER_HOST=tcp://localhost:2375
https://learn.microsoft.com/en-us/windows/wsl/networking
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 for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptions
property like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommended
toplugin:@typescript-eslint/recommended-type-checked
orplugin:@typescript-eslint/strict-type-checked
- Optionally add
plugin:@typescript-eslint/stylistic-type-checked
- Install eslint-plugin-react and add
plugin:react/recommended
&plugin:react/jsx-runtime
to theextends
list