Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Nov 10, 2023
1 parent 8f8d113 commit a4f8085
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"import/newline-after-import": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{ "prefer": "type-imports" }
{
"prefer": "type-imports",
"disallowTypeAnnotations": false
}
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
Expand Down
5 changes: 3 additions & 2 deletions docs/pages/api/telemetry/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Analytics, TrackParams } from "@segment/analytics-node";
import { NextApiRequest, NextApiResponse } from "next";
import type { TrackParams } from "@segment/analytics-node";
import { Analytics } from "@segment/analytics-node";
import type { NextApiRequest, NextApiResponse } from "next";

if (!process.env.SEGMENT_WRITE_KEY) {
throw new Error('Missing required environment variable "SEGMENT_WRITE_KEY".');
Expand Down
3 changes: 2 additions & 1 deletion packages/create-ponder/src/bin/create-ponder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { cac } from "cac";
import path from "node:path";
import prompts from "prompts";

import { CreatePonderOptions, Template, TemplateKind } from "@/common";
import type { CreatePonderOptions, Template } from "@/common";
import { TemplateKind } from "@/common";
import { run } from "@/index";

// NOTE: This is a workaround for tsconfig `rootDir` nonsense.
Expand Down
3 changes: 2 additions & 1 deletion packages/create-ponder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import path from "node:path";
import pico from "picocolors";
import prettier from "prettier";

import { CreatePonderOptions, TemplateKind } from "@/common";
import type { CreatePonderOptions } from "@/common";
import { TemplateKind } from "@/common";
import { getPackageManager } from "@/helpers/getPackageManager";
import { tryGitInit } from "@/helpers/git";
import { fromBasic } from "@/templates/basic";
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-ponder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ module.exports = {
rules: {
"@typescript-eslint/no-floating-promises": "error",
},
// ignorePatterns: ["**/ponder-env.d.ts"],
};

0 comments on commit a4f8085

Please sign in to comment.