mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-25 07:56:40 +00:00
2d6bd5f4b7
Comments in this json file preventing scap deploy Change-Id: I71a3c29c0d0d6d125fff2803bb5d912536c1a4d0
48 lines
862 B
JSON
48 lines
862 B
JSON
{
|
|
"extends": "wikimedia",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": "6"
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"commonjs": true,
|
|
"qunit": true
|
|
},
|
|
"globals": {
|
|
"mediaWiki": false,
|
|
"OO": false,
|
|
"moment": false,
|
|
"Redux": false,
|
|
"ReduxThunk": false
|
|
},
|
|
"rules": {
|
|
"no-restricted-properties": [2,
|
|
{
|
|
"object": "$",
|
|
"property": "each",
|
|
"message": "Please use Array.forEach"
|
|
}
|
|
],
|
|
"dot-notation": [ 2, { "allowKeywords": true } ],
|
|
"no-use-before-define": 0,
|
|
"no-var": 2,
|
|
"prefer-const": 1,
|
|
"prefer-template": 1,
|
|
"one-var": 0,
|
|
"max-len": [
|
|
1,
|
|
{
|
|
"tabWidth": 2,
|
|
"ignorePattern": "^// eslint-.+",
|
|
"ignoreUrls": true,
|
|
"ignoreComments": false,
|
|
"ignoreRegExpLiterals": true,
|
|
"ignoreStrings": true,
|
|
"ignoreTemplateLiterals": true
|
|
}
|
|
]
|
|
}
|
|
}
|