0.1.2 • Published 1 year ago
@unnb/eslint-config v0.1.2
@unnb/eslint-config
Install
pnpm i -D @unnb/eslint-config
Config
Create .eslintrc
file in your project root directory, and add the following content:
{
"extends": "@unnb"
}
Or add the following content to your package.json
:
{
"eslintConfig": {
"extends": "@unnb"
}
}
Config VS Code
Install VS Code ESLint
extension and create .vscode/settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": false
// "prettier.enable": true,
}