aboutsummaryrefslogtreecommitdiffstats
path: root/package-lock.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-05-12 17:51:50 +0200
committerGitHub <noreply@github.com>2022-05-12 23:51:50 +0800
commite45738e3c9a918da6bdb003043ce1bef0a07b50f (patch)
tree8205bbfb81fa55263a7278d93434d21251dd02b5 /package-lock.json
parent368baf9e77606e5de8bbcda8b0348f1a6fba6d73 (diff)
downloadgitea-e45738e3c9a918da6bdb003043ce1bef0a07b50f.tar.gz
gitea-e45738e3c9a918da6bdb003043ce1bef0a07b50f.zip
Introduce eslint-plugin-jquery (#19690)
Introduce the plugin that allows us to gradually forbid jQuery code. I've enabled all rules that already pass. Next step will be to go through each rule and fix the issues by using native DOM equivalents, which I think can be done in separate PRs, but if prefered I could also start here.
Diffstat (limited to 'package-lock.json')
-rw-r--r--package-lock.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index 72559681f1..64e2b70cb1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -48,6 +48,7 @@
"eslint": "8.15.0",
"eslint-plugin-html": "6.2.0",
"eslint-plugin-import": "2.26.0",
+ "eslint-plugin-jquery": "1.5.1",
"eslint-plugin-unicorn": "42.0.0",
"eslint-plugin-vue": "8.7.1",
"jest": "28.1.0",
@@ -4352,6 +4353,15 @@
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
"dev": true
},
+ "node_modules/eslint-plugin-jquery": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-jquery/-/eslint-plugin-jquery-1.5.1.tgz",
+ "integrity": "sha512-L7v1eaK5t80C0lvUXPFP9MKnBOqPSKhCOYyzy4LZ0+iK+TJwN8S9gAkzzP1AOhypRIwA88HF6phQ9C7jnOpW8w==",
+ "dev": true,
+ "peerDependencies": {
+ "eslint": ">=5.4.0"
+ }
+ },
"node_modules/eslint-plugin-unicorn": {
"version": "42.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-42.0.0.tgz",
@@ -13443,6 +13453,13 @@
}
}
},
+ "eslint-plugin-jquery": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-jquery/-/eslint-plugin-jquery-1.5.1.tgz",
+ "integrity": "sha512-L7v1eaK5t80C0lvUXPFP9MKnBOqPSKhCOYyzy4LZ0+iK+TJwN8S9gAkzzP1AOhypRIwA88HF6phQ9C7jnOpW8w==",
+ "dev": true,
+ "requires": {}
+ },
"eslint-plugin-unicorn": {
"version": "42.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-42.0.0.tgz",