Install manually:
pnpm add -D @bernankez/eslint-configCreate eslint.config.mjs in your project root:
import bernankez from "@bernankez/eslint-config";
export default bernankez();- Double quotes, with semi
- Brace style:
stroustrup - Curly:
all - HTML self closing:
<div></div><img /><MyComponent />
Note
This config internally uses antfu's ESLint config with some of my default settings. To see the differences in the default rules, please refer to this file.
For detailed configurations, directly check antfu's ESLint config.
When calling npx @bernankez/eslint-config, all params are passed through as-is to @antfu/eslint-config.
Important
From v4, the internal implementation of this config has changed. It now re-exports antfu's ESLint config along with some of my default settings. This may result in differences in certain ESLint rules compared to previous versions. Please take note.
v3 dropped the cjs build.
From v2, ESLint v9.5 or higher is required.
From v1, ESLint flat config is supported.
For legacy ESLint config, please use v0.x