Skip to content

Commit

Permalink
Add ESLint consistent-type-imports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
TAEMBO committed Jun 5, 2024
1 parent 41feb5b commit 781bcea
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default [
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/naming-convention": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion src/commands/chatInput/stats.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AttachmentBuilder, EmbedBuilder, SlashCommandBuilder } from "discord.js";
import config from "../../config.json" assert { type: "json" };
import canvas from "@napi-rs/canvas";
import { DSSExtension, DSSResponse, Feeds, filterUnused } from "farming-simulator-types/2022";
import { DSSExtension, type DSSResponse, Feeds, filterUnused } from "farming-simulator-types/2022";
import { Command, FSServers } from "../../structures/index.js";
import { formatRequestInit, formatTime, isMPStaff, log, lookup } from "../../util/index.js";
import type { PlayerTimesDocument } from "../../typings.js";
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/bannedWords.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from "mongoose";
import { Cached } from "src/typings.js";
import type { Cached } from "src/typings.js";

const model = mongoose.model("bannedWords", new mongoose.Schema({
_id: { type: String, required: true },
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/dailyMsgs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from "mongoose";
import { Cached } from "src/typings.js";
import type { Cached } from "src/typings.js";

const model = mongoose.model("dailyMsgs", new mongoose.Schema({
_id: { type: Number, required: true },
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/fmList.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from "mongoose";
import { Cached } from "src/typings.js";
import type { Cached } from "src/typings.js";

const model = mongoose.model("fmList", new mongoose.Schema({
_id: { type: String, required: true },
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/tfList.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from "mongoose";
import { Cached } from "src/typings.js";
import type { Cached } from "src/typings.js";

const model = mongoose.model("tfList", new mongoose.Schema({
_id: { type: String, required: true },
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/watchListPings.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from "mongoose";
import { Cached } from "src/typings.js";
import type { Cached } from "src/typings.js";

const model = mongoose.model("watchListPings", new mongoose.Schema({
_id: { type: String, required: true },
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/whitelist.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mongoose from "mongoose";
import { Cached } from "src/typings.js";
import type { Cached } from "src/typings.js";

const model = mongoose.model("whitelist", new mongoose.Schema({
_id: { type: String, required: true },
Expand Down

0 comments on commit 781bcea

Please sign in to comment.