mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-18 02:00:53 +00:00
ad7db9cc36
* Consistant whitespace after keywords * Misc whitespace cleanup as per JS coding guidelines https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript * pass mw to IIFE and use the function arguments close to function body ( function ( $, mw ) { ... }( jQuery, mediaWiki ) ) * Moved prefined moment to .jshintrc. Move browser:true too Change-Id: If488974e8e5987916bc4043e4e70bb6c60472b30
27 lines
374 B
Plaintext
27 lines
374 B
Plaintext
{
|
|
/* Common */
|
|
|
|
// Enforcing
|
|
"camelcase": true,
|
|
"curly": true,
|
|
"eqeqeq": true,
|
|
"immed": true,
|
|
"latedef": true,
|
|
"newcap": true,
|
|
"noarg": true,
|
|
"noempty": true,
|
|
"nonew": true,
|
|
"quotmark": "single",
|
|
"trailing": true,
|
|
"undef": true,
|
|
"unused": true,
|
|
// Legacy
|
|
"onevar": true,
|
|
"browser": true,
|
|
/* Local */
|
|
"predef": [
|
|
"mediaWiki",
|
|
"jQuery",
|
|
"moment"
|
|
]
|
|
} |