mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Disallow spaces around the equal sign in JSX (#7459)
This commit is contained in:
parent
f1384e7522
commit
51bfe56510
@ -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"],
|
||||
|
@ -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"
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
@ -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>
|
||||
)
|
||||
|
@ -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}
|
||||
/>)
|
||||
})
|
||||
|
||||
|
@ -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"
|
||||
/>)
|
||||
})
|
||||
|
||||
|
@ -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"
|
||||
/>)
|
||||
})
|
||||
|
||||
|
@ -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}
|
||||
/>)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user