fix: lint errors.

This commit is contained in:
Shibo Lyu 2024-05-04 23:08:41 +08:00
parent 24c6b0769c
commit 9658d88162
6 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ import type {
FullBoard,
} from "../types/board.ts";
import { applyChange, createSection } from "./section.ts";
import { BoardChange } from "../types/change.ts";
import type { BoardChange } from "../types/change.ts";
export function createBoard(config: BoardConfig): BoardData {
const sections: SectionData[][] = Array(config.ySections)

View file

@ -1,6 +1,6 @@
import { getCharacterWidth } from "../mod.ts";
import type { BoardConfig } from "../types/board.ts";
import { BoardChange } from "../types/change.ts";
import type { BoardChange } from "../types/change.ts";
import type { SectionData, SectionPosition } from "../types/section.ts";
export function createSection(

View file

@ -4,7 +4,7 @@ import {
} from "https://deno.land/std@0.224.0/assert/mod.ts";
import { createBoard, renderFullBoard } from "../logic/board.ts";
import { BoardData } from "../types/board.ts";
import type { BoardData } from "../types/board.ts";
import { checkFullBoard } from "./checkFullBoard.ts";
import { locateSection } from "../logic/board.ts";
import { applyChangeOnBoard } from "../logic/board.ts";

View file

@ -1,5 +1,5 @@
import { getCharacterWidth } from "../logic/character.ts";
import { FullBoard } from "../types/board.ts";
import type { FullBoard } from "../types/board.ts";
function isCorrectWidth(cWdRaw: string, cCh: string): boolean {
return getCharacterWidth(cCh).toString() === cWdRaw;

View file

@ -1,4 +1,4 @@
import { SectionData } from "./section.ts";
import type { SectionData } from "./section.ts";
/**
* A compact form to represent the whole game board.

View file

@ -1,4 +1,4 @@
import { CharacterPosition } from "./board.ts";
import type { CharacterPosition } from "./board.ts";
/**
* A change to the board.