Dagger
Search

eslint

No long description provided.

Installation

dagger install github.com/quartz-technology/daggerverse/eslint@v0.0.2

Entrypoint

Return Type
Eslint !
Arguments
NameTypeDescription
filesDirectory !No description provided
versionString No description provided
nodeVersionString No description provided
Example
func (m *myModule) example(files *Directory) *Eslint  {
	return dag.
			Eslint(files)
}
@function
def example(files: dagger.Directory, ) -> dag.Eslint:
	return (
		dag.eslint(files)
	)
@func()
example(files: Directory, ): Eslint {
	return dag
		.eslint(files)
}

Types

Eslint 🔗

version() 🔗

The version of eslint to use (default to: 8.56.0).

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, files *Directory) string  {
	return dag.
			Eslint(files).
			Version(ctx)
}
@function
async def example(files: dagger.Directory, ) -> str:
	return await (
		dag.eslint(files)
		.version()
	)
@func()
async example(files: Directory, ): Promise<string> {
	return dag
		.eslint(files)
		.version()
}

nodeVersion() 🔗

The version of node to use (default to: 21-alpine3.18).

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, files *Directory) string  {
	return dag.
			Eslint(files).
			NodeVersion(ctx)
}
@function
async def example(files: dagger.Directory, ) -> str:
	return await (
		dag.eslint(files)
		.node_version()
	)
@func()
async example(files: Directory, ): Promise<string> {
	return dag
		.eslint(files)
		.nodeVersion()
}

files() 🔗

The files to lint.

Return Type
Directory !
Example
func (m *myModule) example(files *Directory) *Directory  {
	return dag.
			Eslint(files).
			Files()
}
@function
def example(files: dagger.Directory, ) -> dagger.Directory:
	return (
		dag.eslint(files)
		.files()
	)
@func()
example(files: Directory, ): Directory {
	return dag
		.eslint(files)
		.files()
}

container() 🔗

Return a container with eslint installed in it.

Example usage: dagger --files=. call container terminal

Return Type
Container !
Example
func (m *myModule) example(files *Directory) *Container  {
	return dag.
			Eslint(files).
			Container()
}
@function
def example(files: dagger.Directory, ) -> dagger.Container:
	return (
		dag.eslint(files)
		.container()
	)
@func()
example(files: Directory, ): Container {
	return dag
		.eslint(files)
		.container()
}

run() 🔗

Return the container with the linter executed in it.

Example usage: dagger --files=. call run stdout

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[String ! ] -No description provided
Example
func (m *myModule) example(files *Directory) *Container  {
	return dag.
			Eslint(files).
			Run()
}
@function
def example(files: dagger.Directory, ) -> dagger.Container:
	return (
		dag.eslint(files)
		.run()
	)
@func()
example(files: Directory, ): Container {
	return dag
		.eslint(files)
		.run()
}

lint() 🔗

Lint the files and return the result

Example usage: dagger --files=. call lint

Return Type
String !
Arguments
NameTypeDefault ValueDescription
args[String ! ] -No description provided
Example
func (m *myModule) example(ctx context.Context, files *Directory) string  {
	return dag.
			Eslint(files).
			Lint(ctx)
}
@function
async def example(files: dagger.Directory, ) -> str:
	return await (
		dag.eslint(files)
		.lint()
	)
@func()
async example(files: Directory, ): Promise<string> {
	return dag
		.eslint(files)
		.lint()
}

fix() 🔗

Lint the files with auto fix and returns the result directory

Example usage: dagger --files=src call fix -o src

Return Type
Directory !
Example
func (m *myModule) example(files *Directory) *Directory  {
	return dag.
			Eslint(files).
			Fix()
}
@function
def example(files: dagger.Directory, ) -> dagger.Directory:
	return (
		dag.eslint(files)
		.fix()
	)
@func()
example(files: Directory, ): Directory {
	return dag
		.eslint(files)
		.fix()
}