mediawiki-extensions-Popups/.eslintrc.json
jdlrobson 3245a2ac6e Hygiene: restrict use of $.each and fix offenders
Bug: T190142
Change-Id: I5da7a4a1ffe14647ec70b10b3a7ab9b935c5ca84
2018-03-21 14:24:22 -05:00

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
}
]
}
}