On a JS project I tend to turn on format on save (VSCode > Preferences > Settings > Workspace Settings > settings.json)
{
"editor.formatOnSave": true
}
I use a .prettierignore for individual files I don't way to format within the project.
Finally I have the following setting to always turn off certain file types from formatting (VSCode > Preferences > Settings > User Settings > settings.json):
"[handlebars]": {
"editor.formatOnSave": false
}
ESLint
ESLint apparently respects the following element of package.json:
"engines": {
"node": ">=10.6.0"
}
I tend to also add the following .eslintrc to support ES6 features: