Skip to content

Commit

Permalink
Add file extensions to all imports
Browse files Browse the repository at this point in the history
  • Loading branch information
SLaks committed Nov 5, 2024
1 parent adcbd52 commit c579bb1
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/components/Line.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { RenderedLineInfo } from '../view-model/scroll-view-model'
import displayRange from '../display-range'
import textFilter from '../text-filter'
import type { RenderedLineInfo } from '../view-model/scroll-view-model.ts'
import displayRange from '../display-range.ts'
import textFilter from '../text-filter.ts'

const ktivKriAnnotation = (text: string) =>
text
Expand Down
4 changes: 2 additions & 2 deletions src/components/ParshaPicker.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fuzzy from '../fuzzy'
import fuzzy from '../fuzzy.ts'
import utils from './utils.ts'
import ParshaResult, { NoResults } from './ParshaResult.ts'
import Search, { SearchEmitter } from './Search.ts'
import EventEmitter from '../event-emitter'
import EventEmitter from '../event-emitter.ts'
import { LeiningGenerator } from '../calendar-model/generator.ts'
import { HDate, Locale } from '@hebcal/core'
import {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ScrollDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
RenderedPageInfo,
ScrollViewModel,
} from '../view-model/scroll-view-model'
import Page from './Page'
import utils from './utils'
import Page from './Page.ts'
import utils from './utils.ts'

const { htmlToElement, purgeNode } = utils

Expand Down
2 changes: 1 addition & 1 deletion src/components/Search.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import utils from './utils.ts'
import SelectList, { setSelected, getSelected } from './SelectList.ts'
import { EventEmitter } from '../event-emitter'
import { EventEmitter } from '../event-emitter.ts'

const { htmlToElement: html, whenKey, purgeNode } = utils

Expand Down
2 changes: 1 addition & 1 deletion src/fuzzy.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import fuzzy from './fuzzy'
import fuzzy from './fuzzy.ts'

test('only matches if all characters are present in order', (t) => {
const haystack = [
Expand Down
2 changes: 1 addition & 1 deletion src/hebrew-numeral.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import hebrewNumeralFromInteger from './hebrew-numeral'
import hebrewNumeralFromInteger from './hebrew-numeral.ts'

test('exact value returns the letter', (t) => {
t.is(hebrewNumeralFromInteger(4), 'ד')
Expand Down
2 changes: 1 addition & 1 deletion src/integer-iterator.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava'

import IntegerIterator from './integer-iterator'
import IntegerIterator from './integer-iterator.ts'

test('previous once returns 1 less than the start', (t) => {
const sut = IntegerIterator.new({ startingAt: 0 })
Expand Down
2 changes: 1 addition & 1 deletion src/location.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import { loadScroll } from './location'
import { loadScroll } from './location.ts'

test('page count for torah', async (t) => {
const resolver = await loadScroll('torah')
Expand Down
2 changes: 1 addition & 1 deletion src/slugify.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import slugify from './slugify'
import slugify from './slugify.ts'

test('slugify lowercases all letters', (t) => {
t.assert(slugify('HelLo') === 'hello')
Expand Down
2 changes: 1 addition & 1 deletion src/text-filter.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import textFilter from './text-filter'
import textFilter from './text-filter.ts'

test('simple annotated text remains untouched', (t) => {
t.is(
Expand Down
2 changes: 1 addition & 1 deletion src/verses-range.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import hebrewNumeral from './hebrew-numeral'
import hebrewNumeral from './hebrew-numeral.ts'

const versesRange = (verses) => {
if (verses.length === 1) return hebrewNumeral(verses[0].verse)
Expand Down

0 comments on commit c579bb1

Please sign in to comment.