0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 12:14:51 +01:00
gitea/web_src/js/features
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
..
comp Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
admin-common.js
admin-emails.js
admin-users.js
clipboard.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
codeeditor.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
colorpicker.js
common-global.js
common-issue.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
common-organization.js
contextpopup.js
dropzone.js
emoji.js
eventsource.sharedworker.js
heatmap.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
imagediff.js
install.js
notification.js
org-team.js
repo-branch.js
repo-code.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
repo-commit.js
repo-common.js
repo-diff.js
repo-editor.js
repo-graph.js
repo-home.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
repo-issue-content.js
repo-issue.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
repo-legacy.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
repo-migrate.js
repo-migration.js
repo-projects.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
repo-release.js
repo-settings.js
repo-template.js
repo-wiki.js
serviceworker.js
sshkey-helper.js
stopwatch.js
tablesort.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
tribute.js
user-auth-u2f.js Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
user-auth.js
user-settings.js