mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 03:34:03 +00:00
3245a2ac6e
Bug: T190142 Change-Id: I5da7a4a1ffe14647ec70b10b3a7ab9b935c5ca84
51 lines
1 KiB
JSON
51 lines
1 KiB
JSON
{
|
|
"extends": "wikimedia",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": "5"
|
|
},
|
|
"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, // Interferes with prefer-const.
|
|
"max-len": [
|
|
1,
|
|
{
|
|
"tabWidth": 2,
|
|
// Exclude by default:
|
|
// - `eslint-` directives. To avoid having to disable
|
|
// eslint for a long eslint-disable line.
|
|
"ignorePattern": "^// eslint-.+",
|
|
"ignoreUrls": true,
|
|
"ignoreComments": false,
|
|
"ignoreRegExpLiterals": true,
|
|
"ignoreStrings": true,
|
|
"ignoreTemplateLiterals": true
|
|
}
|
|
]
|
|
}
|
|
}
|