2016-12-16 11:11:54 +00:00
|
|
|
{
|
|
|
|
"extends": "wikimedia",
|
2017-07-28 17:32:46 +00:00
|
|
|
"parserOptions": {
|
2017-08-30 11:47:49 +00:00
|
|
|
"sourceType": "module",
|
2018-05-01 19:17:08 +00:00
|
|
|
"ecmaVersion": "6"
|
2017-07-28 17:32:46 +00:00
|
|
|
},
|
2016-12-16 11:11:54 +00:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"jquery": true,
|
2017-01-26 21:31:41 +00:00
|
|
|
"commonjs": true,
|
2016-12-16 11:11:54 +00:00
|
|
|
"qunit": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"mediaWiki": false,
|
|
|
|
"OO": false,
|
|
|
|
"moment": false,
|
|
|
|
"Redux": false,
|
|
|
|
"ReduxThunk": false
|
|
|
|
},
|
|
|
|
"rules": {
|
2018-03-20 18:03:13 +00:00
|
|
|
"no-restricted-properties": [2,
|
|
|
|
{
|
|
|
|
"object": "$",
|
|
|
|
"property": "each",
|
|
|
|
"message": "Please use Array.forEach"
|
|
|
|
}
|
|
|
|
],
|
2018-03-19 19:44:14 +00:00
|
|
|
"dot-notation": [ 2, { "allowKeywords": true } ],
|
2018-01-18 18:48:16 +00:00
|
|
|
"no-use-before-define": 0,
|
2018-03-15 16:30:11 +00:00
|
|
|
"no-var": 2,
|
2018-03-19 19:39:41 +00:00
|
|
|
"prefer-const": 1,
|
2018-03-20 17:01:18 +00:00
|
|
|
"prefer-template": 1,
|
2018-05-17 22:42:29 +00:00
|
|
|
"one-var": 0,
|
2018-01-18 18:48:16 +00:00
|
|
|
"max-len": [
|
2018-03-19 19:44:14 +00:00
|
|
|
1,
|
2018-01-18 18:48:16 +00:00
|
|
|
{
|
|
|
|
"tabWidth": 2,
|
2018-03-21 00:04:48 +00:00
|
|
|
"ignorePattern": "^// eslint-.+",
|
2018-01-18 18:48:16 +00:00
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignoreComments": false,
|
|
|
|
"ignoreRegExpLiterals": true,
|
|
|
|
"ignoreStrings": true,
|
|
|
|
"ignoreTemplateLiterals": true
|
|
|
|
}
|
|
|
|
]
|
2016-12-16 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|