mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-11 14:33:24 +00:00
rework eslint config (#11615)
* rework eslint config - use explicit config that only enables rules - upgrade eslint to 7.1.0 - add new plugins with selected rules enabled - fix discovered issues, remove global wipPrefixes * remove if * undo template change * add disabled rules as well for easier config updating * add missing disabled rule * update eslint and plugins * fix new violation * remove deprecated rules Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
1 parent
363e51d19c
commit
19db3f4f0a
8 files changed
+725
-163
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import {highlightBlock} from 'highlight.js';
|
||||
import {createWindow} from 'domino';
|
||||
|
||||
self.onmessage = function ({data}) {
|
||||
self.addEventListener('message', ({data}) => {
|
||||
const window = createWindow();
|
||||
self.document = window.document;
|
||||
|
||||
@@ -9,4 +9,4 @@ self.onmessage = function ({data}) {
|
||||
document.body.innerHTML = html;
|
||||
highlightBlock(document.body.firstChild);
|
||||
self.postMessage({index, html: document.body.innerHTML});
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user