mediawiki-extensions-Visual.../modules/eslint-shared.json
Bartosz Dziewoński 12613a6ad0 Disable eslint security regexp warnings
They generate a lot of false positives in this extension.

Since this is client-side code, the worst that could happen is a
browser tab hanging, not any real security issues.

Change-Id: I177cfa7e57a6b7b528d558d2cba076e85fd0271f
2024-05-07 20:54:42 +02:00

32 lines
637 B
JSON

{
"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",
"security/detect-unsafe-regex": "off",
"security/detect-non-literal-regexp": "off",
"max-len": "off",
"mediawiki/valid-package-file-require": "warn"
},
"settings": {
"polyfills": [
"URL"
]
}
}