Skip to content

Commit b0d9f08

Browse files
authored
Update prettier (#371)
* Update package.json * Update yarn.lock * Update .prettierrc * Update App.js
1 parent 7a7c12c commit b0d9f08

4 files changed

Lines changed: 26 additions & 22 deletions

File tree

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"useTabs": false,
1414
"semi": true,
1515
"bracketSpacing": true,
16-
"jsxBracketSameLine": false
16+
"bracketSameLine": false
1717
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"electron-webpack": "^2.8.2",
113113
"nodemon": "^3.1.10",
114114
"npm-run-all": "^4.1.5",
115-
"prettier": "^2.8.8",
115+
"prettier": "^3.6.2",
116116
"shx": "^0.4.0",
117117
"typescript": "^5.8.3",
118118
"wait-on": "^8.0.3"

src/app/App.js

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import ModifiedDialog from './components/ModifiedDialog';
3737

3838
import './App.css';
3939

40-
const useStyles = makeStyles(theme => ({
40+
const useStyles = makeStyles((theme) => ({
4141
App: {
4242
display: 'flex',
4343
flexDirection: 'column',
@@ -89,21 +89,19 @@ const useStyles = makeStyles(theme => ({
8989
backgroundColor: theme.palette.input.background,
9090
},
9191
Toolbar: {
92-
minHeight: 0
92+
minHeight: 0,
9393
},
9494
tab: {
9595
display: 'flex',
9696
alignItems: 'center',
9797
padding: '0 40px',
98-
position: 'relative'
98+
position: 'relative',
9999
},
100100
tabChip: {
101101
border: 'none',
102102
},
103-
tabIcon: {
104-
},
105-
leftPanel: {
106-
},
103+
tabIcon: {},
104+
leftPanel: {},
107105
rightPanel: {
108106
borderLeft: '1px solid #ccc',
109107
},
@@ -190,7 +188,7 @@ const useStyles = makeStyles(theme => ({
190188
display: 'flex',
191189
alignItems: 'center',
192190
justifyContent: 'center',
193-
}
191+
},
194192
}));
195193

196194
const App = () => {
@@ -224,7 +222,7 @@ const App = () => {
224222
));
225223

226224
function fileModifiedSnack(run) {
227-
let message = "Something happened"
225+
let message = 'Something happened';
228226
if (run.converted) {
229227
message = `Converted your ${run.convertedAlignmentFrom} alignment into fasta!`;
230228
}
@@ -391,10 +389,18 @@ const App = () => {
391389
<IconButton
392390
onClick={() => store.config.setDarkMode(!store.config.isDarkMode)}
393391
size="small"
394-
title={store.config.isDarkMode ? 'Switch to Light Mode' : 'Switch to Dark Mode'}
392+
title={
393+
store.config.isDarkMode
394+
? 'Switch to Light Mode'
395+
: 'Switch to Dark Mode'
396+
}
395397
sx={{ mr: 2, color: 'inherit' }}
396398
>
397-
{store.config.isDarkMode ? <LightModeIcon fontSize="small" /> : <DarkModeIcon fontSize="small" />}
399+
{store.config.isDarkMode ? (
400+
<LightModeIcon fontSize="small" />
401+
) : (
402+
<DarkModeIcon fontSize="small" />
403+
)}
398404
</IconButton>
399405
<Box display="flex">
400406
{/* In dev mode the app version shown is from electron, in production it is ours */}
@@ -437,11 +443,9 @@ const App = () => {
437443
severity={run.exitCode === 0 ? 'success' : 'info'}
438444
sx={{ width: '100%' }}
439445
>
440-
{
441-
run.exitCode === 0
442-
? 'Calculation finished!'
443-
: `Calculation cancelled!`
444-
}
446+
{run.exitCode === 0
447+
? 'Calculation finished!'
448+
: `Calculation cancelled!`}
445449
</Alert>
446450
</Snackbar>
447451
{fileModifiedSnack(run)}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12334,10 +12334,10 @@ prepend-http@^2.0.0:
1233412334
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
1233512335
integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==
1233612336

12337-
prettier@^2.8.8:
12338-
version "2.8.8"
12339-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
12340-
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
12337+
prettier@^3.6.2:
12338+
version "3.6.2"
12339+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
12340+
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
1234112341

1234212342
pretty-bytes@^4.0.2:
1234312343
version "4.0.2"

0 commit comments

Comments
 (0)