1
0
Fork 0
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
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
commit_statuses.tmpl
commits.tmpl
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
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
search.tmpl Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
shabox_badge.tmpl
sub_menu.tmpl Fixed commit count. (#17698) 2021-11-17 23:50:17 +00:00
upload.tmpl
user_cards.tmpl
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