Skip to content

Commit

Permalink
Organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewscwei committed Sep 10, 2023
1 parent 46be5fd commit d127ec4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
"@typescript-eslint/consistent-generic-constructors": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/default-param-last": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
Expand Down
2 changes: 1 addition & 1 deletion src/core/Point.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PointArrayDescriptor, PointDescriptor, PointJsonDescriptor } from '../types'
import { type PointArrayDescriptor, type PointDescriptor, type PointJsonDescriptor } from '../types'

/**
* A type representing a point on a 2D plane.
Expand Down
3 changes: 1 addition & 2 deletions src/core/Rect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { PointDescriptor, RectDescriptor, RectJsonDescriptor, SizeDescriptor } from '../types'
import { typeIsWindow } from '../types'
import { typeIsWindow, type PointDescriptor, type RectDescriptor, type RectJsonDescriptor, type SizeDescriptor } from '../types'
import { hitTest } from '../utils'
import { Point } from './Point'
import { Size } from './Size'
Expand Down
2 changes: 1 addition & 1 deletion src/core/Size.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SizeArrayDescriptor, SizeDescriptor, SizeJsonDescriptor } from '../types'
import { type SizeArrayDescriptor, type SizeDescriptor, type SizeJsonDescriptor } from '../types'

/**
* A type representing a size on a 2D plane.
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Point, Rect } from '../core'
import { type Point, type Rect } from '../core'

/**
* Array representation of a {@link Point} in the format of `[x, y]`.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getFOV.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Point, Rect } from '../core'
import type { FOV } from '../types'
import { type FOV } from '../types'

/**
* Options for computing an element's field-of-view.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/hitTest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Point, Rect } from '../core'
import type { PointDescriptor } from '../types'
import { type PointDescriptor } from '../types'

/**
* Hit-tests 2 objects. These objects can either be {@link Point}'s,
Expand Down

0 comments on commit d127ec4

Please sign in to comment.