@2nthony/eslint-config
v2.1.13
Published
2nthony ESLint config presets, extended from @antfu/eslint-config
Downloads
192
Readme
@2nthony/eslint-config
Extended from @antfu/eslint-config, go to see details.
Usage
Install
npm i -D eslint @2nthony/eslint-config
config file
// eslint.config.js
import { _2nthony } from '@2nthony/eslint-config'
export default _2nthony()
VSCode
{
"eslint.experimental.useFlatConfig": true
}
Rules(diffs to antfu)
// error
if (foo) bar()
if (foo)
bar()
// correct
if (foo) {
bar()
}
Sponsors
License
MIT © 2nthony