Format and lint

This commit is contained in:
Joe 2020-07-15 11:18:46 +01:00
parent 298fac6db6
commit 767b58a2df
3 changed files with 32 additions and 39 deletions

View File

@ -15,15 +15,12 @@
const joinPath = join("/")
const normalizedName = name =>
pipe(
name,
[
pipe(name, [
trimCharsStart("./"),
trimCharsStart("~/"),
trimCharsStart("../"),
trimChars(" "),
]
)
])
const changeScreen = screen => {
store.setCurrentScreen(screen.props._instanceName)

View File

@ -19,11 +19,7 @@
const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1)
const get_name = s => (!s ? "" : last(s.split("/")))
const get_capitalised_name = name =>
pipe(
name,
[get_name, capitalise]
)
const get_capitalised_name = name => pipe(name, [get_name, capitalise])
const isScreenslot = name => name === "##builtin/screenslot"
const selectComponent = component => {