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.config.jsimportantfufrom'@antfu/eslint-config'exportdefaultantfu({// Type of the project. 'lib' for libraries, the default is 'app'type:'lib',// Enable stylistic formatting rules// stylistic: true,// Or customize the stylistic rulesstylistic:{indent:2,// 4, or 'tab'quotes:...
"@antfu/eslint-config": "^0.39.5", "@babel/types": "^7.20.7", "@commitlint/cli": "^17.4.2", "@commitlint/config-conventional": "^17.4.2", 30 changes: 15 additions & 15 deletions 30 src/components/VuePreview.vue Original file line numberDiff line numberDiff line change @@ ...
Clear and concise description of the problem Unicorn has 100+ super useful rules, I was a bit disappointed to see that only a handful are enabled here: eslint-config/src/configs/unicorn.ts Lines 11 to 37 in 1d62059 rules: { // Pass error...
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", ...
eslint-config readme @antfu/eslint-config Auto fix for formatting (aimed to be used standalonewithoutPrettier) Reasonable defaults, best practices, only one line of config Designed to work with TypeScript, JSX, Vue, JSON, YAML, Toml, Markdown, etc. Out-of-box. ...
前言一开始关注到 antfu 是他的一头长发,毕竟留长发的肯定是技术大佬。果不其然,antfu 是个很高产、很 creative 的大佬,我也很喜欢他写的工具,无论是 @antfu/eslint-config、unocss、还是vitest等等。而这篇文…
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 30,977 Version 0.43.1 License MIT Unpacked Size 5.48 kB ...
针对你遇到的错误“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包不兼容。 分析错...
eslint.config.mjs build: 修改构建参数 6个月前 index.html feat: 电力质量分析仪 13天前 package.json feat: 远程实时监控增加参数配置弹框查询 5个月前 pnpm-lock.yaml feat: 远程实时监控增加参数配置弹框查询 5个月前 tsconfig.app.json feat: 迁移 ...