mirror of
https://github.com/whscullin/apple1js.git
synced 2024-06-14 20:29:30 +00:00
Fiddle with prettier
This commit is contained in:
parent
52b75485c5
commit
64f2a95759
5
.prettierrc
Normal file
5
.prettierrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"bracketSpacing": false,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": true
|
||||||
|
}
|
|
@ -272,7 +272,8 @@ declare global {
|
||||||
|
|
||||||
let _key: byte;
|
let _key: byte;
|
||||||
function _keydown(evt: KeyboardEvent) {
|
function _keydown(evt: KeyboardEvent) {
|
||||||
const F1 = 112, F2 = 113;
|
const F1 = 112,
|
||||||
|
F2 = 113;
|
||||||
if (evt.keyCode === F1) {
|
if (evt.keyCode === F1) {
|
||||||
cpu.reset();
|
cpu.reset();
|
||||||
} else if (evt.keyCode === F2) {
|
} else if (evt.keyCode === F2) {
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
import * as Apple1 from "./apple1";
|
import * as Apple1 from './apple1';
|
||||||
|
|
||||||
window.Apple1 = Apple1;
|
window.Apple1 = Apple1;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"build": "webpack --mode=production",
|
"build": "webpack --mode=production",
|
||||||
"dev": "webpack-dev-server",
|
"dev": "webpack-dev-server",
|
||||||
"lint": "eslint js",
|
"lint": "eslint js",
|
||||||
|
"lint-fix": "eslint --fix js",
|
||||||
"start": "webpack-dev-server",
|
"start": "webpack-dev-server",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user