this is the base configuration of ESLint is used in the Projects made by BrainyLab Development.
# npm
npm i --save-dev eslint prettier @brainylab/eslint-config
#yarn
yarn add -D eslint prettier @brainylab/eslint-config
#pnpm
pnpm add -D eslint prettier @brainylab/eslint-config
create file .eslintrc.json in main project folder, add the lines below in the file.
{
"extends": "@brainylab/eslint-config/node"
}
{
"extends": "@brainylab/eslint-config/react"
}
{
"extends": "@brainylab/eslint-config/react-native"
}
{
"extends": "@brainylab/eslint-config/next"
}
create ou alter .vscode/settings.json
.
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
MIT