Skip to content

Commit d27ee59

Browse files
authored
Improve jsx linting (#63)
1 parent 4caa95f commit d27ee59

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
'react/jsx-indent': 'error',
3333
'react/jsx-indent-props': [2, 2],
3434
'cypress/no-unnecessary-waiting': 'off',
35-
'react/prop-types': 'off'
35+
'react/prop-types': 'off',
36+
'react/jsx-closing-bracket-location': [2, 'tag-aligned']
3637
}
3738
}

admin/src/components/Collections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const Collections = ({ updateCredentials }) => {
104104
onSelect={(row) => {
105105
addOrRemoveCollection(row)
106106
}}
107-
/>
107+
/>
108108
</Wrapper>
109109
</div>
110110
)

admin/src/containers/HomePage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const HomePage = () => {
2222
label: formatMessage({ id: getTrad('plugin.name') })
2323
}}
2424
content={formatMessage({ id: getTrad('header.description') })}
25-
/>
25+
/>
2626
<Credentials setUpdatedCredentials={setUpdatedCredentials} />
2727
<Collections updateCredentials={updateCredentials} />
2828
</div>

0 commit comments

Comments
 (0)