English | 中文
Thanks to @antfu/eslint-config
, because of it, creating code formats that suit our style has become much easier.
Tips: If you don't want to manually install, here is a quick installation method. Just enter one command to save the hassle of repetitive configuration operations.
pnpm add eslint -D
pnpm add @antzy/eslint-config -D
With "type"
: "module"
in package.json (recommended):
import { antzy } from '@antfu/eslint-config'
export default antzy({
rules:{
/* your stylistic rules */
}
})
With CJS:
const { antzy } = require('@antfu/eslint-config')
module.exports = antzy({
rules:{
/* your stylistic rules */
}
})