mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Lint more
This commit is contained in:
parent
9f34078f30
commit
d23940dea8
@ -1 +1,3 @@
|
||||
dist
|
||||
json/disks/index.js
|
||||
node_modules
|
||||
|
30
bin/index
30
bin/index
@ -27,22 +27,22 @@ for (const fileName of dir.sort()) {
|
||||
}
|
||||
|
||||
index.sort((x,y) => {
|
||||
const xc = x.category.toLowerCase();
|
||||
const yc = y.category.toLowerCase();
|
||||
const xn = x.name.toLowerCase();
|
||||
const yn = y.name.toLowerCase();
|
||||
const xc = x.category.toLowerCase();
|
||||
const yc = y.category.toLowerCase();
|
||||
const xn = x.name.toLowerCase();
|
||||
const yn = y.name.toLowerCase();
|
||||
|
||||
if (xc < yc) {
|
||||
return -1;
|
||||
} else if (xc > yc) {
|
||||
return 1;
|
||||
} else if (xn < yn) {
|
||||
return -1;
|
||||
} else if (xn > yn) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
if (xc < yc) {
|
||||
return -1;
|
||||
} else if (xc > yc) {
|
||||
return 1;
|
||||
} else if (xn < yn) {
|
||||
return -1;
|
||||
} else if (xn > yn) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
|
||||
fs.writeFileSync(
|
||||
|
@ -6,7 +6,7 @@
|
||||
"build": "webpack --mode=production",
|
||||
"dev": "webpack-dev-server",
|
||||
"index": "scripts/index.pl > json/disks/index.js",
|
||||
"lint": "eslint js",
|
||||
"lint": "eslint .",
|
||||
"start": "webpack-dev-server",
|
||||
"test": "jest"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user