Commit graph

17 commits

Author SHA1 Message Date
Ed Sanders 4a44f8c2e5 build: Update devDependencies
Change-Id: I0bbd117b2b3ebdfee8deb7ed38b409a561f570d5
2022-03-17 22:55:02 +00:00
Ed Sanders dcf19784eb Define documentable types in eslintrc instead of inline
Change-Id: I20e805839a13697ffea8d4a2f92b1c3a4b023175
2021-10-17 15:35:14 +01:00
libraryupgrader f0e95b2911 build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I5d3bc67a9211350f8256e59aacce4ae7e4154573
2021-03-14 11:47:24 +00:00
Thiemo Kreuz 4ac1ff57f1 Remove closure wrappers from all JavaScript code
These are not needed any more, because the code runs in a
seperate scope anyway.

Change-Id: I939a06102f194a0c98021accb2f62be73dd0562f
2020-11-18 11:16:04 +01:00
Ed Sanders eaa7966710 build: Update eslint-config-wikimedia to 0.16.1
Mostly documentation style fixes

Change-Id: I75262aead377f7f41931de44c5208b7b7d06930d
2020-06-16 15:13:36 +01:00
libraryupgrader dc1463dc9f build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc
  * mediawiki/valid-package-file-require

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I2b97bc8da27c435baa9ab4ff8c248d63094b6077
2020-04-22 19:01:40 +00:00
Adam Wight 156427df55 ESLint config for CommonJS module syntax
Changes the eslint rules to support "require", "module.exports", and
relaxes the top-level lexical scope for each file.

FIXME: This allows a combination of CommonJS code, which becomes
unsafe global code scope if used in a "scripts" module.  What's the
correct order of migration steps?

Change-Id: I2f80732942a602c0fcff5c0dad1e2afc2640651e
2020-03-29 23:24:35 +02:00
Ed Sanders 28bc463836 build: Update linters
Change-Id: Ia316dd09b6d6b7452610ff2b8816a146a3bb48a4
2019-12-11 13:42:51 +00:00
WMDE-Fisch 8c9632385d build: Update dependencies and make them pass
Change-Id: Ia7764d44d7fbc8bf5c03e80887b58031a0de5d86
2019-10-23 17:46:39 +02:00
James D. Forrester 153ecb8990 build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I5a5aede4114b0e6d370904a08f10b327b4968a2d
2019-04-04 00:56:01 +00:00
Ed Sanders 57f9876e27 build: Update eslint-config-wikimedia to 0.10.1
Change-Id: I8aeddc384d25318e8618bb617884205f1c0c1f00
2019-02-10 16:54:28 +00:00
Kunal Mehta 46f3ca653c build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I5de716c50becf448bf7a1dc4f4fcbf322e47b11c
2018-12-17 18:58:01 -08:00
Ed Sanders 6ea28c8cdc build: Update devDependencies
Change-Id: Ic278699f631ddc08243ceb68678c0715a19c4304
2018-12-04 18:05:18 -05:00
James D. Forrester a30cc5fac5 eslint: Drop 'dot-notation' rule
Bug: T210552
Change-Id: I7c94536c22220ea0945aeda8c299fb6898daaaf2
2018-11-28 11:11:36 -08:00
Ed Sanders e62f46dd80 Remove obsolete aliases from closures
Bug: T208951
Change-Id: Icf10ea6bbc09542e69c0cd583a4ee4f2f76a3f43
2018-11-16 16:33:52 +00:00
Ed Sanders 351bdcfae7 build: Update linters
Change-Id: If21c9dbeba945d54c6bcf9b6e4edd586c5b411ca
2018-09-13 21:58:39 +01:00
Ed Sanders 675d4d08ae Rename eslintrc to .json
Let's editors know how to syntax highlight, and allows
coverage by jsonlint.

Change-Id: I3207e85f67a04c7d21a5b999534e8c8075c0790d
2017-05-03 09:47:33 +01:00
Renamed from .eslintrc (Browse further)