diff options
author | Ed Sanders <esanders@wikimedia.org> | 2024-09-10 10:54:08 +0100 |
---|---|---|
committer | Ed Sanders <esanders@wikimedia.org> | 2024-09-12 17:09:17 +0100 |
commit | c20d111b503abc99f828af591111b76c4baf2b5a (patch) | |
tree | ed5c04b7b9e21f23642dc26e36181e392625bbe0 /resources/src/.eslintrc.json | |
parent | bc055b6ca41a46efb8162edb8ac2166724ed68e4 (diff) | |
download | mediawikicore-c20d111b503abc99f828af591111b76c4baf2b5a.tar.gz mediawikicore-c20d111b503abc99f828af591111b76c4baf2b5a.zip |
eslint: Autofix var to let/const
Temporarily disable no-var & prefer-const as resulting errors
need to be fixed manually.
Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
Diffstat (limited to 'resources/src/.eslintrc.json')
-rw-r--r-- | resources/src/.eslintrc.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/src/.eslintrc.json b/resources/src/.eslintrc.json index 7a746c6c92d3..ceb2ac86cae6 100644 --- a/resources/src/.eslintrc.json +++ b/resources/src/.eslintrc.json @@ -12,7 +12,8 @@ "rules": { "es-x/no-promise-prototype-finally": "off", "max-len": "off", - "no-var": "off", + "no-var": "warn", + "prefer-const": "warn", "no-jquery/no-global-selector": "off", "jsdoc/no-undefined-types": [ 1, { "definedTypes": [ |