Skip to content

Commit 668e56e

Browse files
committed
chore: fix typo in eslint rc file
1 parent 114dcb6 commit 668e56e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.eslintrc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rules:
2323
# if they are unused.
2424
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
2525
# For overloads.
26-
no-dupe-class-members: off
26+
no-dupe-class-members: 0
2727
"@typescript-eslint/no-use-before-define": off
2828
"@typescript-eslint/no-non-null-assertion": off
2929
"@typescript-eslint/ban-types": off

test/unit/test-plugin/src/index.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
import * as cs from "code-server"
22
import * as fspath from "path"
33

4+
type FixMeLater = any
5+
46
export const plugin: cs.Plugin = {
57
displayName: "Test Plugin",
68
routerPath: "/test-plugin",
79
homepageURL: "https://example.com",
810
description: "Plugin used in code-server tests.",
911

10-
init(config) {
12+
init(config: FixMeLater) {
1113
config.logger.debug("test-plugin loaded!")
1214
},
1315

1416
router() {
1517
const r = cs.express.Router()
16-
r.get("/test-app", (_, res) => {
18+
r.get("/test-app", (_: FixMeLater, res: FixMeLater) => {
1719
res.sendFile(fspath.resolve(__dirname, "../public/index.html"))
1820
})
19-
r.get("/goland/icon.svg", (_, res) => {
21+
r.get("/goland/icon.svg", (_: FixMeLater, res: FixMeLater) => {
2022
res.sendFile(fspath.resolve(__dirname, "../public/icon.svg"))
2123
})
2224
r.get("/error", () => {
@@ -27,8 +29,8 @@ export const plugin: cs.Plugin = {
2729

2830
wsRouter() {
2931
const wr = cs.WsRouter()
30-
wr.ws("/test-app", (req) => {
31-
cs.wss.handleUpgrade(req, req.ws, req.head, (ws) => {
32+
wr.ws("/test-app", (req: FixMeLater) => {
33+
cs.wss.handleUpgrade(req, req.ws, req.head, (ws: FixMeLater) => {
3234
req.ws.resume()
3335
ws.send("hello")
3436
})

0 commit comments

Comments
 (0)