File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 },
4444 "devDependencies" : {
4545 "@lavamoat/allow-scripts" : " ^3.2.1" ,
46+ "@lavamoat/preinstall-always-fail" : " ^2.1.0" ,
4647 "@metamask/auto-changelog" : " ^3.1.0" ,
4748 "@metamask/eslint-config" : " ^12.2.0" ,
4849 "@metamask/eslint-config-jest" : " ^12.1.0" ,
5859 "@typescript-eslint/parser" : " ^5.33.0" ,
5960 "eslint" : " ^8.48.0" ,
6061 "eslint-config-prettier" : " ^8.8.0" ,
61- "eslint-plugin-import" : " ^2.27.5 " ,
62+ "eslint-plugin-import" : " ~2.26.0 " ,
6263 "eslint-plugin-jest" : " ^27.1.5" ,
6364 "eslint-plugin-jsdoc" : " ^39.2.9" ,
6465 "eslint-plugin-n" : " ^15.7.0" ,
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import {
1717import nock from 'nock' ;
1818import * as sinon from 'sinon' ;
1919
20- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21- // @ts -ignore
20+ import packageJson from '../package.json' ;
21+ import { advanceTime , flushPromises , getFakeProvider } from '../tests/helpers' ;
2222import { API_BASE_URL , SENTINEL_API_BASE_URL_MAP } from './constants' ;
2323import SmartTransactionsController , {
2424 DEFAULT_INTERVAL ,
@@ -33,8 +33,6 @@ import type {
3333import type { SmartTransaction , UnsignedTransaction , Hex } from './types' ;
3434import { SmartTransactionStatuses } from './types' ;
3535import * as utils from './utils' ;
36- import packageJson from '../package.json' ;
37- import { advanceTime , flushPromises , getFakeProvider } from '../tests/helpers' ;
3836
3937jest . mock ( '@ethersproject/bytes' , ( ) => ( {
4038 ...jest . requireActual ( '@ethersproject/bytes' ) ,
Original file line number Diff line number Diff line change 11import { ChainId } from '@metamask/controller-utils' ;
22
3- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4- // @ts -ignore
3+ import packageJson from '../package.json' ;
54import { API_BASE_URL , SENTINEL_API_BASE_URL_MAP } from './constants' ;
65import {
76 SmartTransactionMinedTx ,
@@ -10,7 +9,6 @@ import {
109 SmartTransactionCancellationReason ,
1110} from './types' ;
1211import * as utils from './utils' ;
13- import packageJson from '../package.json' ;
1412
1513const createSignedTransaction = ( ) => {
1614 return '0xf86c098504a817c800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a02b79f322a625d623a2bb2911e0c6b3e7eaf741a7c7c5d2e8c67ef3ff4acf146ca01ae168fea63dc3391b75b586c8a7c0cb55cdf3b8e2e4d8e097957a3a56c6f2c5' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ import { BigNumber } from 'bignumber.js';
55import jsonDiffer from 'fast-json-patch' ;
66import _ from 'lodash' ;
77
8+ // Ignoring TypeScript errors here because this import is disallowed for production builds, because
9+ // the `package.json` file is above the root directory.
810// eslint-disable-next-line @typescript-eslint/ban-ts-comment
11+ // @ts -ignore
12+ import packageJson from '../package.json' ;
913import { API_BASE_URL , SENTINEL_API_BASE_URL_MAP } from './constants' ;
1014import type { SmartTransaction , SmartTransactionsStatus } from './types' ;
1115import {
@@ -15,9 +19,6 @@ import {
1519 SmartTransactionMinedTx ,
1620 cancellationReasonToStatusMap ,
1721} from './types' ;
18- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19- // @ts -ignore
20- import packageJson from '../package.json' ;
2122
2223export function isSmartTransactionPending ( smartTransaction : SmartTransaction ) {
2324 return smartTransaction . status === SmartTransactionStatuses . PENDING ;
You can’t perform that action at this time.
0 commit comments