{"name":"eslint-config-ali","version":"16.3.0","keywords":["eslint","eslintconfig","f2elint","Alibaba F2E Guidelines"],"author":{"name":"Sabo","email":"bowei.jbw@gmail.com"},"license":"MIT","_id":"eslint-config-ali@16.3.0","maintainers":[{"name":"jeason","email":"me@jeasonstudio.cn"},{"name":"bowei.jbw","email":"bowei.jbw@gmail.com"},{"name":"cstyles","email":"cstyles@qq.com"},{"name":"lakerswgq","email":"lakerswgq@gmail.com"},{"name":"guoyunhe","email":"i@guoyunhe.me"}],"contributors":[{"url":"https://guoyunhe.me/","name":"Guo Yunhe","email":"i@guoyunhe.me"},{"name":"Jeason","email":"me@jeasonstudio.cn"},{"name":"lakerswgq","email":"lakerswgq@gmail.com"},{"name":"cstyles","email":"cstyles@qq.com"}],"homepage":"https://github.com/alibaba/f2e-spec","bugs":{"url":"https://github.com/alibaba/f2e-spec/issues"},"dist":{"shasum":"b93d27e6be2f16a654acd88eb414a7d067e7da74","tarball":"http://registry-npm.ywwl.com/eslint-config-ali/download/eslint-config-ali-16.3.0.tgz","fileCount":32,"integrity":"sha512-sIxSGDUehagX6BXOs8ELHvtDioE968xKB039aEoKBNm5V3Uh6zOEMv2jQjKF5CZzwsmStXKMvjKGS5+6sB7mAg==","signatures":[{"sig":"MEUCIQDsGN6siFSb8hu3BxLZq2q2SKylcbnxzN+e7EmvBS7cFAIgexXOlrsPQCNkNa0FJJu5EJ9Pi1IYRdMzy/AgjeBjXLE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92077,"size":25831,"noattachment":false,"key":"/eslint-config-ali/-/eslint-config-ali-16.3.0.tgz"},"main":"dist/index.js","rive":{"doc":{"disabled":true},"template":"node"},"type":"module","_from":"file:eslint-config-ali-16.3.0.tgz","types":"dist/index.d.ts","funding":"https://github.com/sponsors/alibaba","scripts":{"lint":"eslint .","test":"vitest run","build":"rive build","start":"rive start","test:ui":"vitest --ui","lint:fix":"prettier --write . && eslint --fix .","test:watch":"vitest","build:watch":"rive build --watch"},"_npmUser":{"name":"guoyunhe","email":"i@guoyunhe.me"},"prettier":"prettier-config-ali","_resolved":"/private/var/folders/vg/0p6j4ycx56j8xxc1fq3_kxqw0000gp/T/5ec6cb76c18ed588b29c72635ddaad11/eslint-config-ali-16.3.0.tgz","_integrity":"sha512-sIxSGDUehagX6BXOs8ELHvtDioE968xKB039aEoKBNm5V3Uh6zOEMv2jQjKF5CZzwsmStXKMvjKGS5+6sB7mAg==","repository":{"url":"git+https://github.com/alibaba/f2e-spec.git","type":"git"},"_npmVersion":"10.9.2","description":"ESLint Shareable Config for Alibaba F2E Guidelines","directories":{},"_nodeVersion":"22.15.0","dependencies":{"globals":"^15.14.0","@eslint/js":"^9.17.0","typescript":"^5.7.3","@babel/core":"^7.26.0","@eslint/compat":"^1.2.4","@babel/preset-env":"^7.26.0","typescript-eslint":"^8.19.0","@babel/preset-react":"^7.26.3","eslint-plugin-react":"^7.37.3","@babel/eslint-parser":"^7.25.9","@stylistic/eslint-plugin":"^4.2.0","eslint-plugin-react-hooks":"^5.2.0","@babel/plugin-proposal-decorators":"^7.27.1"},"_hasShrinkwrap":false,"devDependencies":{"rive":"^3.1.2","react":"^18.3.1","eslint":"^9.25.1","vitest":"^3.1.2","prettier":"^3.5.3","react-dom":"^18.3.1","@vitest/ui":"^3.1.2","typescript":"^5.8.3","@types/node":"^20.17.31","@types/react":"^18.3.20","react-doc-ui":"^2.3.3","@mdx-js/react":"^3.1.0","@types/eslint":"^9.6.1","@types/react-dom":"^18.3.6","eslint-config-ali":"^16.1.1","prettier-config-ali":"^1.3.4","eslint-config-prettier":"^10.1.2","eslint-plugin-prettier":"^5.2.6"},"peerDependencies":{"eslint":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-ali_16.3.0_1747027878598_0.007588925181599482","host":"s3://npm-registry-packages-npm-production"},"readme":"# eslint-config-ali\n\n![Version](https://img.shields.io/npm/v/eslint-config-ali)\n![Downloads](https://img.shields.io/npm/dw/eslint-config-ali)\n\n本包是[《阿里巴巴前端规约》](https://github.com/alibaba/f2e-spec)配套的 [ESLint 可共享配置](http://eslint.org/docs/developer-guide/shareable-configs.html)，提供了多套配置文件以支持 JavaScript、TypeScript、React、Vue、Node.js 等多种项目类型。\n\n## f2elint 接入（推荐）\n\n```bash\nnpx f2elint\n```\n\n## 手动接入\n\n```bash\nnpm install --save-dev eslint@^9 eslint-config-ali\n```\n\n### 基础 JavaScript/TypeScript 项目\n\n```js\n// eslint.config.mjs\nimport { base } from 'eslint-config-ali';\n\nexport default [...base];\n```\n\n### React JavaScript/TypeScript 项目\n\n针对 JS React 项目，继承了默认配置，并启用了 [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) 和 [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks) 的规则。\n\nESLint 配置：\n\n```js\n// eslint.config.mjs\nimport { react } from 'eslint-config-ali';\n\nexport default [...react];\n```\n\n## 了解更多\n\n- 如果你对 ESLint 还不熟悉，可以阅读官网的 [Getting Started](https://eslint.org/docs/user-guide/getting-started) 快速入门。\n- 了解如何为 IDE 配置 ESLint，可以参考官网的 [Integrations](http://eslint.org/docs/user-guide/integrations)。\n- 了解如何在继承本包的基础上对项目 ESLint 进行个性化配置，可参考官网的 [Configuring ESLint](https://eslint.org/docs/user-guide/configuring)。下面简介下 ESLint 配置中的几个常用字段：\n  - `extends`: 继承一组规则集。`\"extends\": \"eslint-config-ali\",` 表示继承本包定义的规则配置。\n  - `rules`: 配置规则，这里定义的规则会覆盖 `extends` 的规则。如果觉得本包开启的某条规则过于严格，你可以暂时在这里将其关闭。\n  - `parser`: 设置 ESLint 的解析器。ESLint 使用 espree 作为默认的解析器，可以通过这个参数指定其他的解析器。比如指定为 [@babel/eslint-parser](https://npmjs.com/package/@babel/eslint-parser)，以解析 Babel 支持但 ESLint 默认解析器不支持的语法（本包不同配置文件使用的解析器可在简介表格中的「依赖 parser」一列查看）。\n  - `globals`: 指定代码中可能用到的全局变量，以免全局变量被 [no-undef](http://eslint.org/docs/rules/no-undef) 规则报错。\n  - `env`: 指定代码的运行环境，每个环境预定义了一组对应的全局变量，本包已开启的环境有 browser、node、jquery、es6 及几个测试框架的环境。\n- 了解常用的 ESLint 命令，如 `--fix`、`--ext`，可参考官网的 [Command Line Interface](http://eslint.org/docs/user-guide/command-line-interface)。\n","publish_time":1747027878796,"_cnpm_publish_time":1747027878796,"dist-tags":{"beta":"16.0.0-beta.2","latest":"16.6.0","old-version":"10.3.3"}}