Skip to content

Commit

Permalink
chore: upgrade typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 12, 2024
1 parent f9351a6 commit 4a22beb
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 143 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ module.exports = {
'error',
{ argsIgnorePattern: '^_', caughtErrors: 'all' },
],
'@typescript-eslint/consistent-type-imports': [
'error',
{ fixStyle: 'inline-type-imports', disallowTypeAnnotations: false },
],
'@typescript-eslint/no-import-type-side-effects': 'error',
'no-else-return': 'error',
'no-negated-condition': 'error',
eqeqeq: ['error', 'smart'],
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
"@types/jest": "^29.0.0",
"@types/node": "^16.0.0",
"@types/react": "^17.0.39",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vercel/ncc": "^0.38.0",
"chalk": "^4.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^27.0.0",
"eslint-plugin-jest": "^28.0.0",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.16.0",
Expand All @@ -79,11 +79,14 @@
"semantic-release": "^23.0.0",
"slash": "^3.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.0.0"
"typescript": "^5.0.0"
},
"peerDependencies": {
"jest": "^27.0.0 || ^28.0.0 || ^29.0.0"
},
"resolutions": {
"eslint-plugin-jest/@typescript-eslint/utils": "^6.0.0"
},
"engines": {
"node": ">=14"
},
Expand Down
16 changes: 12 additions & 4 deletions src/Reporter.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import * as path from 'path';
import * as React from 'react';
import { Box, Static, Text, TextProps, render, useApp, useStdout } from 'ink';
import {
Box,
Static,
Text,
type TextProps,
render,
useApp,
useStdout,
} from 'ink';
import slash = require('slash');
import type { Config } from '@jest/types';
import type { AggregatedResult, TestResult } from '@jest/test-result';
import {
BaseReporter,
ReporterOnStartOptions,
Test,
TestContext,
type ReporterOnStartOptions,
type Test,
type TestContext,
} from '@jest/reporters';
import { SnapshotStatus } from './SnapshotStatus';
import { Summary } from './Summary';
Expand Down
2 changes: 1 addition & 1 deletion src/shared.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Box, Text, TextProps } from 'ink';
import { Box, Text, type TextProps } from 'ink';
import type { TestResult } from '@jest/test-result';
import type { Config } from '@jest/types';
import chalk = require('chalk');
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"moduleResolution": "node",
"jsx": "react",
"declaration": false,
"isolatedModules": true,
"importsNotUsedAsValues": "error",
"noImplicitReturns": true,
"strict": true,
// ink requires this
Expand Down
Loading

0 comments on commit 4a22beb

Please sign in to comment.