forgejo/templates
silverwind a159c3175f
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 <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-11-22 16:19:01 +08:00
..
admin Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
base Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
mail Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
org Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
repo Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
shared Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
status Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
swagger Add API to get/edit wiki (#17278) 2021-10-25 11:43:40 +08:00
user Fix correct usage of teams (#17732) 2021-11-20 11:13:24 +08:00
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
install.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00