eslint
No long description provided.
Installation
dagger install github.com/quartz-technology/daggerverse/eslint@v0.0.1
Entrypoint
Return Type
Eslint !
Arguments
Name | Type | Description |
---|---|---|
files | Directory ! | No description provided |
version | String | No description provided |
nodeVersion | String | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH
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
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH version
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
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH node-version
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
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH files
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
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH container
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
Name | Type | Default Value | Description |
---|---|---|---|
args | [String ! ] | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH run
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
Name | Type | Default Value | Description |
---|---|---|---|
args | [String ! ] | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH lint
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
dagger -m github.com/quartz-technology/daggerverse/eslint@3b177a82780bf2dfe0f148e90608007cb1312e3c call \
--files DIR_PATH fix
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()
}