Disallow spaces around the equal sign in JSX (#7459)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent f1384e7522
commit 51bfe56510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .eslintrc
  2. 12
      ui/app/components/app/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js
  3. 6
      ui/app/components/app/dropdowns/tests/dropdown.test.js
  4. 12
      ui/app/components/app/dropdowns/tests/menu.test.js
  5. 8
      ui/app/components/app/dropdowns/tests/network-dropdown-icon.test.js
  6. 12
      ui/app/components/ui/page-container/page-container-footer/tests/page-container-footer.component.test.js
  7. 14
      ui/app/components/ui/page-container/page-container-header/tests/page-container-header.component.test.js

@ -149,6 +149,7 @@
"padded-blocks": "off", "padded-blocks": "off",
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}], "quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"react/jsx-curly-brace-presence": [2, { "props": "never", "children": "never" }], "react/jsx-curly-brace-presence": [2, { "props": "never", "children": "never" }],
"react/jsx-equals-spacing": 2,
"react/no-deprecated": 0, "react/no-deprecated": 0,
"react/default-props-match-prop-types": 2, "react/default-props-match-prop-types": 2,
"semi": [2, "never"], "semi": [2, "never"],

@ -17,12 +17,12 @@ describe('Confirm Detail Row Component', function () {
errorType="mockErrorType" errorType="mockErrorType"
label="mockLabel" label="mockLabel"
showError={false} showError={false}
primaryText = "mockFiatText" primaryText="mockFiatText"
secondaryText = "mockEthText" secondaryText="mockEthText"
primaryValueTextColor= "mockColor" primaryValueTextColor="mockColor"
onHeaderClick= {propsMethodSpies.onHeaderClick} onHeaderClick={propsMethodSpies.onHeaderClick}
headerText = "mockHeaderText" headerText="mockHeaderText"
headerTextClassName = "mockHeaderClass" headerTextClassName="mockHeaderClass"
/> />
) )
}) })

@ -12,9 +12,9 @@ describe('Dropdown', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallow( wrapper = shallow(
<DropdownMenuItem <DropdownMenuItem
onClick = {onClickSpy} onClick={onClickSpy}
style = {{test: 'style'}} style={{test: 'style'}}
closeMenu = {closeMenuSpy} closeMenu={closeMenuSpy}
> >
</DropdownMenuItem> </DropdownMenuItem>
) )

@ -11,7 +11,7 @@ describe('Dropdown Menu Components', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallow( wrapper = shallow(
<Menu className = "Test Class" isShowing = {true}/> <Menu className="Test Class" isShowing={true}/>
) )
}) })
@ -29,10 +29,10 @@ describe('Dropdown Menu Components', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallow( wrapper = shallow(
<Item <Item
icon = "test icon" icon="test icon"
text = "test text" text="test text"
className = "test className" className="test className"
onClick = {onClickSpy} onClick={onClickSpy}
/> />
) )
}) })
@ -74,7 +74,7 @@ describe('Dropdown Menu Components', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallow(<CloseArea wrapper = shallow(<CloseArea
onClick = {onClickSpy} onClick={onClickSpy}
/>) />)
}) })

@ -8,10 +8,10 @@ describe('Network Dropdown Icon', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallow(<NetworkDropdownIcon wrapper = shallow(<NetworkDropdownIcon
backgroundColor = "red" backgroundColor="red"
isSelected = {false} isSelected={false}
innerBorder = "none" innerBorder="none"
diameter = "12" diameter="12"
/>) />)
}) })

@ -12,12 +12,12 @@ describe('Page Footer', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallow(<PageFooter wrapper = shallow(<PageFooter
onCancel = {onCancel} onCancel={onCancel}
onSubmit = {onSubmit} onSubmit={onSubmit}
cancelText = "Cancel" cancelText="Cancel"
submitText = "Submit" submitText="Submit"
disabled = {false} disabled={false}
submitButtonType = "Test Type" submitButtonType="Test Type"
/>) />)
}) })

@ -13,13 +13,13 @@ describe('Page Container Header', () => {
onClose = sinon.spy() onClose = sinon.spy()
wrapper = shallow(<PageContainerHeader wrapper = shallow(<PageContainerHeader
showBackButton = {true} showBackButton={true}
onBackButtonClick = {onBackButtonClick} onBackButtonClick={onBackButtonClick}
backButtonStyles = {style} backButtonStyles={style}
title = "Test Title" title="Test Title"
subtitle = "Test Subtitle" subtitle="Test Subtitle"
tabs = "Test Tab" tabs="Test Tab"
onClose = {onClose} onClose={onClose}
/>) />)
}) })

Loading…
Cancel
Save