Skip to content

Commit

Permalink
chore(lint): use the noUnusedImports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed May 16, 2024
1 parent 72e0d53 commit 839f313
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

"correctness": {
"noUnusedPrivateClassMembers": "error",
"noUnusedImports": "error",
"noUnusedVariables": "error",
"useJsxKeyInIterable": "off"
},
Expand Down
1 change: 1 addition & 0 deletions source/output/CodeSpanText.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { DiagnosticOrigin } from "#diagnostic";
import { Path } from "#path";
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

export class CodeSpanText implements JSX.ElementClass {
Expand Down
1 change: 1 addition & 0 deletions source/output/addsPackageStepText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

export function addsPackageStepText(compilerVersion: string, installationPath: string): JSX.Element {
Expand Down
1 change: 1 addition & 0 deletions source/output/describeNameText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Line, Scribbler } from "#scribbler";

export function describeNameText(name: string, indent = 0): JSX.Element {
Expand Down
1 change: 1 addition & 0 deletions source/output/diagnosticText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Diagnostic, DiagnosticCategory } from "#diagnostic";
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";
import { CodeSpanText } from "./CodeSpanText.js";

Expand Down
1 change: 1 addition & 0 deletions source/output/fileStatusText.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { TestFile } from "#file";
import { Path } from "#path";
import { type FileResultStatus, ResultStatus } from "#result";
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

class FileNameText implements JSX.ElementClass {
Expand Down
1 change: 1 addition & 0 deletions source/output/fileViewText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Line, Scribbler, Text } from "#scribbler";

export function fileViewText(lines: Array<JSX.Element>, addEmptyFinalLine: boolean): JSX.Element {
Expand Down
1 change: 1 addition & 0 deletions source/output/formattedText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Line, Scribbler } from "#scribbler";

export class JsonText implements JSX.ElementClass {
Expand Down
1 change: 1 addition & 0 deletions source/output/helpText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { OptionBrand, type OptionDefinition } from "#config";
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

const usageExamples: Array<[commandText: string, descriptionText: string]> = [
Expand Down
1 change: 1 addition & 0 deletions source/output/summaryText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ResultCount } from "#result";
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

class RowText implements JSX.ElementClass {
Expand Down
1 change: 1 addition & 0 deletions source/output/testNameText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

class StatusText implements JSX.ElementClass {
Expand Down
1 change: 1 addition & 0 deletions source/output/usesCompilerStepText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Path } from "#path";
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

class ProjectNameText implements JSX.ElementClass {
Expand Down
1 change: 1 addition & 0 deletions source/output/watchModeUsageText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Color, Line, Scribbler, Text } from "#scribbler";

export function watchModeUsageText(): JSX.Element {
Expand Down
1 change: 1 addition & 0 deletions source/scribbler/Line.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Scribbler } from "./Scribbler.js";
import { Text } from "./Text.js";
import type { Color } from "./enums.js";
Expand Down
1 change: 1 addition & 0 deletions source/scribbler/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: TODO false positive
import { Scribbler } from "./Scribbler.js";
import { Color } from "./enums.js";

Expand Down

0 comments on commit 839f313

Please sign in to comment.