mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	eslint: Enable eslint-plugin-no-jquery.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		@@ -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": {
 | 
			
		||||
 
 | 
			
		||||
@@ -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",
 | 
			
		||||
 
 | 
			
		||||
@@ -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"
 | 
			
		||||
 
 | 
			
		||||
@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user