summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-28 00:01:33 +0100
committerGitHub <noreply@github.com>2020-11-28 01:01:33 +0200
commit7ab363359815fa1cf67a217b0a03e7ecf24fb4fe (patch)
tree6c162ca9f11765b64efecf714a66d49a59f892bc /package.json
parent3f13e078491753827e5e44f7133d3f58113f6fb4 (diff)
downloadgitea-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 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index 674c1f1451..d563c92aeb 100644
--- a/package.json
+++ b/package.json
@@ -55,6 +55,7 @@
},
"devDependencies": {
"eslint": "7.13.0",
+ "eslint-plugin-html": "6.1.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-unicorn": "23.0.0",
"eslint-plugin-vue": "7.1.0",