Skip to content

细粒度 extends

每个细粒度配置都可以直接继承:

js
module.exports = {
	root: true,
	extends: [
		"@fast-china/eslint-config-legacy/common",
		"@fast-china/eslint-config-legacy/javascript",
		"@fast-china/eslint-config-legacy/typescript",
		"@fast-china/eslint-config-legacy/vue2",
		"@fast-china/eslint-config-legacy/prettier",
	],
};

可用名称包括 /angular/common/commonjs/environment/import/javascript/json/lodash/lodash-unified/markdown/node/prettier/promise/react/regexp/sort-package/sort-tsconfig/type-aware/typescript/vue/vue2/yaml

/vue 默认是 Vue 3,/vue2 是单独的 Vue 2 配置。