From b109eafbc02d610d2a386b30e24c815dcabb0178 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 31 Aug 2021 10:47:06 +0200 Subject: [PATCH] linting --- apps/remix-ide/src/app/tabs/compile-tab.js | 6 +----- libs/remix-lib/src/index.ts | 2 +- libs/remix-lib/src/types/ICompilerApi.ts | 10 +++++----- libs/remix-ui/solidity-compiler/src/index.ts | 2 +- .../solidity-compiler/src/lib/actions/compiler.ts | 2 +- libs/remix-ui/solidity-compiler/src/lib/types/index.ts | 2 +- 6 files changed, 10 insertions(+), 14 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index 61dc9200b4..b1d4709cd0 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -4,15 +4,11 @@ import ReactDOM from 'react-dom' import { SolidityCompiler, CompileTab as CompileTabLogic, parseContracts } from '@remix-ui/solidity-compiler' // eslint-disable-line import { CompilerApiMixin } from '@remixproject/solidity-compiler-plugin' import { ViewPlugin } from '@remixproject/engine-web' -import { ICompilerApi } from '@remix-project/remix-lib-ts' +// import { ICompilerApi } from '@remix-project/remix-lib-ts' import * as packageJson from '../../../../../package.json' -const EventEmitter = require('events') -const $ = require('jquery') const yo = require('yo-yo') -var QueryParams = require('../../lib/query-params') const addTooltip = require('../ui/tooltip') -const globalRegistry = require('../../global/registry') const css = require('./styles/compile-tab-styles') diff --git a/libs/remix-lib/src/index.ts b/libs/remix-lib/src/index.ts index 20e192bf9b..1ba94fdd21 100644 --- a/libs/remix-lib/src/index.ts +++ b/libs/remix-lib/src/index.ts @@ -18,7 +18,7 @@ import * as typeConversion from './execution/typeConversion' import { TxRunnerVM } from './execution/txRunnerVM' import { TxRunnerWeb3 } from './execution/txRunnerWeb3' import * as txResultHelper from './helpers/txResultHelper' -export { ICompilerApi, ConfigurationSettings} from './types/ICompilerApi' +export { ICompilerApi, ConfigurationSettings } from './types/ICompilerApi' const helpers = { ui: uiHelper, diff --git a/libs/remix-lib/src/types/ICompilerApi.ts b/libs/remix-lib/src/types/ICompilerApi.ts index 89dd12c6e6..6e97840101 100644 --- a/libs/remix-lib/src/types/ICompilerApi.ts +++ b/libs/remix-lib/src/types/ICompilerApi.ts @@ -7,7 +7,7 @@ export interface ICompilerApi { compileTabLogic: any contractsDetails: Record configurationSettings: ConfigurationSettings - + setHardHatCompilation: (value: boolean) => void getParameters: () => any setParameters: (params) => void @@ -15,9 +15,9 @@ export interface ICompilerApi { setConfiguration: (name: string, value: string) => void getFileManagerMode: () => string setCompilerConfig: (settings: any) => void - + getCompilationResult: () => any - + onCurrentFileChanged: (fileName: string) => void onResetResults: () => void, onSetWorkspace: (workspace: any) => void @@ -25,7 +25,7 @@ export interface ICompilerApi { onCompilationFinished: (contractsDetails: any, contractMap: any) => void onSessionSwitched: () => void onContentChanged: () => void - + fileExists: (file: string) => Promise writeFile: (file: string, content: string) => Promise readFile: (file: string) => Promise @@ -38,4 +38,4 @@ export interface ConfigurationSettings { language: string, optimize: boolean, runs: string -} \ No newline at end of file +} diff --git a/libs/remix-ui/solidity-compiler/src/index.ts b/libs/remix-ui/solidity-compiler/src/index.ts index 30a13c42f4..317c79cefa 100644 --- a/libs/remix-ui/solidity-compiler/src/index.ts +++ b/libs/remix-ui/solidity-compiler/src/index.ts @@ -1,2 +1,2 @@ export * from './lib/solidity-compiler' -export * from './lib/logic' \ No newline at end of file +export * from './lib/logic' diff --git a/libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts b/libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts index 96316c8bd5..17f2886625 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts +++ b/libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts @@ -42,7 +42,7 @@ export const listenToEvents = (compileTabLogic, api) => (dispatch: React.Dispatc api.onContentChanged = () => { dispatch(setEditorMode('contentChanged')) } - + compileTabLogic.compiler.event.register('loadingCompiler', () => { dispatch(setCompilerMode('loadingCompiler')) }) diff --git a/libs/remix-ui/solidity-compiler/src/lib/types/index.ts b/libs/remix-ui/solidity-compiler/src/lib/types/index.ts index fdb291b66d..ac1b4e60ac 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/types/index.ts +++ b/libs/remix-ui/solidity-compiler/src/lib/types/index.ts @@ -22,4 +22,4 @@ export interface ContractSelectionProps { } | Record, modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, contractsDetails: Record -} \ No newline at end of file +}