From 0e136945ccb098699ea43b9f22a740d251049de9 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 19 Nov 2024 21:05:00 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20lint=20code=20to=20MediaWi?= =?UTF-8?q?ki=20standards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check commit and GitHub actions for more details --- includes/Tabber.php | 3 +-- package-lock.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/Tabber.php b/includes/Tabber.php index 7eabbf0..cbab2f7 100644 --- a/includes/Tabber.php +++ b/includes/Tabber.php @@ -16,7 +16,6 @@ namespace MediaWiki\Extension\TabberNeue; use Html; use InvalidArgumentException; -use JsonException; use MediaWiki\MediaWikiServices; use Parser; use PPFrame; @@ -146,7 +145,7 @@ class Tabber { // Insert a new line for these characters in wikitext (#151) // Seems like there is no way to get rid of the mw-empty-elt paragraphs sadly - $wikitextCharacters = [ '*', '#', ';', ':', '[' ]; + $wikitextCharacters = [ '*', '#', ';', ':', '[' ]; $needsNewLine = in_array( substr( $content, 0, 1 ), $wikitextCharacters ); if ( $needsNewLine ) { $content = "\n$content\n"; diff --git a/package-lock.json b/package-lock.json index 63efec8..06d0b36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,9 @@ { - "name": "TabberNeue", + "name": "mediawiki-extensions-TabberNeue", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "TabberNeue", "devDependencies": { "@wikimedia/types-wikimedia": "0.4.4", "eslint-config-wikimedia": "0.28.2",