Skip to content
/ eslint Public

A Dagger toolchain for eslint - a static code analyzer for Javascript

License

Notifications You must be signed in to change notification settings

dagger/eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Eslint Dagger Toolchain

Installation

dagger toolchain install github.com/dagger/eslint

Functions

  • lint: Lint the source.
  • fix: Fix linting issues.

Customization

The toolchain can be customized in your dagger.json to meet your needs:

{
  "name": "my-module",
  "engineVersion": "...",
  "toolchains": [
    {
      "name": "eslint",
      "source": "github.com/dagger/eslint@main",
      "pin": "...",
      "customizations": [
        {
          "argument": "source",
          "defaultPath": "/src",         # default: /; custom default path
          "ignore": ["**/node_modules"]  # custom ignore filter
        },
        {
          "argument": "baseImageAddress",
          "default": "node:22"       # default: node:25-alpine; use any container image 
        },
        {
          "argument": "packageManager",
          "default": "yarn"          # default: npm; alternatively use yarn, pnpm, or bun
        },
        {
          "function": ["lint"],
          "argument": "extensions",
          "default": ["**.js"]       # default: [".js", ".jsx"];
        },
        {
          "function": ["fix"],
          "argument": "extensions",
          "default": ["**.js"]       # default: [".js", ".jsx"];
        }
      ]
    }
  ]
}

About

A Dagger toolchain for eslint - a static code analyzer for Javascript

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •