Commit graph

20 commits

Author SHA1 Message Date
libraryupgrader a8c5016096 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
  The following rules are failing and were disabled:
  * ReCaptchaNoCaptcha/resources/ve-confirmedit-reCaptchaNoCaptcha:
    * no-jquery/no-extend
  * Turnstile/resources/ve-confirmedit-turnstile:
    * no-jquery/no-extend
  * hCaptcha/resources/ve-confirmedit-hCaptcha:
    * no-jquery/no-extend

* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: I8045a843b3e9b6a67e07d580ce07dc6afeaeab2d
2024-06-07 15:07:52 +00:00
Amir Sarabadani 40fb527c59 Remove MathCaptcha
It relies on PNG mode of Math extension which has been removed since
I595926027433182cc03

Bug: T360978
Change-Id: I650d096dfd83c725e30242eb5795236c59fe7883
2024-04-01 18:24:00 +02:00
James D. Forrester fc760b1c35 build: Upgrade eslint-config-wikimedia from 0.25.1 to 0.26.0
Change-Id: I492bb4215522bdb72967108f5cd11adfa37e59bb
2024-01-12 22:34:15 +00:00
Timo Tijhof 2a47e936aa build: Simplify banana config with require() and for-of
* `require()` is more direct and likely faster than a synchronous
  file read into user land and then sync JSON.parse (as grunt.file
  does) than Node natively reading and parsing a file in one go.

  Also benefits being less Grunt-specific and theoretically some minor
  benefit to IDE and static analysis.

* Inline loop as for-of without the forEach function calls.

Change-Id: I06c8f8729b2f4ba2c574c7aaeaa2ae56513b4595
2023-09-20 09:28:46 +01:00
James D. Forrester 2f9beac0fa build: Switch eslint to ES6 mode, and make pass
Change-Id: Ic29ad198519a7455909b8ee32fa891c7881e4bb5
2023-09-20 09:27:51 +01:00
James D. Forrester df052e9027 build: Use conf.MessageDirs for banana path config
This repo is a little tricky, as it's made up of multiple sub-
extensions, each using relative paths, but at least this way it
is clear that adding additional i18n paths to a manifest will
also add it to the linting set-up.

Change-Id: I7bc4f0cd5d2b431fe47a4d3bee2ca69a06aeea6d
2023-09-19 09:59:36 +01:00
Ed Sanders bef158146d build: Update eslint-config-wikimedia to 0.16.2
Change-Id: I9feac84ca779aff3199762d8783caaa56c555f3b
2020-07-01 14:44:35 +00:00
Ed Sanders 29f8ba1162 build: Update linters
Change-Id: I7cdedec41a9960f8dce2bac3251d3d24e7999024
2019-11-15 16:46:40 +00:00
Amir Aharoni a42d5d4adf Move apihelp messages to a separate file
This is one of the last extensions to be converted to having
the API messages in a separate file (at least out of the extensions
that are used be Wikimedia).

This one is a bit different from the others because it actually as several
extensions with separate i18n files, so it requires extra-careful review,
especially in Gruntfile and the extension.json files.

Bug: T189982
Change-Id: I66faae6fd4ff447327587c89ad2a1704edd1b356
2019-08-31 22:52:29 +03:00
James D. Forrester f18aaba76b build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: I8d0c73a699f1ee39c652fd95fd1ce3aa37237d06
2019-05-06 15:31:16 -07:00
James D. Forrester 9ef3132dce build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I1e6c500b8a79f8d01b3050dabdece36e77d17706
2019-04-03 15:54:28 -07:00
Ed Sanders 28cb4a71da build: Update eslint-config-wikimedia to 0.10.1
Change-Id: I78b2a1c233c97af39e1c8f8fd9d839d0ffc4936e
2019-02-10 15:44:37 +00:00
Umherirrender cc8166e64a build: Run stylelint also for less files
Less file was added with I1f15cd9ac4b78d7f6e24b93af0fcfb809f00e563

Change-Id: I72c1aab5c6949e2c9e2e7a28a2435a25c0bde1a3
2019-01-18 18:13:17 +01:00
Umherirrender 63800fcc4d Use json extension for .stylelintrc
Bug: T173516
Change-Id: I0d83079033747f00d13ef90249b16218b76348f8
2017-08-19 09:42:18 +02:00
Florianschmidtwelzow ae1c290ba7 Revert "build: Re-use MessageDirs in banana conf"
As pointed out by Umherirrender, this does not entirely work
for ConfirmEdit in this way, as there're several subdirectories
which also contain i18n files. I'm not sure why I missed this
in the first place, therefore reverting for now.

This reverts commit 24864a36bd.

Change-Id: Ib83a67650bb5f25eebb66e8701f9bd80b659e573
2017-01-28 18:08:39 +00:00
Ed Sanders 24864a36bd build: Re-use MessageDirs in banana conf
Change-Id: I459613ec89ba342a32410061b1a9b04171544cdd
2017-01-23 13:39:21 +00:00
Ed Sanders ae85f2ac6b Replace jshint/jscs with eslint and add stylelint
Change-Id: I9c33c65c913d891739b913d5363abba66c2cd0dd
2017-01-18 16:53:09 -08:00
Paladox 325f21e117 Add grunt-jscs package
This will allow us to run jscs in npm.

Change-Id: Ica970dfd2459bbdf50abc55ecdb24fe47307ccaa
2015-11-26 23:34:47 +00:00
Paladox 6e73d3879e Recurse into the sub folders with grunt jshint
Currently grunt wont look into sub folder so add support for that.

Change-Id: I8ce2e3ee693d96a4db4f3bd35ab4211e82993d71
2015-10-28 18:55:03 +00:00
Paladox 4307f1ec19 Add some Jenkins tests
Add support for composer phplint and npm jshint, jsonlint
and banana-checker.

Change-Id: If509fdb96f35cdd252b6c53ece8a568b4a614926
2015-10-14 11:52:19 +01:00