Fix basic eslint errors

This commit is contained in:
Nate Butler
2023-06-28 16:44:18 -04:00
parent e30ad9109c
commit 1177980172
8 changed files with 173 additions and 19 deletions
+5 -5
View File
@@ -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`)
+2 -2
View File
@@ -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 = {
+3 -3
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
import { Clean } from "./util";
import { Clean } from "./util"
import * as zed from './zed'
export type Text = Clean<zed.TextStyle>
+1 -1
View File
@@ -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,