mirror of https://github.com/zulip/zulip.git
eslint: Enable eslint-plugin-no-jquery.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f84a2c08d5
commit
4b712b49ef
|
@ -7,6 +7,7 @@
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:import/errors",
|
"plugin:import/errors",
|
||||||
"plugin:import/warnings",
|
"plugin:import/warnings",
|
||||||
|
"plugin:no-jquery/recommended",
|
||||||
"plugin:unicorn/recommended",
|
"plugin:unicorn/recommended",
|
||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
|
@ -15,9 +16,15 @@
|
||||||
"warnOnUnsupportedTypeScriptVersion": false,
|
"warnOnUnsupportedTypeScriptVersion": false,
|
||||||
"sourceType": "unambiguous"
|
"sourceType": "unambiguous"
|
||||||
},
|
},
|
||||||
"plugins": ["formatjs"],
|
"plugins": ["formatjs", "no-jquery"],
|
||||||
"settings": {
|
"settings": {
|
||||||
"additionalFunctionNames": ["$t", "$t_html"]
|
"additionalFunctionNames": ["$t", "$t_html"],
|
||||||
|
"no-jquery": {
|
||||||
|
"collectionReturningPlugins": {
|
||||||
|
"expectOne": "always"
|
||||||
|
},
|
||||||
|
"variablePattern": "^\\$(?!t$|t_html$)."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"reportUnusedDisableDirectives": true,
|
"reportUnusedDisableDirectives": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
|
@ -105,6 +105,7 @@
|
||||||
"eslint-import-resolver-webpack": "^0.13.0",
|
"eslint-import-resolver-webpack": "^0.13.0",
|
||||||
"eslint-plugin-formatjs": "^3.0.0",
|
"eslint-plugin-formatjs": "^3.0.0",
|
||||||
"eslint-plugin-import": "^2.22.0",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
|
"eslint-plugin-no-jquery": "^2.7.0",
|
||||||
"eslint-plugin-unicorn": "^41.0.0",
|
"eslint-plugin-unicorn": "^41.0.0",
|
||||||
"jsdom": "^19.0.0",
|
"jsdom": "^19.0.0",
|
||||||
"mockdate": "^3.0.2",
|
"mockdate": "^3.0.2",
|
||||||
|
|
|
@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 121
|
||||||
# historical commits sharing the same major version, in which case a
|
# historical commits sharing the same major version, in which case a
|
||||||
# minor version bump suffices.
|
# 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"
|
resolve "^1.20.0"
|
||||||
tsconfig-paths "^3.12.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:
|
eslint-plugin-unicorn@^41.0.0:
|
||||||
version "41.0.0"
|
version "41.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-41.0.0.tgz#bf0974f8551ab4dd4aaae7d9cf53894040defbbd"
|
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-41.0.0.tgz#bf0974f8551ab4dd4aaae7d9cf53894040defbbd"
|
||||||
|
|
Loading…
Reference in New Issue