dagger toolchain install github.com/dagger/eslint
lint: Lint the source.fix: Fix linting issues.
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"];
}
]
}
]
}