mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
e1c4e94b23
Also enable jquery ruleset. Change-Id: Ie1f43d0335ea2aad1e2dd5d86b775316105c3d90
50 lines
905 B
JSON
50 lines
905 B
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"wikimedia/client",
|
|
"wikimedia/jquery"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": "6"
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"commonjs": true
|
|
},
|
|
"globals": {
|
|
"mediaWiki": false,
|
|
"OO": false,
|
|
"moment": false,
|
|
"Redux": false,
|
|
"ReduxThunk": false
|
|
},
|
|
"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
|
|
}
|
|
}
|