Skip to content

Commit 6563b96

Browse files
committed
Remove .ts extensions
1 parent 6c08f92 commit 6563b96

20 files changed

+29
-26
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
"typescript": "^4.1.2"
5858
},
5959
"eslintConfig": {
60-
"extends": "./node_modules/kcd-scripts/eslint.js",
60+
"extends": [
61+
"./node_modules/kcd-scripts/eslint.js",
62+
"plugin:import/typescript"
63+
],
6164
"rules": {
6265
"import/prefer-default-export": "off",
6366
"import/no-unassigned-import": "off",

src/__tests__/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configure, getConfig} from '../config.ts'
1+
import {configure, getConfig} from '../config'
22

33
describe('configuration API', () => {
44
let originalConfig

src/__tests__/element-queries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configure} from '../config.ts'
1+
import {configure} from '../config'
22
import {render, renderIntoDocument} from './helpers/test-utils'
33

44
beforeEach(() => {

src/__tests__/get-by-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import cases from 'jest-in-case'
22
import {screen} from '../'
3-
import {configure, getConfig} from '../config.ts'
3+
import {configure, getConfig} from '../config'
44
import {render} from './helpers/test-utils'
55

66
const originalConfig = getConfig()

src/__tests__/label-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {getRealLabels} from '../label-helpers.ts'
1+
import {getRealLabels} from '../label-helpers'
22

33
test('hidden inputs are not labelable', () => {
44
const element = document.createElement('input')

src/__tests__/matches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {fuzzyMatches, matches} from '../matches.ts'
1+
import {fuzzyMatches, matches} from '../matches'
22

33
// unit tests for text match utils
44

src/__tests__/query-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as queryHelpers from '../query-helpers'
2-
import {configure, getConfig} from '../config.ts'
2+
import {configure, getConfig} from '../config'
33

44
const originalConfig = getConfig()
55
beforeEach(() => {

src/__tests__/role.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configure, getConfig} from '../config.ts'
1+
import {configure, getConfig} from '../config'
22
import {getQueriesForElement} from '../get-queries-for-element'
33
import {render, renderIntoDocument} from './helpers/test-utils'
44

src/__tests__/suggestions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configure} from '../config.ts'
1+
import {configure} from '../config'
22
import {screen, getSuggestedQuery} from '..'
33
import {renderIntoDocument, render} from './helpers/test-utils'
44

src/__tests__/wait-for.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {waitFor} from '../'
2-
import {configure, getConfig} from '../config.ts'
2+
import {configure, getConfig} from '../config'
33
import {renderIntoDocument} from './helpers/test-utils'
44

55
function deferred() {

0 commit comments

Comments
 (0)