mediawiki-extensions-Popups/.eslintrc.json
Jon Robson 580067b94e Discourage jQuery usage in Popups extension
Change-Id: Iff0c81e4c1d78cc52d1bd9d81e24d8fae228c9bc
2023-06-13 15:39:57 -07:00

46 lines
981 B
JSON

{
"root": true,
"plugins": [
"no-jquery"
],
"extends": [
"wikimedia/common",
"wikimedia/language/es6",
"wikimedia/jquery",
"plugin:no-jquery/all",
"wikimedia/mediawiki"
],
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"commonjs": true
},
"rules": {
"no-jquery/no-jquery-constructor": "error",
"no-jquery/no-find-collection": "error",
"no-jquery/no-attr": "error",
"no-jquery/no-class": "error",
"no-jquery/no-text": "error",
"no-jquery/no-css": "error",
"no-jquery/no-other-methods": "error",
"no-jquery/no-html": "error",
"no-jquery/no-class-state": "error",
"no-jquery/no-deferred": "error",
"no-jquery/no-when": "error",
"no-jquery/no-extend": "error",
"compat/compat": "off",
"no-use-before-define": "off",
"jsdoc/no-undefined-types": "off",
"no-dupe-keys": "warn",
"yml/block-sequence": "warn",
"yml/plain-scalar": "warn"
},
"settings": {
"jsdoc": {
"mode": "typescript"
}
}
}