forgejo/templates/repo
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
..
branch Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
diff Allow Loading of Diffs that are too large (#17739) 2021-11-22 00:51:08 +08:00
editor Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
graph Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
issue Added comment for changing issue ref (#17672) 2021-11-19 17:54:31 +08:00
migrate Migrating wiki don't require token, so we should move it out of the require form (#17645) 2021-11-16 14:17:21 +08:00
projects Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
pulls Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
release Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
settings Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
wiki Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
activity.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
blame.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
branch_dropdown.tmpl Fixed commit count. (#17698) 2021-11-17 23:50:17 +00:00
clone_buttons.tmpl Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
commit_page.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
commit_status.tmpl Show dropdown with all statuses for commit (#13977) 2020-12-20 11:13:12 +08:00
commit_statuses.tmpl Show dropdown with all statuses for commit (#13977) 2020-12-20 11:13:12 +08:00
commits.tmpl Add compare tag dropdown to releases page (#15695) 2021-05-03 13:27:48 -04:00
commits_list.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
commits_list_small.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
commits_table.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
create.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
empty.tmpl Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
forks.tmpl Add pagination to fork list (#17639) 2021-11-18 22:45:56 +08:00
graph.tmpl Re-separate the color translation strings (#17390) 2021-10-21 23:51:03 +02:00
header.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
home.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 2020-12-13 16:51:15 -05:00
search.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
shabox_badge.tmpl Fix avatar template error (#13833) 2020-12-03 23:12:59 +00:00
sub_menu.tmpl Fixed commit count. (#17698) 2021-11-17 23:50:17 +00:00
upload.tmpl Add attachments for PR reviews (#16075) 2021-06-14 21:12:33 -04:00
user_cards.tmpl Direct avatar rendering (#13649) 2020-12-03 19:46:11 +01:00
view_file.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
view_list.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
watchers.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00