mediawiki-extensions-Popups/.eslintrc.json

42 lines
1 KiB
JSON
Raw Normal View History

{
"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": {
"dot-notation": [ "error", { "allowKeywords": true } ],
"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
}
]
}
}