Search for global
node_modules folder (GLOBAL_NODE_MODULES)
- Use the
npm config get prefixcommand to find the path to the
- The global
node_modulesfolder should be around there somewhere. It varies between different systems, maybe it is right next to it, maybe inside a
libdirectory next to it or the upper levels.
- Inside the global
node_modulesfolder, you'll find
mhy/node_modules. The path to that directory is what we will need.
Generating config files
# Generating all possible config files mhy can provide mhy config # Use -o to overwrite existing files mhy config -o # Generate specific config files mhy config prettier typescript webpack -io
Alias resolution and
tsconfig.json file in your root folder
Prettier (for automatic formatting on save; recommended)
Generate prettier config
mhy config prettier -io and install
Prettier - Code formatter plugin.
Unfortunately you'll need to create watcher for each
jsx, ts, tsxwatcher also. Do this with copying the watcher and change the
- ONLY in case you don't have
mhy config eslint -i
- Go to
File > Preferences > Settings > Extensions > ESLint
- Click on
Edit in settings.json
mhy's nodemodules path and add the following key into _VSCode
- Save it.