Dagger
Search

eslint

No long description provided.

Installation

dagger install github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9

Entrypoint

Return Type
Eslint !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -No description provided
baseImageAddressString -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 \
 source
func (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-address
func (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
NameTypeDefault ValueDescription
extensions[String ! ] -No description provided
Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
 lint
func (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
NameTypeDefault ValueDescription
extensions[String ! ] -No description provided
Example
dagger -m github.com/dagger/eslint@c76d6b3f682b4d93888a7899f36ed32443048be9 call \
 fix
func (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()
}