ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2022-09-30 02:33:57 +00:00
parent e72d7c00a3
commit f9aacf7ebe
5 changed files with 36 additions and 36 deletions

View file

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

View file

@ -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 ) );
};