Run linting in circleci

pull/5370/head
ioedeveloper 4 years ago
parent cc9e0ab19a
commit 93ae21fce9
  1. 29
      apps/remix-ide/src/app/ui/modaldialog.js
  2. 1
      libs/remix-ui/debugger-ui/src/lib/tx-browser/tx-browser.tsx
  3. 4
      libs/remix-ui/modal-dialog/src/index.ts
  4. 3
      libs/remix-ui/modal-dialog/src/lib/modal-dialog-custom.tsx
  5. 3
      libs/remix-ui/modal-dialog/src/lib/types/index.ts
  6. 2
      package.json

@ -130,22 +130,21 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => {
function html (opts) { function html (opts) {
return yo` return yo`
<div id="modal-dialog" data-id="modalDialogContainer" data-backdrop="static" data-keyboard="false" class="modal" tabindex="-1" role="dialog"> <div id="modal-dialog" data-id="modalDialogContainer" data-backdrop="static" data-keyboard="false" class="modal" tabindex="-1" role="dialog">
<div id="modal-background" class="modal-dialog" role="document"> <div id="modal-background" class="modal-dialog" role="document">
<div class="modal-content ${css.modalContent} ${opts.class}"> <div class="modal-content ${css.modalContent} ${opts.class}">
<div class="modal-header"> <div class="modal-header">
<h6 class="modal-title" data-id="modalDialogModalTitle"></h6> <h6 class="modal-title" data-id="modalDialogModalTitle"></h6>
<span class="modal-close"> <span class="modal-close">
<i id="modal-close" title="Close" class="fas fa-times" aria-hidden="true"></i> <i id="modal-close" title="Close" class="fas fa-times" aria-hidden="true"></i>
</span> </span>
</div> </div>
<div class="modal-body ${css.modalBody}" data-id="modalDialogModalBody"> - </div> <div class="modal-body ${css.modalBody}" data-id="modalDialogModalBody"> - </div>
<div class="modal-footer" data-id="modalDialogModalFooter" autofocus> <div class="modal-footer" data-id="modalDialogModalFooter" autofocus>
<span id="modal-footer-ok" class="${css.modalFooterOk} modal-ok btn btn-sm btn-light" tabindex='5'>OK</span> <span id="modal-footer-ok" class="${css.modalFooterOk} modal-ok btn btn-sm btn-light" tabindex='5'>OK</span>
<span id="modal-footer-cancel" class="${css.modalFooterCancel} modal-cancel btn btn-sm btn-light" tabindex='10' data-dismiss="modal">Cancel</span> <span id="modal-footer-cancel" class="${css.modalFooterCancel} modal-cancel btn btn-sm btn-light" tabindex='10' data-dismiss="modal">Cancel</span>
</div>
</div> </div>
</div> </div>
</div> </div>
` </div>`
} }

@ -22,6 +22,7 @@ export const TxBrowser = ({ requestDebug, unloadRequested, transactionNumber, de
requestDebug(undefined, state.txNumber) requestDebug(undefined, state.txNumber)
} }
} }
const unload = () => { const unload = () => {
unloadRequested() unloadRequested()
} }

@ -1,2 +1,2 @@
export * from './lib/modal-dialog-custom'; export * from './lib/modal-dialog-custom'
export * from './lib/remix-ui-modal-dialog'; export * from './lib/remix-ui-modal-dialog'

@ -1,4 +1,4 @@
import React from 'react' import React from 'react' // eslint-disable-line
import './modal-dialog-custom.css' import './modal-dialog-custom.css'
@ -6,7 +6,6 @@ import './modal-dialog-custom.css'
export interface ModalDialogCustomProps {} export interface ModalDialogCustomProps {}
export const ModalDialogCustom = (props: ModalDialogCustomProps) => { export const ModalDialogCustom = (props: ModalDialogCustomProps) => {
return ( return (
<div> <div>
<h1>Welcome to modal-dialog-custom!</h1> <h1>Welcome to modal-dialog-custom!</h1>

@ -1,4 +1,3 @@
/* eslint-disable */
export interface ModalDialogProps { export interface ModalDialogProps {
title?: string, title?: string,
content?: JSX.Element, content?: JSX.Element,
@ -7,4 +6,4 @@ export interface ModalDialogProps {
focusSelector?: string, focusSelector?: string,
opts?: {class: string, hideClose?: boolean}, opts?: {class: string, hideClose?: boolean},
hide: () => void hide: () => void
} }

@ -41,7 +41,7 @@
"workspace-schematic": "nx workspace-schematic", "workspace-schematic": "nx workspace-schematic",
"dep-graph": "nx dep-graph", "dep-graph": "nx dep-graph",
"help": "nx help", "help": "nx help",
"lint:libs": "nx run-many --target=lint --projects=remixd", "lint:libs": "nx run-many --target=lint --projects=remixd,remix-ui-modal-dialog",
"build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd", "build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd",
"test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd", "test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd",
"publish:libs": "npm run build:libs & lerna publish --skip-git & npm run bumpVersion:libs", "publish:libs": "npm run build:libs & lerna publish --skip-git & npm run bumpVersion:libs",

Loading…
Cancel
Save