@chatie/eslint-config

中文文档
1.4.1发布于 2023/01/20Apache-2.0CommonJS近 30 天下载 3608

ESLint Sharable Configurations and Rules in Chatie Organization

原始使用文档
文档目录15 节
  1. USAGE
  2. 3. You are All Set
  3. STYLES
  4. SEE ALSO
  5. tslint -> eslint
  6. FAQ
  7. 1. vscode not linting TypeScript files at all
  8. HISTORY
  9. main v1.0 (Oct 20, 2021)
  10. v0.14
  11. v0.11 (Jun 30, 2020)
  12. v0.6 (08 Jun, 2019)
  13. v0.0.1 (07 Jun 2019)
  14. AUTHOR
  15. COPYRIGHT & LICENSE

eslint-config

NPM Version npm (tag) NPM

ESLint Sharable Rules in TypeScript Standard Style

ESLint Sharable Rules in TypeScript Standard Style

Source: Using ESLint and Prettier in a TypeScript Project

USAGE

  1. Install @chatie/eslint-config
npm install --save-dev @chatie/eslint-config
  1. It will automatically generate a .eslintrc.js for you (if there's no such file before)

It will contains the following content:

module.exports = {
  extends: '@chatie',
}

3. You are All Set

./node_modules/.bin/eslint

eslint will work and follow the @chatie rules.

STYLES

SEE ALSO

tslint -> eslint

FAQ

1. vscode not linting TypeScript files at all

Add the following config to .vscode/settings.json to enable linting TypeScript files:

  "eslint.validate": [
    "javascript",
    "typescript",
  ],

HISTORY

main v1.0 (Oct 20, 2021)

  1. Sep 18: Clean TSLint...

v0.14

  1. Enforce Common JS (#54)
  2. Upgrade ESLint

v0.11 (Jun 30, 2020)

  1. Update dependencies to latest.
  2. Support Nullish coalescing operator (??)

v0.6 (08 Jun, 2019)

  1. Add rule no-floating-promises
  2. Add rule set (recommended) from eslint-plugin-promise
  3. Add dependence of file-name-linter to lint file names.
  4. Add dependence of markdownlint-cli to lint markdown.
  5. Auto generate .eslintrc.js in the project root directory after install if it not exists.
  6. First beta

v0.0.1 (07 Jun 2019)

  1. Converted tsling.json to .eslintrc.js with the JavaScript Standard Style.

AUTHOR

Huan LI (李卓桓) [email protected]

Profile of Huan LI (李卓桓) on StackOverflow

  • Code & Docs © 2019 - now Huan LI [email protected]
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

版本与发布记录

@chatie/eslint-config 共发布 52 个版本,首次发布于 2019/06/08;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.4.1latest2023/01/203 年前
1.2.22023/01/123 年前
1.0.42021/10/295 年前
1.0.32021/10/295 年前
1.0.22021/10/205 年前
0.16.22021/10/125 年前

其他发布通道:next → 0.15.2。

关于 @chatie/eslint-config 的常见问题

@chatie/eslint-config 是什么?

ESLint Sharable Configurations and Rules in Chatie Organization

如何安装 @chatie/eslint-config?

在项目目录运行 npm install @chatie/eslint-config,或使用 pnpm add / yarn add / bun add。

@chatie/eslint-config 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/chatie__eslint-config 是否存在。

@chatie/eslint-config 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@chatie/eslint-config 可以商用吗?

@chatie/eslint-config 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@chatie/eslint-config 的下载量有多少?

根据 npm 官方下载统计,@chatie/eslint-config 在 2026/10/10 – 2026/11/08 这 30 天内被下载 3,608 次,日均约 120 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@chatie/eslint-config 还在维护吗?

最新版本 1.4.1 发布于 2023/01/20(3 年前);至今共发布 52 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/06/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。