Skip to content

Commit

Permalink
fix: disable esModuleInterop
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 23, 2020
1 parent 97aa40b commit 074ff80
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
coverage/
lib/
dist/
9 changes: 1 addition & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
},
rules: {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/ban-ts-ignore': 'warn',
'@typescript-eslint/ban-types': 'error',
'@typescript-eslint/no-unused-vars': 'error',
Expand Down Expand Up @@ -60,12 +60,6 @@ module.exports = {
},
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
},
},
{
files: 'src/**/*',
parserOptions: {
Expand All @@ -75,7 +69,6 @@ module.exports = {
{
files: ['.eslintrc.js', 'babel.config.js'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
'import/no-commonjs': 'off',
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/Reporter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from 'path';
import * as React from 'react';
import { Box, Color, ColorProps, Static, render, useApp, useStdout } from 'ink';
import slash from 'slash';
import slash = require('slash');
import type { Config } from '@jest/types';
import type { AggregatedResult, TestResult } from '@jest/test-result';
import {
Expand Down
4 changes: 2 additions & 2 deletions src/shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
import { Box, Color, ColorProps } from 'ink';
import type { TestResult } from '@jest/test-result';
import type { Config } from '@jest/types';
import chalk from 'chalk';
import slash from 'slash';
import chalk = require('chalk');
import slash = require('slash');
import { relativePath } from './utils';

export const Arrow: React.FC = () => <>{' \u203A '}</>;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"importsNotUsedAsValues": "error",
"noImplicitReturns": true,
"strict": true,
"esModuleInterop": true,
"esModuleInterop": false,
"forceConsistentCasingInFileNames": true,
"outDir": "dist/"
},
Expand Down

0 comments on commit 074ff80

Please sign in to comment.