ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2024-11-19 21:05:00 +00:00
parent 2f827857dc
commit 0e136945cc
2 changed files with 2 additions and 4 deletions

View file

@ -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";

3
package-lock.json generated
View file

@ -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",