You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
components Cleanup and use global style on popups (#17674) 3 years ago
features Add new JS linter rules (#17699) 3 years ago
markup Add new JS linter rules (#17699) 3 years ago
standalone Add new JS linter rules (#17699) 3 years ago
vendor Restore Accessibility for Dropdown (#16576) 3 years ago
easymde.js Switch from SimpleMDE to EasyMDE (#13333) 4 years ago
index.js Improve async/await usage, and sort init calls in `index.js` (#17386) 3 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 4 years ago
publicpath.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 4 years ago
svg.js Add copy button to markdown code blocks (#17638) 3 years ago
svg.test.js Add copy button to markdown code blocks (#17638) 3 years ago
utils.js Fix context popup error (#17398) 3 years ago
utils.test.js Fix context popup error (#17398) 3 years ago