mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 22:42:17 +03:00
Update TSConfig (#2589)
Based on #2558. Also fixes errors resulting from the stricter options. Release Notes: - N/A (No public facing changes)
This commit is contained in:
commit
16e3e04501
@ -30,17 +30,19 @@ function generateLicenseFile(themes: ThemeConfig[]) {
|
||||
checkLicenses(themes)
|
||||
for (const theme of themes) {
|
||||
const licenseText = fs.readFileSync(theme.licenseFile).toString()
|
||||
writeLicense(theme.name, theme.licenseUrl, licenseText)
|
||||
writeLicense(theme.name, licenseText, theme.licenseUrl)
|
||||
}
|
||||
}
|
||||
|
||||
function writeLicense(
|
||||
themeName: string,
|
||||
licenseUrl: string,
|
||||
licenseText: String
|
||||
licenseText: string,
|
||||
licenseUrl?: string
|
||||
) {
|
||||
process.stdout.write(
|
||||
`## [${themeName}](${licenseUrl})\n\n${licenseText}\n********************************************************************************\n\n`
|
||||
licenseUrl
|
||||
? `## [${themeName}](${licenseUrl})\n\n${licenseText}\n********************************************************************************\n\n`
|
||||
: `## ${themeName}\n\n${licenseText}\n********************************************************************************\n\n`
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,11 @@ interface ThemeMeta {
|
||||
themeUrl?: string
|
||||
}
|
||||
|
||||
export type ThemeFamilyMeta = Pick<
|
||||
ThemeMeta,
|
||||
"name" | "author" | "licenseType" | "licenseUrl"
|
||||
>
|
||||
|
||||
export interface ThemeConfigInputColors {
|
||||
neutral: Scale<Color>
|
||||
red: Scale<Color>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ThemeLicenseType, ThemeConfig, ThemeSyntax } from "../../common"
|
||||
import { ThemeLicenseType, ThemeSyntax, ThemeFamilyMeta } from "../../common"
|
||||
|
||||
export interface Variant {
|
||||
colors: {
|
||||
@ -21,7 +21,7 @@ export interface Variant {
|
||||
}
|
||||
}
|
||||
|
||||
export const meta: Partial<ThemeConfig> = {
|
||||
export const meta: ThemeFamilyMeta = {
|
||||
name: "Atelier",
|
||||
author: "Bram de Haan (http://atelierbramdehaan.nl)",
|
||||
licenseType: ThemeLicenseType.MIT,
|
||||
|
@ -3,8 +3,8 @@ import {
|
||||
chroma,
|
||||
colorRamp,
|
||||
ThemeLicenseType,
|
||||
ThemeConfig,
|
||||
ThemeSyntax,
|
||||
ThemeFamilyMeta,
|
||||
} from "../../common"
|
||||
|
||||
export const ayu = {
|
||||
@ -77,7 +77,7 @@ export const buildSyntax = (t: typeof dark): ThemeSyntax => {
|
||||
}
|
||||
}
|
||||
|
||||
export const meta: Partial<ThemeConfig> = {
|
||||
export const meta: ThemeFamilyMeta = {
|
||||
name: "Ayu",
|
||||
author: "dempfi",
|
||||
licenseType: ThemeLicenseType.MIT,
|
||||
|
@ -5,9 +5,10 @@ import {
|
||||
ThemeLicenseType,
|
||||
ThemeConfig,
|
||||
ThemeSyntax,
|
||||
ThemeFamilyMeta,
|
||||
} from "../../common"
|
||||
|
||||
const meta: Partial<ThemeConfig> = {
|
||||
const meta: ThemeFamilyMeta = {
|
||||
name: "Gruvbox",
|
||||
author: "morhetz <morhetz@gmail.com>",
|
||||
licenseType: ThemeLicenseType.MIT,
|
||||
|
@ -6,7 +6,21 @@
|
||||
"noImplicitAny": true,
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": true,
|
||||
"sourceMap": true
|
||||
"sourceMap": true,
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"noImplicitThis": true,
|
||||
"alwaysStrict": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": false,
|
||||
"experimentalDecorators": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user