1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

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

This commit is contained in:
Whymarrh Whitby 2019-11-18 14:19:03 -03:30 committed by GitHub
parent f1384e7522
commit 51bfe56510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 32 deletions

View File

@ -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"],

View File

@ -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"
/> />
) )
}) })

View File

@ -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>
) )

View File

@ -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}
/>) />)
}) })

View File

@ -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"
/>) />)
}) })

View File

@ -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"
/>) />)
}) })

View File

@ -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}
/>) />)
}) })