Compare commits

...

4 Commits

Author SHA1 Message Date
Will Scullin 18f2fc7acf
Merge pull request #47 from whscullin/whscullin/unprintable
Ignore unprintable characters
2023-12-18 14:28:48 -08:00
Will Scullin 851f19ddfb
Ignore unprintable characters 2023-12-18 14:13:06 -08:00
Will Scullin e860001ea9
Merge pull request #46 from whscullin/whscullin/prettier-tweaks
Fiddle with prettier
2023-12-18 13:47:30 -08:00
Will Scullin 64f2a95759
Fiddle with prettier 2023-12-18 12:04:20 -08:00
16 changed files with 33 additions and 26 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

@ -78,7 +78,7 @@ export class TextPage {
}
this._col = 0;
this._row++;
} else {
} else if (val >= 0x20) {
this._buffer[this._row][this._col] = val;
this._col++;
if (this._col > 39) {

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"
},