@brainylab/prettier-config
v1.0.1
Published
Prettier config for BrainyLab projects
Downloads
55
Maintainers
Readme
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.
Remove existing config file, example
.prettierrc
.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:
License
MIT