This repository has been archived on 2023-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
silverwind 056c04a9ac Add new JS linter rules (#17699)
* Add new JS linter rules

Adds a few useful rules from eslint-plugin-github. Notable changes:

- Forbid dataset usage, its camel-casing behaviour makes it hard to
  grep for attributes.
- Forbid .then() and .catch(), we should generally prefer await for new
  code. For rare cases where they are useful, a eslint-disable-line
  directive can be set.
- Add docs js to linting

* also enable github/array-foreach

* small tweak

Co-authored-by: Andrew Thornton <>
Co-authored-by: techknowlogick <>
Co-authored-by: wxiaoguang <>
2021-11-22 16:19:01 +08:00
search.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00