diff options
author | silverwind <me@silverwind.io> | 2020-11-28 00:01:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 01:01:33 +0200 |
commit | 7ab363359815fa1cf67a217b0a03e7ecf24fb4fe (patch) | |
tree | 6c162ca9f11765b64efecf714a66d49a59f892bc /templates/base/footer.tmpl | |
parent | 3f13e078491753827e5e44f7133d3f58113f6fb4 (diff) | |
download | gitea-7ab363359815fa1cf67a217b0a03e7ecf24fb4fe.tar.gz gitea-7ab363359815fa1cf67a217b0a03e7ecf24fb4fe.zip |
Enable linting of JS inside templates (#13708)
Indentation-related rules are disabled because indent templates with
tabs but our lint rules expect spaces.
Also had to exclude a few files where using template variables in the JS
is causing syntax errors for the JS parser. I don't think there's a way
to solve this otherwise.
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/base/footer.tmpl')
-rw-r--r-- | templates/base/footer.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index c8e9674fba..bc45315ef9 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -16,7 +16,7 @@ <script src="{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js"></script> <script src="{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js"></script> <script> - CodeMirror.modeURL = "{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/%N/%N.js"; + CodeMirror.modeURL = '{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/%N/%N.js'; </script> {{end}} |