The configuration of this repository is based on @antfu/eslint-config
no-console
set to warn in editor, and allowconsole.warn
andconsole.error
brace-style
set to1tbs
pnpm add -D eslint @yafh/eslint-config
{
"extends": "@yafh"
}
You don't need
.eslintignore
normally as it has been provided by the preset.
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}