Skip to content

Commit 64948fb

Browse files
committed
Update Prettier formatting choices
"all" trailing commas have been supported since 2017
1 parent 4259097 commit 64948fb

8 files changed

+15
-12
lines changed

.prettierrc

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2+
"bracketSpacing": true,
23
"printWidth": 120,
3-
"trailingComma": "es5",
4-
"tabWidth": 2,
4+
"quoteProps": "consistent",
55
"semi": true,
6-
"singleQuote": true
6+
"singleQuote": true,
7+
"tabWidth": 2,
8+
"trailingComma": "all",
9+
"useTabs": false
710
}

js/ace/complete-gbz80.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1109,14 +1109,14 @@ var gbz80Completer = {
11091109
null,
11101110
gbz80CompleterInstructions.filter(function (c) {
11111111
return c.value.startsWith(prefix.toLowerCase());
1112-
})
1112+
}),
11131113
);
11141114
} else {
11151115
callback(
11161116
null,
11171117
gbz80CompleterConstants.filter(function (c) {
11181118
return c.value.toLowerCase().startsWith(prefix.toLowerCase());
1119-
})
1119+
}),
11201120
);
11211121
}
11221122
},

js/compiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function buildDone(rom_file, map_file) {
268268
space +
269269
' (' +
270270
((space / total) * 100).toFixed(1) +
271-
'%)'
271+
'%)',
272272
);
273273
}
274274
}

js/emulator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function processAudioBuffer() {
196196
var input_buffer = new Uint8Array(
197197
Module.HEAP8.buffer,
198198
Module._get_audio_buffer_ptr(e),
199-
Module._get_audio_buffer_capacity(e)
199+
Module._get_audio_buffer_capacity(e),
200200
);
201201
const volume = 0.5;
202202
const buffer = audio_ctx.createBuffer(2, audio_buffer_size, audio_ctx.sampleRate);

js/gbz80.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ for (var key in gameboy_hardware_constants) {
763763
if (gameboy_hardware_constants[key].alias) {
764764
gameboy_hardware_constants[gameboy_hardware_constants[key].alias] = Object.assign(
765765
{},
766-
gameboy_hardware_constants[key]
766+
gameboy_hardware_constants[key],
767767
);
768768
gameboy_hardware_constants[gameboy_hardware_constants[key].alias].alias = key;
769769
}

js/text-editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function updateCpuLine(scroll_to_line) {
134134
cpu_line_marker = editors[0].session.addMarker(
135135
new ace.Range(cpu_line_line_nr - 1, 0, cpu_line_line_nr - 1, 1),
136136
'cpuLineMarker',
137-
'fullLine'
137+
'fullLine',
138138
);
139139
if (scroll_to_line) editors[0].scrollToLine(cpu_line_line_nr - 1, true, false, function () {});
140140
}

tracker/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
e.preventDefault();
7474
e.stopPropagation();
7575
},
76-
false
76+
false,
7777
);
7878
});
7979
document.body.addEventListener(
@@ -87,7 +87,7 @@
8787
ui.instruments.updateInstrumentList();
8888
});
8989
},
90-
false
90+
false,
9191
);
9292

9393
player = new Player();

tracker/js/player.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Player {
2424
getFile('https://raw.githubusercontent.com/untoxa/hUGEBuild/master/include/hUGE.inc', 'hUGE.inc');
2525
getFile(
2626
'https://raw.githubusercontent.com/untoxa/hUGEBuild/master/include/hUGE_note_table.inc',
27-
'hUGE_note_table.inc'
27+
'hUGE_note_table.inc',
2828
);
2929
getFile('https://raw.githubusercontent.com/untoxa/hUGEBuild/master/include/HARDWARE.INC', 'HARDWARE.INC');
3030
storage.update('song.asm', 'SECTION "song", ROM0[$1000]\n_song_descriptor:: ds $8000 - @');

0 commit comments

Comments
 (0)