1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/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
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
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
activity.tmpl
blame.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
branch_dropdown.tmpl
clone_buttons.tmpl Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits_list_small.tmpl
commits_list.tmpl
commits_table.tmpl Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
commits.tmpl
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
shabox_badge.tmpl
sub_menu.tmpl
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
watchers.tmpl