refactor: update dependencies

This commit is contained in:
Rainer Killinger
2022-06-02 14:59:48 +02:00
parent 405f8cf496
commit 32480b7bfa
3 changed files with 210 additions and 251 deletions

View File

@@ -163,7 +163,7 @@ export interface Rules {
*/
export function consoleInfo(...arguments_: string[]): void {
for (const argument of arguments_) {
/* tslint:disable-next-line:no-console */
// eslint-disable-next-line no-console
console.info(`\n${chalk.cyan(argument)}`);
}
}
@@ -176,10 +176,10 @@ export function consoleInfo(...arguments_: string[]): void {
export function consoleWarn(...arguments_: string[]): void {
for (const argument of arguments_) {
const lines = argument.split('\n');
/* tslint:disable-next-line:no-console */
// eslint-disable-next-line no-console
console.warn(`\n${chalk.red.bold(lines[0])}`);
for (const line of lines.slice(1)) {
/* tslint:disable-next-line:no-console */
// eslint-disable-next-line no-console
console.info(line);
}
}
@@ -192,7 +192,7 @@ export function consoleWarn(...arguments_: string[]): void {
*/
export function consoleLog(...arguments_: string[]): void {
for (const argument of arguments_) {
/* tslint:disable-next-line:no-console */
// eslint-disable-next-line no-console
console.log(`\n${chalk.green.bold(argument)}`);
}
}
@@ -547,7 +547,6 @@ export function checkCopyrightYears(projectPath: PathLike, checkPathFragment: Pa
fileSystemObject,
);
// tslint:disable-next-line:max-line-length
const execBuffer = execSync(
`git --git-dir=${projectPath}/.git --work-tree=${projectPath} log --oneline --format='%cI' -- ${fileSystemObjectPath}`,
);
@@ -586,7 +585,6 @@ export function checkCopyrightYears(projectPath: PathLike, checkPathFragment: Pa
const expectedMatchLength = 3;
if (Array.isArray(match) && match.length === expectedMatchLength) {
// tslint:disable-next-line:no-magic-numbers
copyrightYearsString = match[1] ?? match[2];
}
}
@@ -615,7 +613,6 @@ export function checkCopyrightYears(projectPath: PathLike, checkPathFragment: Pa
}
if (copyrightYearNeedsUpdate) {
// tslint:disable-next-line:max-line-length
consoleWarn(
`File '${path.join(
checkPathFragment.toString(),
@@ -707,7 +704,6 @@ export function getRules(configuration: Configuration): Rules {
// expected scripts
const scripts: {[k: string]: string} = {
/* tslint:disable-next-line:max-line-length */
'changelog':
"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
'check-configuration': 'openstapps-configuration',
@@ -722,7 +718,6 @@ export function getRules(configuration: Configuration): Rules {
// expected values in CI config
const ciConfig = {
/* tslint:disable:object-literal-sort-keys */
'image': 'registry.gitlab.com/openstapps/projectmanagement/node',
'before_script': 'npm ci',
'build': {
@@ -761,7 +756,6 @@ export function getRules(configuration: Configuration): Rules {
script: ['npm run documentation', 'mv docs public'],
stage: 'deploy',
},
/* tslint:enable */
};
for (const ignoreCiEntry of configuration.ignoreCiEntries) {
@@ -795,7 +789,6 @@ export function getRules(configuration: Configuration): Rules {
if (configuration.standardDocumentation) {
devDependencies.push('typedoc');
/* tslint:disable-next-line:max-line-length */
scripts.documentation =
'typedoc --includeDeclarations --mode modules --out docs --readme README.md --listInvalidSymbolLinks --entryPointStrategy expand src';
}