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:
parent
416cb1d327
commit
97495fd18b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user