1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

fix: resolve lint files (#4392)

Fix glob pattern for resolving eslint files
Do not swallow exception when resolving lint files
This commit is contained in:
Marcus Holl 2023-06-07 14:58:44 +02:00 committed by GitHub
parent 416cb1d327
commit 97495fd18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,8 +167,10 @@ func runDefaultLint(npmExecutor npm.Executor, utils lintUtils, failOnError bool)
}
func findEslintConfigs(utils lintUtils) []string {
unfilteredListOfEslintConfigs, _ := utils.Glob("**/.eslintrc.*")
unfilteredListOfEslintConfigs, err := utils.Glob("**/.eslintrc*")
if err != nil {
log.Entry().Warnf("Error during resolving lint config files: %v", err)
}
var eslintConfigs []string
for _, config := range unfilteredListOfEslintConfigs {