// 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:...
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...
build.config.ts feat: add nuxt specific plugin Jan 20, 2024 eslint.config.ts chore: update deps Dec 10, 2023 package.json chore: release v0.1.1 Mar 11, 2024 pnpm-lock.yaml chore: update deps Mar 11, 2024 pnpm-workspace.yaml
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", ...
果不其然,antfu 是个很高产、很 creative 的大佬,我也很喜欢他写的工具,无论是@antfu/eslint-config、unocss、还是vitest等等。 而这篇文章故事的起源是,我今天中午逛 github 的时候发现大佬又又又又开了一个新的 repo(这是家常便饭的事),v-lazy-show 看了下是两天前的,所以好奇点进去看看是什么东东。
import antfu from '@antfu/eslint-config' export default antfu({ react: true, typescript: true, formatters: true, unocss: true, stylistic: { indent: 2, // 2, or 'tab' quotes: 'single', // or 'double' }, ignores: [ '.vscode', 'build/', 'src/assets/', 'public/', 'dist/...
npm i @antfu/eslint-config-basic Repository github.com/antfu/eslint-config Homepage github.com/antfu/eslint-config Weekly Downloads 32,653 Version 0.43.1 License MIT Unpacked Size 25.1 kB Total Files 4 Issues 17 Pull Requests 5 Last publish a year ago Collaborators Try on RunKit Report malwa...
github.com/antfu/eslint-config@antfu/eslint-config-basic Use it $ yarn add @antfu/eslint-config-basiccopy Try in RunKit· Browse Files CDNs unpkg unpkg.com/@antfu/eslint-config-basic/ bundle.run bundle.run/@antfu/eslint-config-basic jsDelivr cdn.jsdelivr.net/npm/@antfu/eslint-config-...
针对你遇到的错误“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包不兼容。 分析错...
commitlint.config.cjs feat: 迁移 6个月前 eslint.config.mjs build: 修改构建参数 6个月前 index.html feat: 电力质量分析仪 13天前 package.json feat: 远程实时监控增加参数配置弹框查询 5个月前 pnpm-lock.yaml feat: 远程实时监控增加参数配置弹框查询 ...