Jon Robson
dcb513eb0e
Move reference previews to Cite extension
...
The ext.cite.referencePreviews module will transparently replace the
ext.popups.referencePreviews module after this patch. Configuration
stays in Popups for now, we can migrate it in later work.
CSS classes may be renamed in the future but this will be handled
separately since it could be a breaking change for on-wiki
customizations.
A lot of fancy footwork happens in this patch to emulate a soft
dependency on Popups. This mechanism doesn't exist explicitly in
either ResourceLoader or QUnit, so lots of workarounds are used, to
conditionally load the module and to dynamically skip dependent tests.
renderer.test.js is fully skipped for now, but can be wired up in
later work.
Bug: T355194
Change-Id: I0dc47abb59a40d4e41e7dda0eb7b415a2e1ae508
2024-03-12 17:43:51 +01:00
Adam Wight
9535126304
[lint] Satisfy max-len rule
...
These changes mostly improve the code, and align the lint rules with
the MediaWiki base.
Change-Id: Ib4b0595fd9a9298039b8b44a0f1d4a9e90731527
2024-01-30 12:18:52 +01:00
mareikeheuer
1eb405eb54
Convert Cite extention to ES6
...
Bug: T343220
Change-Id: I769f0bfaa5af14d6ea4861ea738b44c98feb6193
2023-08-23 12:39:29 +00:00
libraryupgrader
9e2e49555c
build: Updating dependencies
...
composer:
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
npm:
* json-schema: 0.2.3 → 0.4.0
* https://github.com/advisories/GHSA-896r-f27r-55mw
* jsprim: 1.4.1 → 1.4.2
* https://github.com/advisories/GHSA-896r-f27r-55mw
* mocha: 9.1.3 → 9.2.0
* https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* nanoid: 3.1.25 → 3.2.0
* https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* node-fetch: 2.6.6 → 2.6.7
* https://github.com/advisories/GHSA-r683-j2x4-v87g
Additional changes:
* Set `name` in package.json.
* eslint: Added `wikimedia/mediawiki` profile (T262222).
Change-Id: I4eaa22a563fc9c8b1d6536608b0d1937950f136e
2022-02-06 07:44:34 +00:00
Ed Sanders
0d4bb626f1
Move eslint client config to modules, fix warnings
...
Change-Id: I86857b82fa7d5c47c0056da4ad270fcb2a4d965f
2021-11-03 16:38:31 +00:00
libraryupgrader
6f2420d0bd
build: Updating eslint-config-wikimedia to 0.19.0
...
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).
Change-Id: I676c244a56efc85f6f152e55828e95904e7d44d4
2021-03-13 06:42:20 +00:00
Ed Sanders
309645a7ca
eslint: Fix and enable the 'no-shadow' rule
...
Change-Id: I887003beaa3ee2e984b6f854b777485ca9e49049
2020-09-18 14:37:07 +00:00
libraryupgrader
36659b995f
build: Updating npm dependencies
...
* eslint-config-wikimedia: 0.16.2 → 0.17.0
The following rules are failing and were disabled:
* no-shadow
* grunt: 1.2.1 → 1.3.0
Change-Id: I2ee910e2940c3db520531b91329955d01f2a9076
2020-09-05 10:14:03 +00:00
Ed Sanders
85a4e23008
build: Update devDependencies
...
Change-Id: I38b506d6e058f639e0e7d95c3e60616dbef5af10
2020-06-09 11:29:03 +01:00
libraryupgrader
f819e6374c
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
* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1
Change-Id: I5e285118302582daa288d0afc30860ab0693d332
2020-04-22 06:25:11 +00:00
Ed Sanders
26c78a2b90
build: Update linters
...
Change-Id: I1bbd7b567152e2ed19d40f113b329064e6a67b09
2019-11-15 16:27:21 +00:00
Kunal Mehta
0395035789
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: I54d052bed4ceed175a938896154fd6ad5c89f964
2018-12-18 10:47:31 +00:00
James D. Forrester
57aeb852ae
eslint: Drop 'dot-notation' rule
...
Bug: T210552
Change-Id: Ia6bacf9aacd0167317cbd7d8348be1c2005b6562
2018-11-28 10:27:44 -08:00
Ed Sanders
fdde5b71af
Update eslint-config-wikimedia to 0.9.0
...
Change-Id: I7883af1f56c7f2f3eeff1f7a51b640a303bcab78
2018-11-27 22:23:57 +00:00
Ed Sanders
a589dbe636
Remove obsolete aliases from closures
...
Bug: T208951
Change-Id: Idd6bc36b116af81827b4440b4c8ec3da94e1486f
2018-11-13 14:43:45 -08:00
Ed Sanders
0d866f13c7
build: Update linters
...
Change-Id: Ia558b35eab54b33e2faac1ae3324a17da18fcb49
2018-09-11 23:54:19 +01:00
Ed Sanders
04fca616e9
eslint: Re-enable wrap-iife and partially enable dot-notation
...
Change-Id: I8f5e8d7b4547337943ec6df8ffb3d8db9f466217
2016-11-15 12:59:21 +00:00
Ed Sanders
a42c656c53
build: Replace jscs+jshint with eslint
...
Change-Id: Ibcfab289a6dd4dcac853aa2e5338516994067cd5
2016-11-02 12:50:48 +00:00