mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Linting
This commit is contained in:
parent
f7b8691a50
commit
3cc2818f40
3 changed files with 21 additions and 13 deletions
|
|
@ -7,6 +7,11 @@ module.exports = {
|
||||||
'standard',
|
'standard',
|
||||||
'standard-preact'
|
'standard-preact'
|
||||||
],
|
],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.jsx', '*.js']
|
||||||
|
}
|
||||||
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 12,
|
ecmaVersion: 12,
|
||||||
sourceType: 'module'
|
sourceType: 'module'
|
||||||
|
|
@ -15,7 +20,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
react: {
|
react: {
|
||||||
version: 'latest',
|
version: 'latest'
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,12 @@ const parseInbox = (inbox, currentWindow) => {
|
||||||
inbox.find(({ id }) =>
|
inbox.find(({ id }) =>
|
||||||
id === currentWindow.id)
|
id === currentWindow.id)
|
||||||
|
|
||||||
if (!currentInbox) return {
|
if (!currentInbox) {
|
||||||
|
return {
|
||||||
clear: false,
|
clear: false,
|
||||||
incoming: []}
|
incoming: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const { clear, text: inboxMessagesRaw } =
|
const { clear, text: inboxMessagesRaw } =
|
||||||
currentInbox
|
currentInbox
|
||||||
|
|
@ -48,7 +51,7 @@ export default function ({ inbox, currentWindow }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{messages?.map(({text}) =>
|
{messages.map(({ text }) =>
|
||||||
(<div>{text}</div>))}
|
(<div>{text}</div>))}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue