Commit graph

10 commits

Author SHA1 Message Date
Leszek Manicki 8e7fe2434d Add eslint, to be used instead of jscs and/or jshint
First I jumped on replacing both jscs and jshint with eslint but
it might be premature decision. Although linting with eslint
is possible (like in there is wikimedia config for eslint)
it is still not clear should it

But in case the change happens we will be ready.

Apart from config stuff this changes few bits spotted by eslint:
improves some indentation, removes weird spaces, completes some
doc blocks, changes IIFE forms in tests. These changes do not
seem controversial.

Change-Id: I9f8bf0f5745da8e662685f4cd879ea4baa609c01
2016-09-05 09:47:11 +02:00
Leszek Manicki 98150d9904 Add licence, home page URL and repository URL to package.json
Change-Id: I7dac5a5d5e62cb89c093f91c105bd0a5aa5115df
2016-09-01 14:28:55 +02:00
Leszek Manicki 9e4320cd31 Bump up the version in package.json
extension.json already states 1.0.0

Change-Id: I9265b96b932d3ebb88af201f724ee13aaab67e76
2016-08-11 09:31:05 +02:00
Ed Sanders 7b463c52eb Replace csslint with stylelint and make a pass
Change-Id: I7f3d1cd867399fa23b087daa89970ebe305c46d9
2016-06-30 21:21:28 +01:00
Ed Sanders 30ae1431c6 Bump linting packages and sort
Change-Id: I71166bf48b31144689a3bc01d465d34188e99f84
2016-06-30 21:10:38 +01:00
Brian Wolff 39d8d9229a Make files not executable
I know it doesn't matter, but it was kind of bothering me.

Change-Id: Iae9f8b17a3fb5ced362dc2da95e67e20db8af5a5
2016-06-02 13:48:09 +00:00
WMDE-Fisch f4fb473539 Add csslint for CSS codestyle checks
Rules taken from the Echo extension.

Change-Id: I72c89be42e7b09486780159f62f022399940a1b1
2016-05-19 13:10:57 +02:00
addshore 79cfbf8199 Update grunt npm packages
grunt 1.0.1 no longer also needs grunt-cli

Change-Id: I2b542884d265630b19408258a1f496e0338e85ec
2016-05-02 10:47:32 +01:00
addshore 5496370086 Add npm test script
Bug: T133282
Change-Id: I421c127077665614400efd0e62dfd1171d596b52
2016-05-02 10:42:57 +01:00
Jakob Warkotsch 23b5b2f112 Initial commit.
This turns the prototype code of the Revision Slider into a MediaWiki
extension.
With this extension enabled the slider should appear on diff pages
already but it won't actually show diffs when adjusting the slider
pointers.

Things that changed so far in the prototype JS code:
- pulled out the rainbow function and made it use Math.floor instead of
 the ~~ binary operator
- pulled out the API request that fetches the revisions into its own
 module
- cleaned up and documented some parts of the code

The code is still very much WIP and JSCS still has a couple of
complaints.

Bug: T132576
Change-Id: I2e22365f3b93a76d5b8d3997242b5fed996c6d78
2016-04-19 16:35:37 +02:00