Skip to content

Commit 75b6c61

Browse files
committed
Fix lint failures
1 parent acf6b6e commit 75b6c61

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

jest-runner.eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ module.exports = {
1010
resolvePluginsRelativeTo: ".",
1111
maxWarnings: 0,
1212
},
13-
}
13+
}

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
displayName: "lint",
1818
runner: "jest-runner-eslint",
1919
testMatch: ["<rootDir>/site/**/*.js", "<rootDir>/site/**/*.ts", "<rootDir>/site/**/*.tsx"],
20-
testPathIgnorePatterns: ["/.next/", "/out/"]
20+
testPathIgnorePatterns: ["/.next/", "/out/"],
2121
},
2222
],
2323
collectCoverageFrom: [

site/components/EmptyState/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { screen } from "@testing-library/react"
22
import { render } from "../../test_helpers"
33
import React from "react"
4-
import { EmptyState, EmptyStateProps } from "./index"
4+
import { EmptyState } from "./index"
55

66
describe("EmptyState", () => {
77
it("renders (smoke test)", async () => {

site/components/Icons/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from "react"
2-
import { SvgIcon } from "@material-ui/core"
2+
import SvgIcon from "@material-ui/core/SvgIcon"
33
import { render } from "./../../test_helpers"
44

55
import * as Icons from "./index"
66

77
const getAllIcons = (): [string, typeof SvgIcon][] => {
88
let k: keyof typeof Icons
9-
let ret: [string, typeof SvgIcon][] = []
9+
const ret: [string, typeof SvgIcon][] = []
1010
for (k in Icons) {
1111
ret.push([k, Icons[k]])
1212
}

site/components/Navbar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from "react"
2+
import Button from "@material-ui/core/Button"
3+
import List from "@material-ui/core/List"
4+
import ListSubheader from "@material-ui/core/ListSubheader"
25
import { makeStyles } from "@material-ui/core/styles"
3-
import { Button, List, ListSubheader } from "@material-ui/core"
46

57
import Link from "next/link"
68

site/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
// Allows us to import TS files from outside product/coder/site.
1111
externalDir: true,
1212
},
13-
webpack: (config, { dev, isServer, webpack }) => {
13+
webpack: (config, { isServer, webpack }) => {
1414
// Inject CODERD_HOST environment variable for clients
1515
if (!isServer) {
1616
config.plugins.push(

site/pages/_app.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import React from "react"
2-
32
import CssBaseline from "@material-ui/core/CssBaseline"
3+
import makeStyles from "@material-ui/core/styles"
44
import ThemeProvider from "@material-ui/styles/ThemeProvider"
55

66
import { dark } from "../theme"
77
import { AppProps } from "next/app"
8-
import { makeStyles } from "@material-ui/core"
98
import { Navbar } from "../components/Navbar"
109
import { Footer } from "../components/Page"
1110

@@ -64,7 +63,7 @@ const MyApp: React.FC<AppProps> = (appProps) => {
6463
)
6564
}
6665

67-
const useStyles = makeStyles((theme) => ({
66+
const useStyles = makeStyles(() => ({
6867
root: {
6968
display: "flex",
7069
flexDirection: "column",

site/pages/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from "react"
2-
import { makeStyles, Box, Paper } from "@material-ui/core"
3-
import { AddToQueue as AddWorkspaceIcon } from "@material-ui/icons"
2+
import Box from "@material-ui/core/Box"
3+
import { makeStyles } from "@material-ui/core/styles"
4+
import Paper from "@material-ui/core/Paper"
5+
import AddWorkspaceIcon from "@material-ui/icons/AddToQueue"
46

57
import { EmptyState, SplitButton } from "../components"
68

site/theme/theme.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import { CustomPalette, darkPalette, lightPalette } from "./palettes"
44
import { typography } from "./typography"
55

66
const makeTheme = (palette: CustomPalette) => {
7-
// Grab defaults to re-use in overrides
8-
const { breakpoints } = createMuiTheme()
9-
107
return createMuiTheme({
118
palette,
129
typography,

0 commit comments

Comments
 (0)