mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 01:50:09 +00:00
3481080251
Use the eslint rule "no-var": "error" in resources/.eslintrc.json and in .eslintrc.json to require the use of `const` and `let` instead of `var`. Bug: T337102 Change-Id: I3b3d6d426966a97c13f62494443f62bd5b790920
31 lines
631 B
JSON
31 lines
631 B
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"wikimedia/client",
|
|
"wikimedia/jquery",
|
|
"wikimedia/mediawiki"
|
|
],
|
|
"rules": {
|
|
"no-var": "error",
|
|
"max-len": "off",
|
|
"no-jquery/no-class-state": "off",
|
|
"no-jquery/no-support": "off"
|
|
},
|
|
"settings": {
|
|
"jsdoc": {
|
|
"preferredTypes": {
|
|
"Config": "Config",
|
|
"License": "License",
|
|
"LightboxImage": "LightboxImage",
|
|
"MultimediaViewer": "MultimediaViewer",
|
|
"Repo": "Repo",
|
|
"TaskQueue": "TaskQueue",
|
|
"TaskQueueLightboxImage": "TaskQueueLightboxImage",
|
|
"Thumbnail": "Thumbnail",
|
|
"ThumbnailWidth": "ThumbnailWidth",
|
|
"UiElement": "UiElement"
|
|
}
|
|
}
|
|
}
|
|
}
|