mirror of
https://github.com/TextPlace/CoreTextPlace.git
synced 2025-05-01 05:01:11 +00:00
fix: lint errors.
This commit is contained in:
parent
24c6b0769c
commit
9658d88162
6 changed files with 6 additions and 6 deletions
|
@ -6,7 +6,7 @@ import type {
|
||||||
FullBoard,
|
FullBoard,
|
||||||
} from "../types/board.ts";
|
} from "../types/board.ts";
|
||||||
import { applyChange, createSection } from "./section.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 {
|
export function createBoard(config: BoardConfig): BoardData {
|
||||||
const sections: SectionData[][] = Array(config.ySections)
|
const sections: SectionData[][] = Array(config.ySections)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { getCharacterWidth } from "../mod.ts";
|
import { getCharacterWidth } from "../mod.ts";
|
||||||
import type { BoardConfig } from "../types/board.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";
|
import type { SectionData, SectionPosition } from "../types/section.ts";
|
||||||
|
|
||||||
export function createSection(
|
export function createSection(
|
||||||
|
|
|
@ -4,7 +4,7 @@ import {
|
||||||
} from "https://deno.land/std@0.224.0/assert/mod.ts";
|
} from "https://deno.land/std@0.224.0/assert/mod.ts";
|
||||||
|
|
||||||
import { createBoard, renderFullBoard } from "../logic/board.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 { checkFullBoard } from "./checkFullBoard.ts";
|
||||||
import { locateSection } from "../logic/board.ts";
|
import { locateSection } from "../logic/board.ts";
|
||||||
import { applyChangeOnBoard } from "../logic/board.ts";
|
import { applyChangeOnBoard } from "../logic/board.ts";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { getCharacterWidth } from "../logic/character.ts";
|
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 {
|
function isCorrectWidth(cWdRaw: string, cCh: string): boolean {
|
||||||
return getCharacterWidth(cCh).toString() === cWdRaw;
|
return getCharacterWidth(cCh).toString() === cWdRaw;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { SectionData } from "./section.ts";
|
import type { SectionData } from "./section.ts";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A compact form to represent the whole game board.
|
* A compact form to represent the whole game board.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { CharacterPosition } from "./board.ts";
|
import type { CharacterPosition } from "./board.ts";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A change to the board.
|
* A change to the board.
|
||||||
|
|
Loading…
Add table
Reference in a new issue