Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Enable eslint-plugin-no-jquery.
Anders Kaseorg4b712b49efac
diff --git a/.eslintrc.json b/.eslintrc.jsonindex bb4bef5de1a..06fd255ec1a 100644--- a/.eslintrc.json+++ b/.eslintrc.json@@ -7,6 +7,7 @@"eslint:recommended","plugin:import/errors","plugin:import/warnings",+ "plugin:no-jquery/recommended","plugin:unicorn/recommended","prettier"],@@ -15,9 +16,15 @@"warnOnUnsupportedTypeScriptVersion": false,"sourceType": "unambiguous"},- "plugins": ["formatjs"],+ "plugins": ["formatjs", "no-jquery"],"settings": {- "additionalFunctionNames": ["$t", "$t_html"]+ "additionalFunctionNames": ["$t", "$t_html"],+ "no-jquery": {+ "collectionReturningPlugins": {+ "expectOne": "always"+ },+ "variablePattern": "^\\$(?!t$|t_html$)."+ }},"reportUnusedDisableDirectives": true,"rules": {diff --git a/package.json b/package.jsonindex 24279a49e3a..3e39b911229 100644--- a/package.json+++ b/package.json@@ -105,6 +105,7 @@"eslint-import-resolver-webpack": "^0.13.0","eslint-plugin-formatjs": "^3.0.0","eslint-plugin-import": "^2.22.0",+ "eslint-plugin-no-jquery": "^2.7.0","eslint-plugin-unicorn": "^41.0.0","jsdom": "^19.0.0","mockdate": "^3.0.2",diff --git a/version.py b/version.pyindex 43d7cbf8626..96cad6e6d5c 100644--- a/version.py+++ b/version.py@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 121# historical commits sharing the same major version, in which case a# minor version bump suffices.-PROVISION_VERSION = "182.0"+PROVISION_VERSION = "182.1"diff --git a/yarn.lock b/yarn.lockindex 1c98e618e68..840cfeeee0d 100644--- a/yarn.lock+++ b/yarn.lock@@ -4651,6 +4651,11 @@ eslint-plugin-import@^2.22.0:resolve "^1.20.0"tsconfig-paths "^3.12.0"+eslint-plugin-no-jquery@^2.7.0:+ version "2.7.0"+ resolved "https://registry.yarnpkg.com/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-2.7.0.tgz#855f5631cf5b8e25b930cf6f06e02dd81f132e72"+ integrity sha512-Aeg7dA6GTH1AcWLlBtWNzOU9efK5KpNi7b0EhBO0o0M+awyzguUUo8gF6hXGjQ9n5h8/uRtYv9zOqQkeC5CG0w==+eslint-plugin-unicorn@^41.0.0:version "41.0.0"resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-41.0.0.tgz#bf0974f8551ab4dd4aaae7d9cf53894040defbbd"