MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Lint

Method Lint

tools/mage/js.go:313–319  ·  view source on GitHub ↗

Lint runs eslint over frontend js files.

()

Source from the content-addressed store, hash-verified

311
312// Lint runs eslint over frontend js files.
313func (js Js) Lint() error {
314 mg.Deps(js.Deps, Js.BackendTranslations)
315 if mg.Verbose() {
316 fmt.Println("Running eslint on .js files")
317 }
318 return js.runEslint("./pkg/webui/**/*.js", "./config/**/*.js", "./cypress/**/*.js")
319}
320
321// LintSnap runs eslint over frontend snap files.
322func (js Js) LintSnap() error {

Callers

nothing calls this directly

Calls 2

runEslintMethod · 0.95
DepsMethod · 0.45

Tested by

no test coverage detected