summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/.prettierrc.js7
-rw-r--r--frontend/src/components/DeckyToaster.tsx2
2 files changed, 5 insertions, 4 deletions
diff --git a/frontend/.prettierrc.js b/frontend/.prettierrc.js
index 01727ff9..7a0331c8 100644
--- a/frontend/.prettierrc.js
+++ b/frontend/.prettierrc.js
@@ -1,9 +1,10 @@
-module.exports = {
+import importSort from 'prettier-plugin-import-sort';
+export default {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
endOfLine: 'auto',
- plugins: [require('prettier-plugin-import-sort')],
-};
+ plugins: [importSort],
+} \ No newline at end of file
diff --git a/frontend/src/components/DeckyToaster.tsx b/frontend/src/components/DeckyToaster.tsx
index 5302b89c..7a51943b 100644
--- a/frontend/src/components/DeckyToaster.tsx
+++ b/frontend/src/components/DeckyToaster.tsx
@@ -1,6 +1,6 @@
import type { ToastData } from '@decky/api';
import { joinClassNames } from '@decky/ui';
-import { FC, useEffect, useState, ReactElement } from 'react';
+import { FC, ReactElement, useEffect, useState } from 'react';
import { useDeckyToasterState } from './DeckyToasterState';
import Toast, { toastClasses } from './Toast';