Cake.Frosting.Issues.EsLint 4.4.0

dotnet add package Cake.Frosting.Issues.EsLint --version 4.4.0
NuGet\Install-Package Cake.Frosting.Issues.EsLint -Version 4.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cake.Frosting.Issues.EsLint" Version="4.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Frosting.Issues.EsLint --version 4.4.0
#r "nuget: Cake.Frosting.Issues.EsLint, 4.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Cake.Frosting.Issues.EsLint&version=4.4.0

ESLint support for the Cake.Issues addin for Cake Frosting

NOTE: This is the version of the addin compatible with Cake Frosting. For addin compatible with Cake .NET Tool see Cake.Issues.EsLint.

The EsLint support for the Cake.Issues addin for Cake allows you to read issues logged by ESLint.

Cake.Issues redefines issue management within the Cake build system by offering a comprehensive, universal, and extensible solution. The unique capabilities of the addins empower development teams to enforce coding standards, generate insightful reports, seamlessly incorporate various linting tools, and streamlining the integration with pull requests. With its modular architecture and extensive set of aliases, Cake.Issues provides a future-proof infrastructure for issue management in Cake builds, fostering a more efficient and adaptable development process.

For more information and extensive documentation see the Cake.Issues website. For general information about the Cake build automation system see the Cake website.

How to use

Integrating Cake.Issues into your Cake build is straightforward. With minimal setup, teams can enjoy the benefits of enhanced code quality management seamlessly integrated into their existing build pipeline.

After adding the addin the log file of an EsLint run can be parsed:

[TaskName("Lint")]
public sealed class LintTask : FrostingTask<BuildContext>
{
    public override void Run(BuildContext context)
    {
        var logPath = @"c:\build\eslint.log";
        var repoRootPath = @"c:\repo";
        var docRootPath = @"docs";

        // Run ESLint using Cake.ESLint addin.
        context.ESLint(
            x => {
                x.AddDirectory("src");
                x.WorkingDirectory = repoRootPath;
                x.Output = logPath;
                x.OutputFormat = ESLintOutputFormat.Json;
                x.ContinueOnErrors = true;
            });

        // Read Issues.
        var issues =
            context.ReadIssues(
                context.EsLintIssuesFromFilePath(logPath, context.EsLintJsonFormat()),
                repoRootPath);

        context.Information("{0} issues are found.", issues.Count());
    }
}

Support & Discussion

For questions and to discuss ideas & feature requests, use the GitHub discussions on the Cake GitHub repository, under the Extension Q&A category.

Contributing

Contributions are welcome. See Contribution Guidelines.

License

MIT License - Copyright © Cake Issues contributors

Binary distributions for some addins contain third-party code which is licensed under its own respective license. See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cake.Frosting.Issues.EsLint:

Package Downloads
Cake.Frosting.Issues.Recipe

Cake.Frosting.Issues.Recipe provides a build script which can be used inside your projects Cake Frosting build to add issue management. See the Project Site for documentation and an overview of the whole ecosystem of addins for working with issues in Cake builds. NOTE: This is the version of the recipe compatible with Cake Frosting. For recipe compatible with Cake Script Runners see Cake.Issues.Recipe.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.4.0 967 5/18/2024
4.3.1 9,144 4/25/2024
4.3.0 3,011 4/20/2024
4.2.1 1,649 4/16/2024
4.2.0 1,804 4/14/2024