Custom project config with defaults.
npm i -D @iae/project-config eslint prettier
- Add the config preset into your
.eslintrc.ts
file:
module.exports = {
extends: ["@iae/project-config/eslint/vue3-typescript"],
};
- Add a
prettier.config.ts
file with contents:
module.exports = require("@iae/project-config/prettier/prettier.config.js");
- Update VSCode
settings.json
for autofix on save
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
}