- Clone the repo.
You can install the right version of NodeJS via any node version manager of your choice.
asdf plugin add nodejsasdf installasdf reshim nodejs
nodenv install
fnm install
nvm install
We use Yarn 4 as a package manager.
corepack enableyarn install
yarn dlx @yarnpkg/sdks vscode
Ref: https://yarnpkg.com/getting-started/editor-sdks
You may need to reload/restart your VSCode after this to put the changes in effect.
We use Biome to enforce linting rules and format our code.
Add below JSON configuration in your workspace settings (./.vscode/settings.json) in your local git repository.
This file is ignored in git version control. So it won't be committed. It's for you to configure your workspace settings in VSCode.
{
...
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.action.useSortedAttributes.biome": "explicit",
"source.action.useSortedKeys.biome": "explicit",
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"editor.formatOnSave": true,
"json.format.keepLines": true,
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
...
}