Skip to content

Default entry and direct extends

The root defaults to a complete Vue 3 web-admin Linter.Config combining JavaScript, TypeScript, Vue 3, JSON, YAML, Markdown, Import, Promise, RegExp, and Prettier.

js
// .eslintrc.cjs
module.exports = {
	root: true,
	extends: ["@fast-china/eslint-config-legacy"],
	rules: {
		"no-console": "warn",
	},
};

Keep shared extends and custom project rules together; project rules win. This ESLint 8 legacy package does not use eslint/config defineConfig().

Direct extends subpaths: 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, and yaml.

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