mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-23 10:19:43 +00:00
ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
e72d7c00a3
commit
f9aacf7ebe
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"extends": ["@commitlint/config-conventional"]
|
"extends": [ "@commitlint/config-conventional" ]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"stylelint-config-idiomatic-order",
|
"stylelint-config-idiomatic-order",
|
||||||
"stylelint-config-wikimedia"
|
"stylelint-config-wikimedia"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"font-weight-notation": null,
|
"font-weight-notation": null,
|
||||||
"selector-max-id": null,
|
"selector-max-id": null,
|
||||||
"no-descending-specificity": null,
|
"no-descending-specificity": null,
|
||||||
"declaration-no-important": null,
|
"declaration-no-important": null,
|
||||||
"unit-disallowed-list": null,
|
"unit-disallowed-list": null,
|
||||||
"declaration-property-unit-disallowed-list": null
|
"declaration-property-unit-disallowed-list": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ module.exports = {
|
||||||
// On non-unix systems the linebreaks will be normalized to LF (unix) only at git commit,
|
// On non-unix systems the linebreaks will be normalized to LF (unix) only at git commit,
|
||||||
// assuming `core.autocrlf` is 'true' (default) or 'input'.
|
// assuming `core.autocrlf` is 'true' (default) or 'input'.
|
||||||
js2svg: {
|
js2svg: {
|
||||||
indent: "\t",
|
indent: '\t',
|
||||||
pretty: true,
|
pretty: true
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
{
|
{
|
||||||
"bumpFiles": [
|
"bumpFiles": [
|
||||||
{
|
{
|
||||||
"filename": "skin.json",
|
"filename": "skin.json",
|
||||||
"type": "json"
|
"type": "json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "package.json",
|
"filename": "package.json",
|
||||||
"type": "json"
|
"type": "json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename": "package-lock.json",
|
"filename": "package-lock.json",
|
||||||
"type": "json"
|
"type": "json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@ function getSuggestions( searchQuery ) {
|
||||||
matchedTitle = cleanup( matchedTitle );
|
matchedTitle = cleanup( matchedTitle );
|
||||||
|
|
||||||
// eslint thinks it is an array
|
// eslint thinks it is an array
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
|
||||||
return !( title.includes( matchedTitle ) || matchedTitle.includes( title ) );
|
return !( title.includes( matchedTitle ) || matchedTitle.includes( title ) );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue