mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 03:34:03 +00:00
deffae141c
- Drop unused moment, Redux, and ReduxThunk globals. - Instead of using a confusing and deprecated boolean, specify that globals are "readable" / "writable" https://eslint.org/docs/user-guide/configuring#specifying-globals Change-Id: I711a4ea7c51c9a560f20fc28bc99bd932c7e1e25
47 lines
855 B
JSON
47 lines
855 B
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"wikimedia/client",
|
|
"wikimedia/jquery"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": "6"
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"commonjs": true
|
|
},
|
|
"globals": {
|
|
"mediaWiki": "readonly",
|
|
"OO": "readonly"
|
|
},
|
|
"rules": {
|
|
"no-prototype-builtins": 0,
|
|
"no-restricted-properties": [2,
|
|
{
|
|
"object": "$",
|
|
"property": "each",
|
|
"message": "Please use Array.forEach"
|
|
}
|
|
],
|
|
"valid-jsdoc": ["error", {
|
|
"requireParamDescription": false,
|
|
"requireReturnDescription": false,
|
|
"preferType": {
|
|
"Boolean": "boolean",
|
|
"Number": "number",
|
|
"object": "Object",
|
|
"String": "string"
|
|
}
|
|
}],
|
|
"dot-notation": [ 2, { "allowKeywords": true } ],
|
|
"no-use-before-define": 0,
|
|
"no-var": 2,
|
|
"prefer-const": 1,
|
|
"prefer-template": 1,
|
|
"one-var": 0
|
|
}
|
|
}
|