Skip to content

brainylab/prettier-config

Repository files navigation

BrainyLab prettier-config

this is the base configuration of Prettier is used in the Projects made by BrainyLab Development.

Install Config

usage npm

# npm
npm i --save-dev @brainylab/prettier-config

#yarn
yarn add -D @brainylab/prettier-config

#pnpm
pnpm add -D @brainylab/prettier-config

#bun
bun add -d @brainylab/prettier-config

Usage Config

create file .eslintrc.json in main project folder, add the lines below in the file.

  1. Remove existing config file, example .prettierrc.

  2. Add code to:

// package.json
  "prettier": "@brainylab/prettier-config",
// .prettierrc.js
module.exports = {
	...require('@brainylab/prettier-config'),
};
// prettier.config.js
import prettierConfig from '@brainylab/prettier-config';

export default {
	...prettierConfig,
};

and configure VS Code add:

{
	"editor.formatOnSave": true,
	"editor.defaultFormatter": "esbenp.prettier-vscode"
}

Install Prettier Plugin on VSCode:

Prettier Logo

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages