Curly brace spacing

This commit is contained in:
Matt Isenhower 2024-03-17 10:22:25 -07:00
parent 37ee0c4dc9
commit d1c3480db7
6 changed files with 6 additions and 5 deletions

View File

@ -16,6 +16,7 @@ module.exports = {
'no-unused-vars': ['warn', { 'args': 'none' }],
'semi': 'warn',
'quotes': ['warn' , 'single'],
'object-curly-spacing': ['warn', 'always'],
// Vue
'vue/multi-word-component-names': 'off',

View File

@ -41,7 +41,7 @@ export default class EggstraWorkStatus extends StatusGenerator
async _getMedia(screenshotHelper) {
let media = new Media;
media.file = await screenshotHelper.capture('salmonrun', {
params: {eggstra: 'true'},
params: { eggstra: 'true' },
});
return media;

View File

@ -39,7 +39,7 @@ function toRgba(color) {
return `rgba(${color.r * 255}, ${color.g * 255}, ${color.b * 255}, ${color.a})`;
}
const _default = {r: 1, g: 1, b: 1, a: 1};
const _default = { r: 1, g: 1, b: 1, a: 1 };
const a_css = computed(() => toRgba(props.a ?? _default));
const b_css = computed(() => toRgba(props.b ?? _default));

View File

@ -57,7 +57,7 @@ function defineSplatfestRegionStore(region) {
// TODO: Eventually this needs to be handled on a per-region basis.
const tricolor = computed(() => {
let {currentFest: fest, vsStages} = useSchedulesDataStore().data ?? {};
let { currentFest: fest, vsStages } = useSchedulesDataStore().data ?? {};
if (!fest) {
return null;

View File

@ -56,7 +56,7 @@
<script setup>
import { computed } from 'vue';
import {uniqBy} from 'lodash';
import { uniqBy } from 'lodash';
import ScheduleBox from '../components/ScheduleBox.vue';
import TricolorBox from '../components/TricolorBox.vue';
import SplatfestBox from '../components/SplatfestBox.vue';

View File

@ -26,7 +26,7 @@
<script setup>
import { computed } from 'vue';
import {uniqBy} from 'lodash';
import { uniqBy } from 'lodash';
import ScreenshotLayout from '../../layouts/ScreenshotLayout.vue';
import ScreenshotScheduleBox from '../../components/screenshots/ScreenshotScheduleBox.vue';
import ScreenshotTricolorBox from '../../components/screenshots/ScreenshotTricolorBox.vue';