This website requires JavaScript.
Explore
Help
Register
Sign In
wikimedia
/
mediawiki-extensions-RelatedArticles
Watch
1
Star
0
Fork
You've already forked mediawiki-extensions-RelatedArticles
0
mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced
2024-11-24 16:25:52 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
58492d1e28
mediawiki-extensions-Relate...
/
.jscsrc
5 lines
67 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add extension boilerplate Copypasta the following files from the BoilerPlate extension [0]: * package.json * Gruntfile.js * .jscsrc * .jshintrc * .jshintignore * composer.json * phpcs.xml Add the following supporting files: * .gitignore * composer.lock Finally, fix the existing coding standard violations. [0] https://github.com/wikimedia/mediawiki-extensions-BoilerPlate Change-Id: I30c6cf9e0a637bab5d8f47790b9af57183b6e6fb
2015-10-07 13:29:14 +00:00
{
build: Simplify Grunt configuration * Remove file pattern whitelist for JSHint and JSCS. Instead, use the ignore list (which we need to specify anyway to avoid errors when using IDE plugins and/or running these from the command-line directly. * Remove redundant '*.json' pattern for banana. '**/*.json' covers this already as '**' is recursive from the current directory, otherwise it would be '*/**'. * Remove redundant 'name' and 'version' property. These were likely added to suppress warnings by npm-install. However those warnings are intended for packages published to npmjs.org. For local build tools, adding private:true also suppress these warnings. For extensions, name and versions are already maintained in other files such as extension.json and others. * Remove redundant '$' entry in jshintrc. There's no need to tolerate use of global variable '$'. The convention is to use 'jQuery' and alias it locally, which this extension already does everywhere. * Set 'jQuery' to false instead of true in jshint globals. True means it allows and expects this package to assign or expose the 'jQuery' identifier. However that is not the case. If this code overwrites jQuery, that should probably trigger a warning, thus set to false, which means read-only global. Change-Id: I0b159b6d684f67933e0dae506db1eb3800a6f192
2015-11-06 23:48:39 +00:00
"preset": "wikimedia",
"excludeFiles": [ "node_modules/**" ]
Add extension boilerplate Copypasta the following files from the BoilerPlate extension [0]: * package.json * Gruntfile.js * .jscsrc * .jshintrc * .jshintignore * composer.json * phpcs.xml Add the following supporting files: * .gitignore * composer.lock Finally, fix the existing coding standard violations. [0] https://github.com/wikimedia/mediawiki-extensions-BoilerPlate Change-Id: I30c6cf9e0a637bab5d8f47790b9af57183b6e6fb
2015-10-07 13:29:14 +00:00
}
Reference in a new issue
Copy permalink