Page MenuHomeWickedGov Phorge

.eslintshared.js
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

.eslintshared.js

// "no-restricted-properties" rules are not properly merged when just using "extends".
// Therefore we have to have this file which calls a custom merge function.
// The merge function calls Object.assign with special handling for configuration such as
// `no-restricted-properties` and `no-restricted-syntax` which are array based - ensuring the two
// values being merged are concatenated
/* eslint-disable quote-props, quotes, strict */
module.exports = {
"extends": [
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"globals": {
"$": "off",
"OO": "readonly",
"self": "off"
},
"rules": {
"no-restricted-properties": [
2,
{
"property": "done",
"message": "The method `done` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."
},
{
"property": "fail",
"message": "The method `fail` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."
},
{
"property": "always",
"message": "The method `always` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."
},
{
"object": "window",
"property": "history",
"message": "Please use mediawiki.router"
},
{
"object": "window",
"property": "location",
"message": "Please use mediawiki.router"
}
],
"object-property-newline": "error",
"computed-property-spacing": "off",
// Not using ResourceLoader modules
"mediawiki/valid-package-file-require": "off",
"no-underscore-dangle": "off",
"no-jquery/no-class-state": "off",
"no-jquery/no-global-selector": "off"
}
};

File Metadata

Mime Type
text/plain
Expires
Fri, Jul 3, 18:47 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
54/46/e7e83af4982be1c0e9082c398fe7
Default Alt Text
.eslintshared.js (1 KB)

Event Timeline