mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
eslint: add braces rule
This commit is contained in:
parent
9f41e076ed
commit
382211ab95
5 changed files with 9 additions and 5 deletions
|
|
@ -30,6 +30,10 @@ module.exports = {
|
|||
'error',
|
||||
'unix'
|
||||
],
|
||||
'object-curly-spacing': [
|
||||
'error',
|
||||
'always'
|
||||
],
|
||||
'quotes': [
|
||||
'error',
|
||||
'single'
|
||||
|
|
|
|||
|
|
@ -52,10 +52,10 @@ export default function GridBuffer ({ inbox, currentWindow }) {
|
|||
|
||||
const isEmpty =
|
||||
rawMessagesContent
|
||||
.map(({text}) => text.length)
|
||||
.map(({ text }) => text.length)
|
||||
.every((l) => l === 0)
|
||||
|
||||
const getGridStyle = ({style}) => {
|
||||
const getGridStyle = ({ style }) => {
|
||||
if (['alert', 'normal'].includes(style)) return 'grid'
|
||||
return style || 'grid'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {
|
|||
const windowLocation = () =>
|
||||
window.location.hash.replace('#', '') || '/'
|
||||
|
||||
export const buildPlayLinkHref = ({url}) =>
|
||||
export const buildPlayLinkHref = ({ url }) =>
|
||||
`/#/play/${encodeURIComponent(url)}`
|
||||
|
||||
export const extractView = (location) => {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const monkeyTypesThemes = [
|
|||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
|
||||
const names = monkeyTypesThemes
|
||||
.map(({name}) => `'${name}',`).join('\n')
|
||||
.map(({ name }) => `'${name}',`).join('\n')
|
||||
|
||||
const css = monkeyTypesThemes
|
||||
.map((theme) => [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { useState } from 'preact/hooks'
|
||||
|
||||
import {themes} from './themeList.js'
|
||||
import { themes } from './themeList.js'
|
||||
import './themes.css'
|
||||
|
||||
const LS_THEME_KEY = 'elseifplayer/theme'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue