Commit graph

19 commits

Author SHA1 Message Date
libraryupgrader bc8cc1253a build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I8602db6c3312c0ecfd647bf80808ece7121c417b
2021-01-30 14:54:04 +00:00
Umherirrender f67fbc1394 build: Use existing eslint also for json linting
Bug: T220036
Change-Id: I7e9c43ea56366785b8cb94c9c6863b87841a6135
2020-09-11 23:49:03 +02:00
libraryupgrader 8bff1e5bba build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: I203a380057f62c181a40cfe86372595d151d70f8
2020-09-04 23:25:13 +00:00
libraryupgrader c434758822 build: Updating grunt to 1.2.1
Change-Id: I74d2a2da678d817223929649f75288bb85f8af76
2020-07-19 02:04:48 +00:00
libraryupgrader f5fb5c3579 build: Updating npm dependencies
* eslint-config-wikimedia: 0.15.3 → 0.16.2
* grunt-eslint: 22.0.0 → 23.0.0

Change-Id: I1025318076083519745263b796c44474b6c336ca
2020-07-17 05:24:58 +00:00
libraryupgrader de19f61cad build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3

Change-Id: If18d71390a1efdf7a91d98ba2f81c4450dab1b75
2020-04-22 20:28:37 +00:00
libraryupgrader d1dae631d6 build: Updating grunt-banana-checker to 0.9.0
Change-Id: I85882214dc9ad8d89d3f7da5bcf2298bab36fe91
2020-04-19 20:27:57 +00:00
libraryupgrader a5e13eee75 build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I4a3efd1082e884a4ab8d17eb4f4e0181690c62a9
2020-03-19 13:28:45 +00:00
libraryupgrader 7393155fdb build: Updating npm dependencies
* eslint-config-wikimedia: 0.11.0 → 0.15.0
* grunt-eslint: 21.0.0 → 22.0.0

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I90b2d015c99cad35ad8face7f8f0baeec04525af
2020-01-08 16:25:38 +00:00
libraryupgrader 14ae8c2280 build: Updating grunt-banana-checker to 0.8.1
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ib2fee54da5833b3acb227d549b5e00c45e22ac28
2019-12-15 02:13:27 +00:00
libraryupgrader 5e6a0b5c30 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813

Committed package-lock.json (T179229) too.

Change-Id: I2a0b9a5d68a08b20057bac70465a2f99ead85b78
2019-06-09 00:53:50 +00:00
James D. Forrester 73d502fa68 build: Update eslint-config-wikimedia from 0.8.1 to 0.11.0
Change-Id: Iaf6ec8659228b430aafcc0953f035d29b64f1eaf
2019-04-12 21:58:46 +00:00
Ed Sanders e2be4d8771 build: Update devDependencies
eslint-config-wikimedia   0.5.0  →   0.8.1
 grunt-eslint             20.0.0  →  21.0.0

Change-Id: If0c71e22aaeb9db6c1fc4cbfb19934ab829febee
2018-11-03 12:37:28 +00:00
libraryupgrader 0d2290c08e build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: If63afb1c665d0e1876fdd18af0c42598d3092bbd
2018-10-11 11:16:08 +00:00
Ed Sanders 92291a8778 build: Update eslint
Change-Id: I690ef5856e2dbbd86522c01aea94e74a8b69a7e6
2017-10-03 16:14:25 +01:00
Brad Jorsch b301a30abf Use wikimedia/css-sanitizer, and rewrite the hooking
wikimedia/css-sanitizer provides a real CSS parser, which should be
safer than poking at things with regular expressions.

Instead of the strange hybrid model that tried to both process inline
CSS and save CSS when the template is saved, it now looks for
<templatestyles src="Title" /> during the parse to do all the
transclusion of styles.

The output method is "<style> tags in the body", pending someone
implementing T160563.

It now also registers a "sanitized-css" content model, which should pick
up the CSS syntax highlighting and will validate the submitted CSS on
submit and prevent a save if it's not valid.

This patch also takes advantage of LGPL-2.x § 3 to relicense the
extension as GPL-2.0+, although at this point none of the LGPL code
remains anyway.

Bug: T133408
Bug: T136054
Bug: T135788
Bug: T135789
Change-Id: I993e6f18d32a43aac8398743133d227b05133bbd
Depends-On: If4eb5bf71f94fa366ec4eddb6964e8f4df6b824a
2017-06-07 15:14:09 +00:00
James D. Forrester 7ba77fd48f build: Replace jshint and jscs with eslint; bump other devDeps
grunt                  0.4.5  →  1.0.1
 grunt-banana-checker   0.5.0  →  0.6.0
 grunt-jsonlint         1.0.7  →  1.1.0

Change-Id: Ic59fd7fa96d7f18fd65141c1b4fd4f6baccc6d80
2017-05-25 17:31:35 +02:00
Umherirrender 95deb18b3f Use tabs to indent in json
Change-Id: Ifba40f1902bee0ce50fdb1296b5603a5117aa8cf
2017-03-23 19:31:51 +01:00
Coren 31743445bd TemplateStyles extension prototype
This extension adds a <templatestyles> tag that, when placed
on a template, allows specifying CSS for pages where that
template is transcluded.

Unlike inline styles, the per-template CSS supports rules
with proper selectors, and @media blocks.

THIS VERSION DOES NOT CURRENTLY FILTER DECLARATIONS and is
therefore unsuitable for wikis where unprivileged users should
not be allowed to influcence the pagewide CSS in unrestricted
ways!

Bug: T483
Change-Id: Ibc1cae3079d164f7ac7bcc7c4ded3f02bb048614
2016-04-08 11:08:59 -04:00