Skip to content

Commit 074ff80

Browse files
committed
fix: disable esModuleInterop
1 parent 97aa40b commit 074ff80

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
coverage/
2-
lib/
2+
dist/

.eslintrc.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
},
2626
rules: {
2727
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
28-
'@typescript-eslint/no-require-imports': 'error',
28+
'@typescript-eslint/no-require-imports': 'off',
2929
'@typescript-eslint/ban-ts-ignore': 'warn',
3030
'@typescript-eslint/ban-types': 'error',
3131
'@typescript-eslint/no-unused-vars': 'error',
@@ -60,12 +60,6 @@ module.exports = {
6060
},
6161
},
6262
overrides: [
63-
{
64-
files: ['*.js'],
65-
rules: {
66-
'@typescript-eslint/no-require-imports': 'off',
67-
},
68-
},
6963
{
7064
files: 'src/**/*',
7165
parserOptions: {
@@ -75,7 +69,6 @@ module.exports = {
7569
{
7670
files: ['.eslintrc.js', 'babel.config.js'],
7771
rules: {
78-
'@typescript-eslint/no-require-imports': 'off',
7972
'import/no-commonjs': 'off',
8073
},
8174
},

src/Reporter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as path from 'path';
22
import * as React from 'react';
33
import { Box, Color, ColorProps, Static, render, useApp, useStdout } from 'ink';
4-
import slash from 'slash';
4+
import slash = require('slash');
55
import type { Config } from '@jest/types';
66
import type { AggregatedResult, TestResult } from '@jest/test-result';
77
import {

src/shared.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as React from 'react';
22
import { Box, Color, ColorProps } from 'ink';
33
import type { TestResult } from '@jest/test-result';
44
import type { Config } from '@jest/types';
5-
import chalk from 'chalk';
6-
import slash from 'slash';
5+
import chalk = require('chalk');
6+
import slash = require('slash');
77
import { relativePath } from './utils';
88

99
export const Arrow: React.FC = () => <>{' \u203A '}</>;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"importsNotUsedAsValues": "error",
1111
"noImplicitReturns": true,
1212
"strict": true,
13-
"esModuleInterop": true,
13+
"esModuleInterop": false,
1414
"forceConsistentCasingInFileNames": true,
1515
"outDir": "dist/"
1616
},

0 commit comments

Comments
 (0)