eslint
No long description provided.
Installation
dagger install github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9Entrypoint
Return Type
Eslint !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
| baseImageAddress | String | - | No description provided |
Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
func (m *MyModule) Example() *dagger.Eslint {
return dag.
Eslint()
}@function
def example() -> dagger.Eslint:
return (
dag.eslint()
)@func()
example(): Eslint {
return dag
.eslint()
}Types
Eslint 🔗
source() 🔗
The source directory for the project.
Return Type
Directory ! Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
sourcefunc (m *MyModule) Example() *dagger.Directory {
return dag.
Eslint().
Source()
}@function
def example() -> dagger.Directory:
return (
dag.eslint()
.source()
)@func()
example(): Directory {
return dag
.eslint()
.source()
}baseImageAddress() 🔗
The base image to use.
Return Type
String ! Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
base-image-addressfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Eslint().
BaseImageAddress(ctx)
}@function
async def example() -> str:
return await (
dag.eslint()
.base_image_address()
)@func()
async example(): Promise<string> {
return dag
.eslint()
.baseImageAddress()
}lint() 🔗
Lint the source.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| extensions | [String ! ] | - | No description provided |
Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
lintfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Eslint().
Lint(ctx)
}@function
async def example() -> None:
return await (
dag.eslint()
.lint()
)@func()
async example(): Promise<void> {
return dag
.eslint()
.lint()
}fix() 🔗
Fix linting issues.
Return Type
Changeset !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| extensions | [String ! ] | - | No description provided |
Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
fixfunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Eslint().
Fix()
}@function
def example() -> dagger.Changeset:
return (
dag.eslint()
.fix()
)@func()
example(): Changeset {
return dag
.eslint()
.fix()
}