Fiddle with prettier

This commit is contained in:
Will Scullin 2023-12-18 12:04:20 -08:00
parent 52b75485c5
commit 64f2a95759
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD
16 changed files with 32 additions and 25 deletions

5
.prettierrc Normal file
View File

@ -0,0 +1,5 @@
{
"bracketSpacing": false,
"semi": true,
"singleQuote": true
}

View File

@ -272,7 +272,8 @@ declare global {
let _key: byte;
function _keydown(evt: KeyboardEvent) {
const F1 = 112, F2 = 113;
const F1 = 112,
F2 = 113;
if (evt.keyCode === F1) {
cpu.reset();
} else if (evt.keyCode === F2) {

View File

@ -1,3 +1,3 @@
import * as Apple1 from "./apple1";
import * as Apple1 from './apple1';
window.Apple1 = Apple1;

View File

@ -7,6 +7,7 @@
"build": "webpack --mode=production",
"dev": "webpack-dev-server",
"lint": "eslint js",
"lint-fix": "eslint --fix js",
"start": "webpack-dev-server",
"test": "jest"
},