Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Updating the Documentation to ES6+

未关闭
#787 4 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
领域
documentation

调研方向

首先检查存储库中的文档示例,并找出 var、回调和 CommonJS 导入的使用情况。更新示例,使其使用 const 或 let、在适当情况下使用 Promises,并可选择使用 ES6 导入;完成标准是文档始终展示所要求的 ES6+ 语法。

由索引模型根据 Issue 内容生成。

描述

Adding ES6+ Syntax to the Examples

Currently, examples in the documentation use the old version of JavaScript. Namely the pre ES6 version with some practices already abandoned in most of the projects, such as using const & let instead of var, the use of callbacks.

Possible Changes
  • Variables initiated with var can be changed to const or let depending on the context
  • Promises can be used, instead of callbacks
  • Optionally, "commonjs" importing technique, can be changed with ES6 import keyword
主要语言
JavaScript
星标
18.2k
派生
1.3k
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

auth0/node-jsonwebtoken 的其他 Issue

查看 auth0/node-jsonwebtoken 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。