mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-23 16:06:45 +00:00
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
2f827857dc
commit
0e136945cc
|
@ -16,7 +16,6 @@ namespace MediaWiki\Extension\TabberNeue;
|
||||||
|
|
||||||
use Html;
|
use Html;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use JsonException;
|
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use Parser;
|
use Parser;
|
||||||
use PPFrame;
|
use PPFrame;
|
||||||
|
@ -146,7 +145,7 @@ class Tabber {
|
||||||
|
|
||||||
// Insert a new line for these characters in wikitext (#151)
|
// 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
|
// 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 );
|
$needsNewLine = in_array( substr( $content, 0, 1 ), $wikitextCharacters );
|
||||||
if ( $needsNewLine ) {
|
if ( $needsNewLine ) {
|
||||||
$content = "\n$content\n";
|
$content = "\n$content\n";
|
||||||
|
|
3
package-lock.json
generated
3
package-lock.json
generated
|
@ -1,10 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "TabberNeue",
|
"name": "mediawiki-extensions-TabberNeue",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "TabberNeue",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@wikimedia/types-wikimedia": "0.4.4",
|
"@wikimedia/types-wikimedia": "0.4.4",
|
||||||
"eslint-config-wikimedia": "0.28.2",
|
"eslint-config-wikimedia": "0.28.2",
|
||||||
|
|
Loading…
Reference in a new issue