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",
|
|
|
|
"ecmaVersion": "5"
|
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": {
|
|
|
|
"dot-notation": [ "error", { "allowKeywords": true } ],
|
2018-01-18 18:48:16 +00:00
|
|
|
"no-use-before-define": 0,
|
|
|
|
"max-len": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"tabWidth": 2,
|
|
|
|
// Note: exclude all eslint- directives except for max-len itself
|
|
|
|
// since `// eslint-disable-line max-len` would cause this line to be
|
|
|
|
// ignored AND this rule to be disabled which would trigger
|
|
|
|
// --report-unused-disable-directives. By excluding max-len, the effect
|
|
|
|
// is to consider the line but disable this rule.
|
|
|
|
"ignorePattern": "^/// .+|// (?!eslint-.+max-len)eslint-.+|QUnit.",
|
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignoreComments": false,
|
|
|
|
"ignoreRegExpLiterals": true,
|
|
|
|
"ignoreStrings": true,
|
|
|
|
"ignoreTemplateLiterals": true
|
|
|
|
}
|
|
|
|
]
|
2016-12-16 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|