mediawiki-extensions-Visual.../.eslintrc.json
Ed Sanders 2098292318 Use no-jquery/no-html to warn against writing HTML strings to the DOM
This forces us to comment when we are doing this deliberately.

Change-Id: Ide1bcb64f6c6076b48e88f1f27045bd93392f8a0
2021-12-16 01:28:42 +00:00

27 lines
612 B
JSON

{
"root": true,
"extends": [
"wikimedia/client-es5",
"wikimedia/jquery",
"wikimedia/mediawiki",
"wikimedia/jsduck"
],
"globals": {
"ve": "readonly",
"VisualEditorSupportCheck": "readonly",
"unicodeJS": "readonly",
"RangeFix": "readonly",
"Papa": "readonly"
},
"rules": {
"no-jquery/no-append-html": "error",
"no-jquery/no-deferred": "error",
"no-jquery/no-extend": "error",
"no-jquery/no-html": [ "error", { "allowGetOrSet": "get" } ],
"no-jquery/no-when": "error",
"no-jquery/no-visibility": "error",
"max-len": "off",
"mediawiki/valid-package-file-require": "warn"
}
}