Extended from @antfu/eslint-config, go to see details.
npm i -D eslint @2nthony/eslint-config
// eslint.config.js
import { _2nthony } from '@2nthony/eslint-config'
export default _2nthony()
{
"eslint.experimental.useFlatConfig": true
}
// error
if (foo) bar()
if (foo)
bar()
// correct
if (foo) {
bar()
}
MIT © 2nthony