{"_id":"@ecomfe/oxlint-config","_rev":"3-fd2b7493045044eb59fcec6ab1e60350","name":"@ecomfe/oxlint-config","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"@ecomfe/oxlint-config","version":"0.0.1","keywords":["oxlint","lint","config","ecomfe","baidu"],"license":"MIT","_id":"@ecomfe/oxlint-config@0.0.1","maintainers":[{"name":"leeight","email":"leeight@gmail.com"},{"name":"otakustay","email":"otakustay@gmail.com"},{"name":"ecomfe-admin","email":"ecomfe@gmail.com"},{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"},{"name":"gdjinbo","email":"wfsr@foxmail.com"},{"name":"justineo","email":"justice360@gmail.com"},{"name":"luyuan","email":"luyuan.china@gmail.com"},{"name":"ksky521","email":"ksky521@gmail.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"jinzhan","email":"steinitz@qq.com"},{"name":"kaivean","email":"kaivean@outlook.com"}],"homepage":"https://github.com/ecomfe/oxlint-config#readme","bugs":{"url":"https://github.com/ecomfe/oxlint-config/issues"},"dist":{"shasum":"8c05c80e6a02e6dcb9d39be3206138304d3c2e0c","tarball":"https://registry.npmjs.org/@ecomfe/oxlint-config/-/oxlint-config-0.0.1.tgz","fileCount":1,"integrity":"sha512-gwcyXi2bgKiZndkQ2d0PV8sNJVERdleLdmBXaxrgjvUm+Ep/2KrTR4cbMsjqI8+pKh+BkE8l0kVCPTVjX0h8dw==","signatures":[{"sig":"MEYCIQDTAST9U2swWCZ5ooXp8OhUaWPp0dOX1z+t64lEw3JErQIhANEAyD2KtUtXh0OYKjPqb1XDVvb+pFIhk0RQBH+os+0R","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":363},"type":"module","_npmUser":{"name":"otakustay","email":"otakustay@gmail.com"},"repository":{"url":"git+https://github.com/ecomfe/oxlint-config.git","type":"git"},"_npmVersion":"11.9.0","description":"Oxlint config for Baidu EFE (migrated from @ecomfe/eslint-config)","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oxlint-config_0.0.1_1775638317646_0.7097819214456396","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@ecomfe/oxlint-config","version":"1.0.0","keywords":["oxlint","lint","config","ecomfe","baidu"],"license":"MIT","_id":"@ecomfe/oxlint-config@1.0.0","maintainers":[{"name":"leeight","email":"leeight@gmail.com"},{"name":"otakustay","email":"otakustay@gmail.com"},{"name":"ecomfe-admin","email":"ecomfe@gmail.com"},{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"},{"name":"gdjinbo","email":"wfsr@foxmail.com"},{"name":"justineo","email":"justice360@gmail.com"},{"name":"luyuan","email":"luyuan.china@gmail.com"},{"name":"ksky521","email":"ksky521@gmail.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"jinzhan","email":"steinitz@qq.com"},{"name":"kaivean","email":"kaivean@outlook.com"},{"name":"hixuanxuan","email":"3372353368@qq.com"}],"homepage":"https://github.com/ecomfe/oxlint-config#readme","bugs":{"url":"https://github.com/ecomfe/oxlint-config/issues"},"dist":{"shasum":"ef7dd7395d852519f3193600aa761d6c90edc9fe","tarball":"https://registry.npmjs.org/@ecomfe/oxlint-config/-/oxlint-config-1.0.0.tgz","fileCount":4,"integrity":"sha512-ELWkXGp2GJ2tL3FeuBZM1/zdZ8K4efFjDOLN0WWqC1fRxPzxBmPyzjmAqQffKBejuwJSyD7XzwmeF23aTyBpYw==","signatures":[{"sig":"MEUCIEgysxeBB5kLzbbUFUdU9DftzhdYLjy6YSl2MDNdgAiqAiEAl2KGCC7ibX7rw5lrOdfMj2OpDzlfg2E+wU8dT71XG/s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ecomfe%2foxlint-config@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4557},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"37763bdd7101f6e9f4897ff14779cd91e3158487","scripts":{"test":"node tests/run.mjs","audit":"node scripts/coverage-audit.mjs","build":"rm -rf dist && tsc --project tsconfig.build.json","watch":"tsc --project tsconfig.build.json --watch","prepare":"[ -d .git ] && husky || true"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e4e5ff0b-b514-47ad-8a33-cc71d558f47c"}},"repository":{"url":"git+https://github.com/ecomfe/oxlint-config.git","type":"git"},"_npmVersion":"11.11.0","description":"Oxlint config for Baidu EFE (migrated from @ecomfe/eslint-config)","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","oxlint":"^1.56.0","typescript":"^6.0.2"},"peerDependencies":{"oxlint":">=1.56.0"},"_npmOperationalInternal":{"tmp":"tmp/oxlint-config_1.0.0_1775638673496_0.8059188874122547","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ecomfe/oxlint-config","version":"1.0.1","description":"Oxlint config for Baidu EFE (migrated from @ecomfe/eslint-config)","type":"module","repository":{"type":"git","url":"git+https://github.com/ecomfe/oxlint-config.git"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"prepare":"[ -d .git ] && husky || true","build":"rm -rf dist && tsc --project tsconfig.build.json","watch":"tsc --project tsconfig.build.json --watch","test":"node tests/run.mjs","audit":"node scripts/coverage-audit.mjs","prepublishOnly":"npm run build"},"publishConfig":{"access":"public"},"peerDependencies":{"oxlint":">=1.56.0"},"keywords":["oxlint","lint","config","ecomfe","baidu"],"devDependencies":{"husky":"^9.1.7","oxlint":"^1.56.0","typescript":"^6.0.2"},"gitHead":"0626981e3aa5646e75c191afb2b2a01bf40975ba","_id":"@ecomfe/oxlint-config@1.0.1","bugs":{"url":"https://github.com/ecomfe/oxlint-config/issues"},"homepage":"https://github.com/ecomfe/oxlint-config#readme","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-H36CCuWFrL3K2dz27OSngNLlo181A9zfbR/Z5wY+ZSmJUTKioG+/lNS0Z8fG7sOLGL/cZtQRAH26+GGPUcEjHA==","shasum":"045efc4a219db9476bbca33758b6e3f7aa0faeaa","tarball":"https://registry.npmjs.org/@ecomfe/oxlint-config/-/oxlint-config-1.0.1.tgz","fileCount":14,"unpackedSize":27937,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ecomfe%2foxlint-config@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG+KhCf4rKG71UVjdC2YC4Qv+fXUC7uOxAdBHVxxOWD2AiEAz7naqky6AS4UrZ4JRGWNUG69VD6rH6EIEyB2nod1BYg="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e4e5ff0b-b514-47ad-8a33-cc71d558f47c"}},"directories":{},"maintainers":[{"name":"leeight","email":"leeight@gmail.com"},{"name":"otakustay","email":"otakustay@gmail.com"},{"name":"ecomfe-admin","email":"ecomfe@gmail.com"},{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"},{"name":"gdjinbo","email":"wfsr@foxmail.com"},{"name":"justineo","email":"justice360@gmail.com"},{"name":"luyuan","email":"luyuan.china@gmail.com"},{"name":"ksky521","email":"ksky521@gmail.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"jinzhan","email":"steinitz@qq.com"},{"name":"kaivean","email":"kaivean@outlook.com"},{"name":"hixuanxuan","email":"3372353368@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oxlint-config_1.0.1_1779203462015_0.6084814981299611"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-08T08:51:57.521Z","modified":"2026-05-19T15:11:02.653Z","0.0.1":"2026-04-08T08:51:57.778Z","1.0.0":"2026-04-08T08:57:53.616Z","1.0.1":"2026-05-19T15:11:02.166Z"},"bugs":{"url":"https://github.com/ecomfe/oxlint-config/issues"},"license":"MIT","homepage":"https://github.com/ecomfe/oxlint-config#readme","keywords":["oxlint","lint","config","ecomfe","baidu"],"repository":{"type":"git","url":"git+https://github.com/ecomfe/oxlint-config.git"},"description":"Oxlint config for Baidu EFE (migrated from @ecomfe/eslint-config)","maintainers":[{"name":"leeight","email":"leeight@gmail.com"},{"name":"otakustay","email":"otakustay@gmail.com"},{"name":"ecomfe-admin","email":"ecomfe@gmail.com"},{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"},{"name":"gdjinbo","email":"wfsr@foxmail.com"},{"name":"justineo","email":"justice360@gmail.com"},{"name":"luyuan","email":"luyuan.china@gmail.com"},{"name":"ksky521","email":"ksky521@gmail.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"jinzhan","email":"steinitz@qq.com"},{"name":"kaivean","email":"kaivean@outlook.com"},{"name":"hixuanxuan","email":"3372353368@qq.com"}],"readme":"# @ecomfe/oxlint-config\n\n百度 EFE 团队的 Oxlint 配置（从 [ecomfe/eslint-config](https://github.com/ecomfe/eslint-config) 迁移）\n\n## 安装\n\n```bash\nnpm install -D oxlint @ecomfe/oxlint-config\n```\n\n## 使用\n\n在项目根目录创建 `oxlint.config.ts`：\n\n```javascript\nimport {configure} from '@ecomfe/oxlint-config';\nimport {defineConfig} from 'oxlint';\n\nexport default defineConfig({\n    extends: configure({\n        strict: true,       // 启用严格模式（可选）\n        import: {},         // 启用 import 规则（可选）\n        typescript: {},     // 启用 TypeScript 规则（可选）\n        react: {},          // 启用 React 规则（可选）\n    }),\n    // 项目自定义覆盖\n    rules: {\n        'no-console': 'off',\n    },\n});\n```\n\n按需保留 `configure` 中的选项即可，无需的场景直接删除对应字段。\n\n如需更细粒度控制，可使用独立配置函数：\n\n```javascript\nimport {createBaseConfig, createTypeScriptConfig, createReactConfig} from '@ecomfe/oxlint-config';\nimport {defineConfig} from 'oxlint';\n\nexport default defineConfig({\n    extends: [\n        createBaseConfig({strict: true}),\n        createTypeScriptConfig(),\n        createReactConfig(),\n    ],\n});\n```\n\n### 运行\n\n```bash\nnpx oxlint .          # 检查代码\nnpx oxlint . --fix    # 自动修复\n```\n\n## 配置项\n\n除 `strict` 外，其余选项均控制特定场景的规则，无该配置即完全禁用相关规则，传入空对象 `{}` 表示按默认配置启用。\n\n- **`strict`**：启用严格模式，提升部分规则的约束。\n- **`import`**：模块导入、导出相关规则（约 15+ 条）。\n- **`typescript`**：TypeScript 相关规则（约 80+ 条非类型检查规则）。\n- **`react`**：React 最佳实践规则（约 50+ 条）。\n\n## 不包含的规则\n\n- **格式化规则**（约 50 条）：建议使用 `dprint` 或 `Prettier`\n- **TypeScript 类型检查规则**（约 15 条）：需要类型信息（如 `no-floating-promises`），建议配合 `tsc --strict --noEmit`\n- **oxlint 尚未实现的规则**（约 15 条）：详见 [TODO.md](./TODO.md)\n","readmeFilename":"README.md"}