EsLintIssuesAliases.

EsLintIssuesFromFilePath(ICakeContext, FilePath, BaseEsLintLogFileFormat) Method

Summary

Gets an instance of a provider for issues reported by ESLint using a log file from disk.

Syntax

public static IIssueProvider EsLintIssuesFromFilePath(this ICakeContext context, FilePath logFilePath, BaseEsLintLogFileFormat format)

Examples

Read issues reported by ESLint:

var issues =
        ReadIssues(
            EsLintIssuesFromFilePath(@"c:\build\ESLint.log"),
            @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
logFilePath FilePath Path to the the ESLint log file. The log file needs to be in the format as defined by the format parameter.
format BaseEsLintLogFileFormat Format of the provided ESLint log file.

Return Value

Type Description
IIssueProvider Instance of a provider for issues reported by ESLint.
GitHub