ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details
这个提交包含在:
github-actions 2022-09-30 02:33:57 +00:00
父节点 e72d7c00a3
当前提交 f9aacf7ebe
共有 5 个文件被更改,包括 36 次插入36 次删除

查看文件

@ -1,3 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
"extends": [ "@commitlint/config-conventional" ]
}

查看文件

@ -1,14 +1,14 @@
{
"extends": [
"stylelint-config-idiomatic-order",
"stylelint-config-wikimedia"
],
"rules": {
"font-weight-notation": null,
"selector-max-id": null,
"no-descending-specificity": null,
"declaration-no-important": null,
"unit-disallowed-list": null,
"declaration-property-unit-disallowed-list": null
}
}
{
"extends": [
"stylelint-config-idiomatic-order",
"stylelint-config-wikimedia"
],
"rules": {
"font-weight-notation": null,
"selector-max-id": null,
"no-descending-specificity": null,
"declaration-no-important": null,
"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,
// assuming `core.autocrlf` is 'true' (default) or 'input'.
js2svg: {
indent: "\t",
pretty: true,
indent: '\t',
pretty: true
}
}
};

查看文件

@ -1,16 +1,16 @@
{
"bumpFiles": [
{
"filename": "skin.json",
"type": "json"
},
{
"filename": "package.json",
"type": "json"
},
{
"filename": "package-lock.json",
"type": "json"
}
]
}
{
"bumpFiles": [
{
"filename": "skin.json",
"type": "json"
},
{
"filename": "package.json",
"type": "json"
},
{
"filename": "package-lock.json",
"type": "json"
}
]
}

查看文件

@ -169,7 +169,7 @@ function getSuggestions( searchQuery ) {
matchedTitle = cleanup( matchedTitle );
// eslint thinks it is an array
// eslint-disable-next-line no-restricted-syntax
return !( title.includes( matchedTitle ) || matchedTitle.includes( title ) );
};