Skip to content

hYues/project-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@iae/project-config

Custom project config with defaults.

Installation

npm i -D @iae/project-config eslint prettier

Usage

  • 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"
}