Fix basic eslint errors
This commit is contained in:
@@ -24,11 +24,11 @@ function clearThemes(themeDirectory: string) {
|
||||
|
||||
function writeThemes(colorSchemes: ColorScheme[], outputDirectory: string) {
|
||||
clearThemes(outputDirectory)
|
||||
for (let colorScheme of colorSchemes) {
|
||||
let styleTree = snakeCase(app(colorScheme))
|
||||
let styleTreeJSON = JSON.stringify(styleTree, null, 2)
|
||||
let tempPath = path.join(tempDirectory, `${colorScheme.name}.json`)
|
||||
let outPath = path.join(outputDirectory, `${colorScheme.name}.json`)
|
||||
for (const colorScheme of colorSchemes) {
|
||||
const styleTree = snakeCase(app(colorScheme))
|
||||
const styleTreeJSON = JSON.stringify(styleTree, null, 2)
|
||||
const tempPath = path.join(tempDirectory, `${colorScheme.name}.json`)
|
||||
const outPath = path.join(outputDirectory, `${colorScheme.name}.json`)
|
||||
fs.writeFileSync(tempPath, styleTreeJSON)
|
||||
fs.renameSync(tempPath, outPath)
|
||||
console.log(`- ${outPath} created`)
|
||||
|
||||
@@ -3,8 +3,8 @@ import { withOpacity } from "../theme/color"
|
||||
import { background, border, foreground, text } from "./components"
|
||||
import { interactive, toggleable } from "../element"
|
||||
|
||||
export default function search(colorScheme: ColorScheme) {
|
||||
let layer = colorScheme.highest
|
||||
export default function search(colorScheme: ColorScheme): unknown {
|
||||
const layer = colorScheme.highest
|
||||
|
||||
// Search input
|
||||
const editor = {
|
||||
|
||||
@@ -11,9 +11,9 @@ import {
|
||||
import { interactive } from "../element"
|
||||
|
||||
export default function welcome(colorScheme: ColorScheme) {
|
||||
let layer = colorScheme.highest
|
||||
const layer = colorScheme.highest
|
||||
|
||||
let checkboxBase = {
|
||||
const checkboxBase = {
|
||||
cornerRadius: 4,
|
||||
padding: {
|
||||
left: 3,
|
||||
@@ -30,7 +30,7 @@ export default function welcome(colorScheme: ColorScheme) {
|
||||
},
|
||||
}
|
||||
|
||||
let interactive_text_size: TextProperties = { size: "sm" }
|
||||
const interactive_text_size: TextProperties = { size: "sm" }
|
||||
|
||||
return {
|
||||
pageWidth: 320,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Clean } from "./util";
|
||||
import { Clean } from "./util"
|
||||
import * as zed from './zed'
|
||||
|
||||
export type Text = Clean<zed.TextStyle>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export type Prettify<T> = {
|
||||
[K in keyof T]: T[K];
|
||||
} & {};
|
||||
} & unknown;
|
||||
|
||||
/**
|
||||
* Clean removes the [k: string]: unknown property from an object,
|
||||
|
||||
Reference in New Issue
Block a user