fix other targets

1spacelint
bunsenstraat 1 year ago
parent 2248c5d2da
commit c37fa3d924
  1. 6
      libs/remix-analyzer/test/analysis/staticAnalysisCommon-test.ts
  2. 4
      libs/remix-core-plugin/src/types/contract.ts
  3. 2
      libs/remix-debug/test.ts
  4. 2
      libs/remix-solidity/src/compiler/types.ts
  5. 2
      libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx
  6. 4
      libs/remix-ui/file-decorators/src/lib/types/index.ts
  7. 2
      libs/remix-ui/helper/src/lib/components/PluginViewWrapper.tsx
  8. 2
      libs/remix-ui/run-tab/src/lib/actions/deploy.ts
  9. 6
      libs/remix-ui/search/src/lib/components/results/SearchHelper.ts
  10. 2
      libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts
  11. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
  12. 2
      libs/remix-ui/vertical-icons-panel/src/lib/vertical-icons-context-menu.tsx
  13. 14
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger-item.tsx
  14. 6
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx
  15. 2
      libs/remix-ui/workspace/src/lib/contexts/index.ts
  16. 2
      libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/deploy_with_ethers.ts
  17. 2
      libs/remix-ws-templates/src/templates/ozerc1155/scripts/deploy_with_ethers.ts
  18. 2
      libs/remix-ws-templates/src/templates/ozerc20/scripts/deploy_with_ethers.ts
  19. 2
      libs/remix-ws-templates/src/templates/ozerc721/scripts/deploy_with_ethers.ts
  20. 2
      libs/remix-ws-templates/src/templates/remixDefault/scripts/deploy_with_ethers.ts
  21. 2
      libs/remix-ws-templates/src/templates/zeroxErc20/scripts/deploy_with_ethers.ts
  22. 2
      lint-fix-targets.js
  23. 3
      lintfix.sh
  24. 9593
      projects.json

