mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: improve eslint, sb, tsc configs (#483)
Summary: This commit is a bit of a shotgun fix for various project settings. Realistically, they could've been separate commits, but this is convenience for just getting things into a green state to unblock further work. Details: - Use our version of TS in vscode plugins - organize vscode/settings.json - fix tsconfig.test and tsconfig.prod (removes errors in test files) - only use prod tsconfig in webpack - point .eslintrc to both test and prod configs - cleanup storybook - running eslint in my workspace was OOMing. I configured maxWorkers like we had in v1 to fix this. - remove .storybook from code coverage - remove .js files from code coverage --> after moving away from Next.js, we don't allowJS in our tsconfig anymore. We only use JS for configurations, it's not allowed in src code!
This commit is contained in:
@@ -9,7 +9,7 @@ Started container user
|
||||
Using user 'coder' with shell '/bin/bash'`.split("\n")
|
||||
|
||||
export default {
|
||||
title: "CodeBlock",
|
||||
title: "CodeBlock/CodeBlock",
|
||||
component: CodeBlock,
|
||||
argTypes: {
|
||||
lines: { control: "text", defaultValue: sampleLines },
|
||||
|
||||
@@ -5,7 +5,7 @@ import { CodeExample, CodeExampleProps } from "./CodeExample"
|
||||
const sampleCode = `echo "Hello, world"`
|
||||
|
||||
export default {
|
||||
title: "CodeExample",
|
||||
title: "CodeBlock/CodeExample",
|
||||
component: CodeExample,
|
||||
argTypes: {
|
||||
code: { control: "string", defaultValue: sampleCode },
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Workspace, WorkspaceProps } from "./Workspace"
|
||||
import { MockOrganization, MockProject, MockWorkspace } from "../../test_helpers"
|
||||
|
||||
export default {
|
||||
title: "Workspace",
|
||||
title: "Workspaces/Workspace",
|
||||
component: Workspace,
|
||||
argTypes: {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user