* add tsconfig file

* Fix tsconfig file bug
This commit is contained in:
sagamzu 2019-12-19 02:32:28 +02:00 коммит произвёл GitHub
Родитель 41e257e385
Коммит 9aad1c7ca5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -16,6 +16,12 @@ export function IsValidYamlFile(filePath:string): Boolean {
const main = async () => { const main = async () => {
console.log("start - yamlFileValidetor script"); console.log("start - yamlFileValidetor script");
const pullRequestDiffFiles = await getPullRequestDiffFiles(); const pullRequestDiffFiles = await getPullRequestDiffFiles();
if(pullRequestDiffFiles === null){
console.log("No changes files in PR");
return 0;
}
const changedYamlFiles = pullRequestDiffFiles.filter(filePath => filePath.endsWith('.yaml') || filePath.endsWith('.yml')); const changedYamlFiles = pullRequestDiffFiles.filter(filePath => filePath.endsWith('.yaml') || filePath.endsWith('.yml'));
if (changedYamlFiles.length === 0) { if (changedYamlFiles.length === 0) {

Просмотреть файл

@ -15,5 +15,8 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
},
"include": [".script/**/*"],
"exclude": []
} }
} }