@ -40,11 +40,11 @@ test('staticAnalysisCommon.helpers.buildFunctionSignature', function (t) {
'function (bytes memory) payable returns (bool,bytes memory)',
'check fixed call type')
t.equal(common.lowLevelCallTypes['CALL-0.4'].type,
t.equal(common.lowLevelCallTypes['CALL-0.4'].type,
'function () payable returns (bool)',
'check fixed call type for versions before 0.5.0')
t.equal(common.lowLevelCallTypes.CALLCODE.type,
t.equal(common.lowLevelCallTypes.CALLCODE.type,
'function () payable returns (bool)',
'check fixed callcode type')
@ -56,7 +56,7 @@ t.equal(common.lowLevelCallTypes.CALLCODE.type,
'function (bytes memory) returns (bool,bytes memory)',
'check fixed delegatecall type')
t.equal(common.lowLevelCallTypes['DELEGATECALL-0.4'].type,
t.equal(common.lowLevelCallTypes['DELEGATECALL-0.4'].type,
'function () returns (bool)',
'check fixed delegatecall type for version before 0.5.0')
})

@ -191,7 +191,7 @@ export interface ContractSources {
}
}
export interface NetworkDeploymentFile {
export interface NetworkDeploymentFile {
id: string,
network: string,
deployments: {
@ -204,7 +204,7 @@ export interface ContractSources {
}[]
}
export interface SolcBuildFile {
export interface SolcBuildFile {
solcInput: SolcInput,
solcOutput: SolcOutput
}

@ -67,7 +67,7 @@ cmdLine.startDebug(tx, shortFilename)
cmdLine.events.on('source', () => {
cmdLine.getSource().forEach(console.dir)
})
// })
// })
// })
const repl = require('repl')

@ -502,6 +502,6 @@ export interface BytecodeObject {
}
}
export interface EsWebWorkerHandlerInterface {
export interface EsWebWorkerHandlerInterface {
getWorker(): Worker
}

@ -104,7 +104,7 @@ export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward,
tagId: 'overbackTooltip',
tooltipMsg: 'Step over forward',
}
}
}
const jumpMarkupStructure = {
jumpPreviousBreakpointJSX : {
markup: (

@ -5,7 +5,7 @@ export enum fileDecorationType {
None = 'NONE'
}
export type fileDecoration = {
export type fileDecoration = {
path: string,
isDirectory: boolean,
fileStateType: fileDecorationType,
@ -20,7 +20,7 @@ export enum fileDecorationType {
comment?: string[] | string
}
export interface FileType {
export interface FileType {
path: string,
name?: string,
isDirectory?: boolean,

@ -21,4 +21,4 @@ export const PluginViewWrapper = (props: IPluginViewWrapperProps) => {
:<></>
}</>
)
}
}

@ -258,7 +258,7 @@ export const loadAddress = (plugin: RunTab, dispatch: React.Dispatch<any>, contr
}
}
)
}
}
export const getContext = (plugin: RunTab) => {
return plugin.blockchain.context()

@ -17,9 +17,9 @@ export const getDirectory = async (dir: string, plugin: any) => {
}
}
return result
}
}
const normalize = filesList => {
const normalize = filesList => {
const folders = []
const files = []
Object.keys(filesList || {}).forEach(key => {
@ -36,7 +36,7 @@ export const getDirectory = async (dir: string, plugin: any) => {
}
})
return [...folders, ...files]
}
}
export const findLinesInStringWithMatch = (str: string, re: RegExp) => {
return str

@ -44,7 +44,7 @@ export const compilation = (analysisModule: AnalysisTab,
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export async function run (lastCompilationResult, lastCompilationSource, currentFile: string, state: RemixUiStaticAnalyserState, props: RemixUiStaticAnalyserProps, isSupportedVersion, showSlither, categoryIndex: number[], groupedModules, runner, _paq, message, showWarnings, allWarnings: React.RefObject<any>, warningContainer: React.RefObject<any>, calculateWarningStateEntries: (e:[string, any][]) => {length: number, errors: any[] }, warningState, setHints: React.Dispatch<React.SetStateAction<SolHintReport[]>>, hints: SolHintReport[], setSlitherWarnings: React.Dispatch<React.SetStateAction<any[]>>, setSsaWarnings: React.Dispatch<React.SetStateAction<any[]>>,
slitherEnabled: boolean, setStartAnalysis: React.Dispatch<React.SetStateAction<boolean>>, solhintEnabled: boolean, basicEnabled: boolean) {
slitherEnabled: boolean, setStartAnalysis: React.Dispatch<React.SetStateAction<boolean>>, solhintEnabled: boolean, basicEnabled: boolean) {
setStartAnalysis(true)
setHints([])
setSsaWarnings([])

@ -265,7 +265,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
) : (
<span> </span>
)
}
}
<span className="" title={Position in ${fileName}}>Pos: ${locationString}</span>
</span>`;
};

@ -106,7 +106,7 @@ const MenuForLinks = ({
)
}
function ClickOutside(ref: React.MutableRefObject<HTMLElement>, hideFn: () => void) {
function ClickOutside(ref: React.MutableRefObject<HTMLElement>, hideFn: () => void) {
useEffect(() => {
function handleClickOutside(event: any) {
if (ref.current && !ref.current.contains(event.target)) {

@ -48,10 +48,10 @@ export function HamburgerMenuItem (props: HamburgerMenuItemProps) {
</Dropdown.Item>
</>
)
}
}
// keeping the following for a later use:
export function NavHamburgerMenuItem (props: HamburgerMenuItemProps) {
// keeping the following for a later use:
export function NavHamburgerMenuItem (props: HamburgerMenuItemProps) {
const { hideOption } = props
const uid = 'workspace' + props.kind
return (
@ -87,15 +87,15 @@ export function HamburgerMenuItem (props: HamburgerMenuItemProps) {
</NavDropdown.Item>
</>
)
}
}
export interface HamburgerSubMenuItemProps {
export interface HamburgerSubMenuItemProps {
id: string
title: string
subMenus: Array<HamburgerMenuItemProps>
}
export function HamburgerSubMenuItem (props: HamburgerSubMenuItemProps) {
export function HamburgerSubMenuItem (props: HamburgerSubMenuItemProps) {
return (
<>
<NavDropdown
@ -110,4 +110,4 @@ export function HamburgerMenuItem (props: HamburgerMenuItemProps) {
</NavDropdown>
</>
)
}
}

@ -82,10 +82,10 @@ export function HamburgerMenu (props: HamburgerMenuProps) {
}}></HamburgerMenuItem>
</>
)
}
}
// keep for later use
/*<HamburgerSubMenuItem
// keep for later use
/*<HamburgerSubMenuItem
id="web3-script-menu"
title="Web3 Scripts"
subMenus={[

@ -46,6 +46,6 @@ export const FileSystemContext = createContext<{
dispatchCreateTsSolGithubAction: () => Promise<void>,
dispatchCreateSlitherGithubAction: () => Promise<void>
dispatchCreateHelperScripts: (script: string) => Promise<void>
}>(null)
}>(null)

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) {
console.log(e.message)
}
})()
})()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) {
console.log(e.message)
}
})()
})()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) {
console.log(e.message)
}
})()
})()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) {
console.log(e.message)
}
})()
})()

@ -11,4 +11,4 @@ import { deploy } from './ethers-lib'
} catch (e) {
console.log(e.message)
}
})()
})()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) {
console.log(e.message)
}
})()
})()

@ -12,7 +12,7 @@ console.log(Object.keys(projects.graph.nodes))
for(let node of Object.keys(projects.graph.nodes)){
if(projects.graph.nodes[node].data.targets.lint){
console.log(projects.graph.nodes[node].data.name)
const result = spawnSync('yarn', ['lint', projects.graph.nodes[node].data.name], '--fix')
const result = spawnSync('yarn', ['lint', projects.graph.nodes[node].data.name, '--fix'])
if(result.status == 0){
console.log('success')
}else{

@ -1,3 +0,0 @@
yarn nx run remix-ui:lint --fix
yarn nx run remix-ide:lint --fix

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save