可选能力与清单排序
Markdown 和 Lodash 导入策略需要显式组合:
js
import { createBaseConfigs } from "@fast-china/eslint-config";
import { createMarkdownConfigs } from "@fast-china/eslint-config/configs";
import { defineConfig } from "eslint/config";
export default defineConfig([
...createBaseConfigs({ environment: "node" }),
...createMarkdownConfigs(),
{
name: "project/custom",
rules: {
"no-console": "warn",
},
},
]);createBaseConfigs()、vueConfig 和 uniAppConfig 都默认启用 package.json 与 tsconfig*.json 排序。package.json 排序不会进入顺序具有运行时语义的条件 exports 对象。
