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

Method Fmt

tools/mage/js.go:300–310  ·  view source on GitHub ↗

Fmt formats all js files.

()

Source from the content-addressed store, hash-verified

298
299// Fmt formats all js files.
300func (js Js) Fmt() error {
301 mg.Deps(js.Deps)
302 if mg.Verbose() {
303 fmt.Println("Running prettier on .js files")
304 }
305 return js.runYarnCommand("prettier",
306 "--config", "./config/.prettierrc.js",
307 "--write",
308 "./pkg/webui/**/*.js", "./config/**/*.js", "./cypress/**/*.js",
309 )
310}
311
312// Lint runs eslint over frontend js files.
313func (js Js) Lint() error {

Callers

nothing calls this directly

Calls 2

runYarnCommandMethod · 0.95
DepsMethod · 0.45

Tested by

no test coverage detected