工厂函数
一个 lintspec() 函数加几个开关即可组合配置,告别复制粘贴上百行规则。
// eslint.config.js
import lintspec from '@qwqo/eslint-config'
export default lintspec({
node: true,
typescript: true,
importX: true,
perfectionist: true,
})// prettier.config.js
export { default } from '@qwqo/prettier-config'每个开关都支持「布尔」或「子选项对象」两种写法,外加 overrides 万能覆盖 —— 详见 配置项总览。