@brainylab/eslint-config-next v3.2.0
BrainyLab eslint-config-next
this is the next configuration of ESLint is used in the Projects made by BrainyLab Development.
Install Config
# npm
npm i --save-dev eslint prettier @brainylab/eslint-config-next
#yarn
yarn add -D eslint prettier @brainylab/eslint-config-next
#pnpm
pnpm add -D eslint prettier @brainylab/eslint-config-nextUsage Flat Config - ESlint 9+
Require Node.js >= 18.18, and ESLint >= 8.56.0. create file eslint.config.js or EMS eslint.config.mjs in main project folder, add the lines below in the file.
import { nextConfig } from '@brainylab/eslint-config-next';
export default nextConfigConfig Prettier
This library focuses on linter and prettier was separated for better performance, to use prettier together with ESlint, following this documentation BrainyLab Prettier Config
Config VS Code to auto fix
Install ESlint Plugin on VSCode:
create ou alter .vscode/settings.json.
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
// eslint >= 8.56.0 and < 9 add line on VSCode
"eslint.experimental.useFlatConfig": true
}License
MIT
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago