1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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",
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"react/jsx-curly-brace-presence": [2, { "props": "never", "children": "never" }],
"react/jsx-equals-spacing": 2,
"react/no-deprecated": 0,
"react/default-props-match-prop-types": 2,
"semi": [2, "never"],

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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