The antfu factory function also accepts any number of arbitrary custom config overrides:// eslint.config.js import antfu from '@antfu/eslint-config' export default antfu( { // Configures for antfu's config }, // From the second arguments they are ESLint Flat Configs // you can have ...
// eslint.config.jsimportantfufrom'@antfu/eslint-config'importNuxtEslintConfigfrom'./.nuxt/eslint.config.mjs'exportdefaultantfu({// ...@antfu/eslint-config options,},// Add the Nuxt rulesNuxtEslintConfig,// ...your other rules)
pnpm i -D eslint @antfu/eslint-config And createeslint.config.mjsin your project root: // eslint.config.mjsimportantfufrom'@antfu/eslint-config'exportdefaultantfu() Combined with legacy config: If you still use some configs from the legacy eslintrc format, you can use the@eslint/...
TypeScriptRules// { '@typescript-eslint/indent': 'error', ... }}from'@antfu/eslint-define-config'typeRenamedRules = RenamePrefix<TypeScriptRules,'@typescript-eslint/','ts/'>// { 'ts/indent': 'error', ... } This way it could work for Flat Config plugin renaming: importpluginType...
eslint-plugin-no-only-tests eslint-plugin-promise eslint-plugin-unicorn eslint-plugin-unused-imports eslint-plugin-yml jsonc-eslint-parser yaml-eslint-parser eslint-plugin-antfu Dev Dependencies (1) eslintPackage Sidebar Install npm i @antfu/eslint-config-basic Repository github.com/antfu/es...
针对你遇到的错误“error @antfu/eslint-define-config@1.23.0-2: the engine 'node' is incompatible”,我们可以按照以下步骤进行排查和解决: 确认错误信息的完整内容: 错误信息提示“the engine 'node' is incompatible”,意味着当前安装的Node.js版本与@antfu/eslint-define-config@1.23.0-2包不兼容。 分析错...
2 "name": "@antfu/eslint-define-config", 3 "version": "1.23.0-2", 4 "description": "Provide a defineConfig function for .eslintrc.js files", 5 "type": "module", 6 "main": "dist/index.cjs", 7 "module": "dist/index.js", ...
vite.config.ts feat: 排班方案所选班组数量可以等于班次单元数 6个月前 README 能源管理系统 简介 tomato 能源管理平台 V2 vite5 + typesript5 + unocss + element-plus + @antfu/eslint-config + pnpm 暂无标签 Vue等 6 种语言 保存更改 贡献者(1) ...
0.43.1•Public• Publisheda year ago This package does not have a README.Add a READMEto your package so that users know how to get started. Readme Keywords eslint-config npm i@antfu/eslint-config-basic Repository github.com/antfu/eslint-config ...
Use ts-eslint beta - by @antfu in #520 (c29ac) Add name to ignore config - by @antfu (48bcd) 🐞 Bug Fixes Relax ts/no-empty-object-type rule - by @antfu (692e7) Disable ts/no-unused-expressions in markdown - by @antfu (64894) Avoid using name in ignores - by @antfu (d...