gitea/web_src/js
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
..
components Cleanup and use global style on popups (#17674) 2021-11-18 11:26:50 +08:00
features Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
markup Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
standalone Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
vendor Restore Accessibility for Dropdown (#16576) 2021-08-06 01:16:24 +03:00
easymde.js Switch from SimpleMDE to EasyMDE (#13333) 2020-11-10 14:16:30 -05:00
index.js Improve async/await usage, and sort init calls in index.js (#17386) 2021-11-09 17:27:25 +08:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
publicpath.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 2021-10-21 15:37:43 +08:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js Add copy button to markdown code blocks (#17638) 2021-11-16 16:16:05 +08:00
svg.test.js Add copy button to markdown code blocks (#17638) 2021-11-16 16:16:05 +08:00
utils.js Fix context popup error (#17398) 2021-10-22 22:34:01 +08:00
utils.test.js Fix context popup error (#17398) 2021-10-22 22:34:01 +08:00