jsonlint
This module provides a function to lint JSON files.
Installation
dagger install github.com/tsirysndr/daggerverse/jsonlint@e8bed26dfefaaf4ef3d00958965575131f34c69c
Entrypoint
Return Type
Jsonlint
Example
dagger -m github.com/tsirysndr/daggerverse/jsonlint@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *Jsonlint {
return dag.
Jsonlint()
}
@function
def example() -> dag.Jsonlint:
return (
dag.jsonlint()
)
@func()
example(): Jsonlint {
return dag
.jsonlint()
}
Types
Jsonlint 🔗
lint() 🔗
Lint JSON files.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
files | String | "*.json" | No description provided |
ignore | String | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/jsonlint@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
lint --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Jsonlint().
Lint(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.jsonlint()
.lint(src)
)
@func()
example(src: Directory): Directory {
return dag
.jsonlint()
.lint(src)
}