Skip to content

Commit 220fe62

Browse files
committed
Revert "Add explicit file extensions to relative import paths"
This reverts commit 3bfe041.
1 parent 6c4e6cd commit 220fe62

232 files changed

Lines changed: 278 additions & 316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ module.exports = {
77
{
88
files: ['*.ts'],
99
extends: ['@metamask/eslint-config-typescript'],
10-
rules: {
11-
'import/no-useless-path-segments': ['error', { noUselessIndex: false }],
12-
}
1310
},
1411

1512
{

test/api/assert.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { throws, doesNotThrow } from 'assert';
22
import { describe, it } from 'vitest';
33

4-
import { assert, string, StructError } from '../../src/index.js';
4+
import { assert, string, StructError } from '../../src';
55

66
describe('assert', () => {
77
it('valid as helper', () => {

test/api/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
defaulted,
1010
literal,
1111
coerce,
12-
} from '../../src/index.js';
12+
} from '../../src';
1313

1414
describe('create', () => {
1515
it('missing as helper', () => {

test/api/is.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { strictEqual } from 'assert';
22
import { describe, it } from 'vitest';
33

4-
import { is, string } from '../../src/index.js';
4+
import { is, string } from '../../src';
55

66
describe('is', () => {
77
it('valid as helper', () => {

test/api/mask.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
StructError,
1010
array,
1111
type,
12-
} from '../../src/index.js';
12+
} from '../../src';
1313

1414
describe('mask', () => {
1515
it('object as helper', () => {

test/api/validate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
refine,
1010
object,
1111
any,
12-
} from '../../src/index.js';
12+
} from '../../src';
1313

1414
describe('validate', () => {
1515
it('valid as helper', () => {

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
create as createValue,
1212
deprecated,
1313
StructError,
14-
} from '../src/index.js';
14+
} from '../src';
1515

1616
describe('superstruct', () => {
1717
describe('validation', () => {

test/typings/any.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assert, any } from '../../src/index.js';
2-
import { test } from '../index.test.js';
1+
import { assert, any } from '../../src';
2+
import { test } from '../index.test';
33

44
test<any>((value) => {
55
assert(value, any());

test/typings/array.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assert, array, number } from '../../src/index.js';
2-
import { test } from '../index.test.js';
1+
import { assert, array, number } from '../../src';
2+
import { test } from '../index.test';
33

44
test<unknown[]>((value) => {
55
assert(value, array());

test/typings/assign.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assert, assign, object, number, string } from '../../src/index.js';
2-
import { test } from '../index.test.js';
1+
import { assert, assign, object, number, string } from '../../src';
2+
import { test } from '../index.test';
33

44
test<{
55
a: number;

0 commit comments

Comments
 (0)