Add prettier, and fix some CSS/line errors.

This commit is contained in:
David Edmondson 2021-09-04 13:18:08 -07:00
parent 2d322e7a6a
commit 1e42f73e2a
16 changed files with 111 additions and 108 deletions

@ -3,6 +3,4 @@ doc/build/
dist/ dist/
tests/*.bundle.* tests/*.bundle.*
src/ThirdParty/* src/ThirdParty/*
src/ScriptEditor/CodeMirrorNetscriptMode.js
src/ScriptEditor/CodeMirrorNetscriptLint.js
src/JSInterpreter.js src/JSInterpreter.js

@ -69,29 +69,9 @@ module.exports = {
"class-methods-use-this": [ "class-methods-use-this": [
"off", "off",
], ],
"comma-dangle": [
"error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
},
],
"comma-spacing": [
"off",
],
"comma-style": [
"error",
"last",
],
"complexity": [ "complexity": [
"off", "off",
], ],
"computed-property-spacing": [
"off",
"never",
],
"consistent-return": [ "consistent-return": [
"off", "off",
], ],
@ -107,10 +87,6 @@ module.exports = {
"default-case": [ "default-case": [
"off", "off",
], ],
"dot-location": [
"error",
"property",
],
"dot-notation": [ "dot-notation": [
"off", "off",
], ],
@ -139,10 +115,6 @@ module.exports = {
"function-paren-newline": [ "function-paren-newline": [
"off", "off",
], ],
"generator-star-spacing": [
"error",
"before",
],
"getter-return": [ "getter-return": [
"error", "error",
{ {
@ -180,9 +152,6 @@ module.exports = {
"init-declarations": [ "init-declarations": [
"off", "off",
], ],
"jsx-quotes": [
"error",
],
"key-spacing": [ "key-spacing": [
"off", "off",
], ],

4
.prettierignore Normal file

@ -0,0 +1,4 @@
node_modules
package.json
dist
doc/build/

4
.prettierrc Normal file

@ -0,0 +1,4 @@
{
"trailingComma": "all",
"tabWidth": 2
}

@ -4,14 +4,14 @@
background-color: white; background-color: white;
display: inline-block; display: inline-block;
border-radius: 10px; border-radius: 10px;
font-size: 14pt; font-size: 18.5px;
text-align: center; text-align: center;
margin: 3px; margin: 3px;
font-weight: bold; font-weight: bold;
} }
.casino-card .value { .casino-card .value {
font-size: 15pt; font-size: 20px;
font-family: sans-serif; font-family: sans-serif;
} }

@ -2,7 +2,7 @@
.blinking-cursor { .blinking-cursor {
font-weight: 100; font-weight: 100;
color: #2E3D48; color: #2e3d48;
-webkit-animation: 1s cursorblink step-end infinite; -webkit-animation: 1s cursorblink step-end infinite;
-moz-animation: 1s cursorblink step-end infinite; -moz-animation: 1s cursorblink step-end infinite;
-ms-animation: 1s cursorblink step-end infinite; -ms-animation: 1s cursorblink step-end infinite;
@ -10,7 +10,7 @@
animation: 1s cursorblink step-end infinite; animation: 1s cursorblink step-end infinite;
} }
@keyframes "cursorblink" { @keyframes cursorblink {
from, to { from, to {
color: transparent; color: transparent;
} }
@ -28,7 +28,7 @@
} }
} }
@-webkit-keyframes "cursorblink" { @-webkit-keyframes cursorblink {
from, to { from, to {
color: transparent; color: transparent;
} }
@ -37,7 +37,7 @@
} }
} }
@-ms-keyframes "cursorblink" { @-ms-keyframes cursorblink {
from, to { from, to {
color: transparent; color: transparent;
} }
@ -46,7 +46,7 @@
} }
} }
@-o-keyframes "cursorblink" { @-o-keyframes cursorblink {
from, to { from, to {
color: transparent; color: transparent;
} }

@ -72,7 +72,6 @@
border: 5px solid var(--my-highlight-color); border: 5px solid var(--my-highlight-color);
} }
.log-box-container { .log-box-container {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
@ -157,7 +156,7 @@
} }
.dialog-box-close-button:hover, .dialog-box-close-button:hover,
.dialog-box-close-button:focus,{ .dialog-box-close-button:focus {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;

@ -346,7 +346,7 @@ a:visited {
} }
.unbuyable { .unbuyable {
color: #66CFBC; color: #66cfbc;
} }
.failure { .failure {

@ -512,7 +512,7 @@ table.modindextable td {
.viewcode-back { .viewcode-back {
float: right; float: right;
font-family:: "Verdana", Arial, sans-serif; font-family: "Verdana", Arial, sans-serif;
} }
div.viewcode-block:target { div.viewcode-block:target {

58
package-lock.json generated

@ -5,6 +5,7 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bitburner",
"version": "0.52.9", "version": "0.52.9",
"hasInstallScript": true, "hasInstallScript": true,
"license": "SEE LICENSE IN license.txt", "license": "SEE LICENSE IN license.txt",
@ -85,6 +86,7 @@
"mini-css-extract-plugin": "^0.4.1", "mini-css-extract-plugin": "^0.4.1",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"null-loader": "^1.0.0", "null-loader": "^1.0.0",
"prettier": "^2.3.2",
"raw-loader": "~0.5.0", "raw-loader": "~0.5.0",
"regenerator-runtime": "^0.13.9", "regenerator-runtime": "^0.13.9",
"sass-loader": "^7.0.3", "sass-loader": "^7.0.3",
@ -8184,6 +8186,7 @@
"version": "3.2.25", "version": "3.2.25",
"resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz",
"integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==",
"peer": true,
"engines": { "engines": {
"node": ">=6" "node": ">=6"
} }
@ -14997,6 +15000,7 @@
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/mathjax-full/-/mathjax-full-3.2.0.tgz", "resolved": "https://registry.npmjs.org/mathjax-full/-/mathjax-full-3.2.0.tgz",
"integrity": "sha512-D2EBNvUG+mJyhn+M1C858k0f2Fc4KxXvbEX2WCMXroV10212JwfYqaBJ336ECBSz5X9L5LRoamxb7AJtg3KaJA==", "integrity": "sha512-D2EBNvUG+mJyhn+M1C858k0f2Fc4KxXvbEX2WCMXroV10212JwfYqaBJ336ECBSz5X9L5LRoamxb7AJtg3KaJA==",
"peer": true,
"dependencies": { "dependencies": {
"esm": "^3.2.25", "esm": "^3.2.25",
"mhchemparser": "^4.1.0", "mhchemparser": "^4.1.0",
@ -15231,7 +15235,8 @@
"node_modules/mhchemparser": { "node_modules/mhchemparser": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/mhchemparser/-/mhchemparser-4.1.1.tgz", "resolved": "https://registry.npmjs.org/mhchemparser/-/mhchemparser-4.1.1.tgz",
"integrity": "sha512-R75CUN6O6e1t8bgailrF1qPq+HhVeFTM3XQ0uzI+mXTybmphy3b6h4NbLOYhemViQ3lUs+6CKRkC3Ws1TlYREA==" "integrity": "sha512-R75CUN6O6e1t8bgailrF1qPq+HhVeFTM3XQ0uzI+mXTybmphy3b6h4NbLOYhemViQ3lUs+6CKRkC3Ws1TlYREA==",
"peer": true
}, },
"node_modules/micromatch": { "node_modules/micromatch": {
"version": "3.1.10", "version": "3.1.10",
@ -15484,7 +15489,8 @@
"node_modules/mj-context-menu": { "node_modules/mj-context-menu": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/mj-context-menu/-/mj-context-menu-0.6.1.tgz", "resolved": "https://registry.npmjs.org/mj-context-menu/-/mj-context-menu-0.6.1.tgz",
"integrity": "sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==" "integrity": "sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==",
"peer": true
}, },
"node_modules/mkdirp": { "node_modules/mkdirp": {
"version": "0.5.1", "version": "0.5.1",
@ -17768,6 +17774,18 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/prettier": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz",
"integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==",
"dev": true,
"bin": {
"prettier": "bin-prettier.js"
},
"engines": {
"node": ">=10.13.0"
}
},
"node_modules/pretty-error": { "node_modules/pretty-error": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
@ -20076,6 +20094,7 @@
"version": "3.3.3", "version": "3.3.3",
"resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-3.3.3.tgz", "resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-3.3.3.tgz",
"integrity": "sha512-0exWw+0XauLjat+f/aFeo5T8SiDsO1JtwpY3qgJE4cWt+yL/Stl0WP4VNDWdh7lzGkubUD9lWP4J1ASnORXfyQ==", "integrity": "sha512-0exWw+0XauLjat+f/aFeo5T8SiDsO1JtwpY3qgJE4cWt+yL/Stl0WP4VNDWdh7lzGkubUD9lWP4J1ASnORXfyQ==",
"peer": true,
"dependencies": { "dependencies": {
"commander": ">=7.0.0", "commander": ">=7.0.0",
"wicked-good-xpath": "^1.3.0", "wicked-good-xpath": "^1.3.0",
@ -20089,6 +20108,7 @@
"version": "8.1.0", "version": "8.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-8.1.0.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-8.1.0.tgz",
"integrity": "sha512-mf45ldcuHSYShkplHHGKWb4TrmwQadxOn7v4WuhDJy0ZVoY5JFajaRDKD0PNe5qXzBX0rhovjTnP6Kz9LETcuA==", "integrity": "sha512-mf45ldcuHSYShkplHHGKWb4TrmwQadxOn7v4WuhDJy0ZVoY5JFajaRDKD0PNe5qXzBX0rhovjTnP6Kz9LETcuA==",
"peer": true,
"engines": { "engines": {
"node": ">= 12" "node": ">= 12"
} }
@ -23548,7 +23568,8 @@
"node_modules/wicked-good-xpath": { "node_modules/wicked-good-xpath": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz", "resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz",
"integrity": "sha1-gbDpXoZQ5JyUsiKY//hoa1VTz2w=" "integrity": "sha1-gbDpXoZQ5JyUsiKY//hoa1VTz2w=",
"peer": true
}, },
"node_modules/wide-align": { "node_modules/wide-align": {
"version": "1.1.3", "version": "1.1.3",
@ -23695,6 +23716,7 @@
"version": "0.1.31", "version": "0.1.31",
"resolved": "https://registry.npmjs.org/xmldom-sre/-/xmldom-sre-0.1.31.tgz", "resolved": "https://registry.npmjs.org/xmldom-sre/-/xmldom-sre-0.1.31.tgz",
"integrity": "sha512-f9s+fUkX04BxQf+7mMWAp5zk61pciie+fFLC9hX9UVvCeJQfNHRHXpeo5MPcR0EUf57PYLdt+ZO4f3Ipk2oZUw==", "integrity": "sha512-f9s+fUkX04BxQf+7mMWAp5zk61pciie+fFLC9hX9UVvCeJQfNHRHXpeo5MPcR0EUf57PYLdt+ZO4f3Ipk2oZUw==",
"peer": true,
"engines": { "engines": {
"node": ">=0.1" "node": ">=0.1"
} }
@ -30301,7 +30323,8 @@
"esm": { "esm": {
"version": "3.2.25", "version": "3.2.25",
"resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz",
"integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==" "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==",
"peer": true
}, },
"espree": { "espree": {
"version": "7.3.1", "version": "7.3.1",
@ -35644,6 +35667,7 @@
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/mathjax-full/-/mathjax-full-3.2.0.tgz", "resolved": "https://registry.npmjs.org/mathjax-full/-/mathjax-full-3.2.0.tgz",
"integrity": "sha512-D2EBNvUG+mJyhn+M1C858k0f2Fc4KxXvbEX2WCMXroV10212JwfYqaBJ336ECBSz5X9L5LRoamxb7AJtg3KaJA==", "integrity": "sha512-D2EBNvUG+mJyhn+M1C858k0f2Fc4KxXvbEX2WCMXroV10212JwfYqaBJ336ECBSz5X9L5LRoamxb7AJtg3KaJA==",
"peer": true,
"requires": { "requires": {
"esm": "^3.2.25", "esm": "^3.2.25",
"mhchemparser": "^4.1.0", "mhchemparser": "^4.1.0",
@ -35655,9 +35679,7 @@
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/mathjax-react/-/mathjax-react-1.0.6.tgz", "resolved": "https://registry.npmjs.org/mathjax-react/-/mathjax-react-1.0.6.tgz",
"integrity": "sha512-GlkPAhaY0FKc95TMdo33mxNZHb+3xRgfgc3YcnQ0cZxvnM1UaF0o8mRI5y5xIwi3JnioeYuukZJWCbIZkACIVw==", "integrity": "sha512-GlkPAhaY0FKc95TMdo33mxNZHb+3xRgfgc3YcnQ0cZxvnM1UaF0o8mRI5y5xIwi3JnioeYuukZJWCbIZkACIVw==",
"requires": { "requires": {}
"mathjax-full": "^3.0.4"
}
}, },
"mathml-tag-names": { "mathml-tag-names": {
"version": "2.1.0", "version": "2.1.0",
@ -35822,7 +35844,8 @@
"mhchemparser": { "mhchemparser": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/mhchemparser/-/mhchemparser-4.1.1.tgz", "resolved": "https://registry.npmjs.org/mhchemparser/-/mhchemparser-4.1.1.tgz",
"integrity": "sha512-R75CUN6O6e1t8bgailrF1qPq+HhVeFTM3XQ0uzI+mXTybmphy3b6h4NbLOYhemViQ3lUs+6CKRkC3Ws1TlYREA==" "integrity": "sha512-R75CUN6O6e1t8bgailrF1qPq+HhVeFTM3XQ0uzI+mXTybmphy3b6h4NbLOYhemViQ3lUs+6CKRkC3Ws1TlYREA==",
"peer": true
}, },
"micromatch": { "micromatch": {
"version": "3.1.10", "version": "3.1.10",
@ -36031,7 +36054,8 @@
"mj-context-menu": { "mj-context-menu": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/mj-context-menu/-/mj-context-menu-0.6.1.tgz", "resolved": "https://registry.npmjs.org/mj-context-menu/-/mj-context-menu-0.6.1.tgz",
"integrity": "sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==" "integrity": "sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==",
"peer": true
}, },
"mkdirp": { "mkdirp": {
"version": "0.5.1", "version": "0.5.1",
@ -37938,6 +37962,12 @@
"integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=",
"dev": true "dev": true
}, },
"prettier": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz",
"integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==",
"dev": true
},
"pretty-error": { "pretty-error": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
@ -39922,6 +39952,7 @@
"version": "3.3.3", "version": "3.3.3",
"resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-3.3.3.tgz", "resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-3.3.3.tgz",
"integrity": "sha512-0exWw+0XauLjat+f/aFeo5T8SiDsO1JtwpY3qgJE4cWt+yL/Stl0WP4VNDWdh7lzGkubUD9lWP4J1ASnORXfyQ==", "integrity": "sha512-0exWw+0XauLjat+f/aFeo5T8SiDsO1JtwpY3qgJE4cWt+yL/Stl0WP4VNDWdh7lzGkubUD9lWP4J1ASnORXfyQ==",
"peer": true,
"requires": { "requires": {
"commander": ">=7.0.0", "commander": ">=7.0.0",
"wicked-good-xpath": "^1.3.0", "wicked-good-xpath": "^1.3.0",
@ -39931,7 +39962,8 @@
"commander": { "commander": {
"version": "8.1.0", "version": "8.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-8.1.0.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-8.1.0.tgz",
"integrity": "sha512-mf45ldcuHSYShkplHHGKWb4TrmwQadxOn7v4WuhDJy0ZVoY5JFajaRDKD0PNe5qXzBX0rhovjTnP6Kz9LETcuA==" "integrity": "sha512-mf45ldcuHSYShkplHHGKWb4TrmwQadxOn7v4WuhDJy0ZVoY5JFajaRDKD0PNe5qXzBX0rhovjTnP6Kz9LETcuA==",
"peer": true
} }
} }
}, },
@ -42796,7 +42828,8 @@
"wicked-good-xpath": { "wicked-good-xpath": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz", "resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz",
"integrity": "sha1-gbDpXoZQ5JyUsiKY//hoa1VTz2w=" "integrity": "sha1-gbDpXoZQ5JyUsiKY//hoa1VTz2w=",
"peer": true
}, },
"wide-align": { "wide-align": {
"version": "1.1.3", "version": "1.1.3",
@ -42923,7 +42956,8 @@
"xmldom-sre": { "xmldom-sre": {
"version": "0.1.31", "version": "0.1.31",
"resolved": "https://registry.npmjs.org/xmldom-sre/-/xmldom-sre-0.1.31.tgz", "resolved": "https://registry.npmjs.org/xmldom-sre/-/xmldom-sre-0.1.31.tgz",
"integrity": "sha512-f9s+fUkX04BxQf+7mMWAp5zk61pciie+fFLC9hX9UVvCeJQfNHRHXpeo5MPcR0EUf57PYLdt+ZO4f3Ipk2oZUw==" "integrity": "sha512-f9s+fUkX04BxQf+7mMWAp5zk61pciie+fFLC9hX9UVvCeJQfNHRHXpeo5MPcR0EUf57PYLdt+ZO4f3Ipk2oZUw==",
"peer": true
}, },
"xregexp": { "xregexp": {
"version": "4.0.0", "version": "4.0.0",

@ -83,6 +83,7 @@
"mini-css-extract-plugin": "^0.4.1", "mini-css-extract-plugin": "^0.4.1",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"null-loader": "^1.0.0", "null-loader": "^1.0.0",
"prettier": "^2.3.2",
"raw-loader": "~0.5.0", "raw-loader": "~0.5.0",
"regenerator-runtime": "^0.13.9", "regenerator-runtime": "^0.13.9",
"sass-loader": "^7.0.3", "sass-loader": "^7.0.3",
@ -118,13 +119,14 @@
"url": "git+https://github.com/danielyxie/bitburner.git" "url": "git+https://github.com/danielyxie/bitburner.git"
}, },
"scripts": { "scripts": {
"format": "prettier --write .",
"start:dev": "webpack-dev-server --progress --env.devServer --mode development", "start:dev": "webpack-dev-server --progress --env.devServer --mode development",
"start:container": "webpack-dev-server --progress --env.devServer --mode development --env.runInContainer", "start:container": "webpack-dev-server --progress --env.devServer --mode development --env.runInContainer",
"build": "webpack --mode production", "build": "webpack --mode production",
"build:dev": "webpack --mode development", "build:dev": "webpack --mode development",
"build:test": "webpack --config webpack.config-test.js", "build:test": "webpack --config webpack.config-test.js",
"lint": "npm run lint:jsts & npm run lint:style", "lint": "npm run lint:jsts & npm run lint:style",
"lint:jsts": "eslint --fix '*.{js,jsx,ts,tsx}' './src/**/*.{js,jsx,ts,tsx}' './test/**/*.{js,jsx,ts,tsx}' './utils/**/*.{js,jsx,ts,tsx}'", "lint:jsts": "eslint --fix . --ext ts,tsx",
"lint:style": "stylelint --fix ./css/*", "lint:style": "stylelint --fix ./css/*",
"preinstall": "node ./scripts/engines-check.js", "preinstall": "node ./scripts/engines-check.js",
"test": "jest", "test": "jest",

@ -31,8 +31,7 @@ export function CityTabs(props: IProps): React.ReactElement {
return <> return <>
{ {
Object.keys(props.onClicks).map((cityName: string) => Object.keys(props.onClicks).map((cityName: string) => <CityTab current={props.city === cityName} key={cityName} name={cityName} onClick={props.onClicks[cityName]} />,
<CityTab current={props.city === cityName} key={cityName} name={cityName} onClick={props.onClicks[cityName]} />,
) )
} }
<CityTab <CityTab

@ -114,7 +114,7 @@ export function Overview(props: IProps): React.ReactElement {
</>); </>);
} }
function Mult(props: {name: string, mult: number}): React.ReactElement { function Mult(props: {name: string; mult: number}): React.ReactElement {
if(props.mult <= 1) return (<></>); if(props.mult <= 1) return (<></>);
return (<p>{props.name}{numeralWrapper.format(props.mult, "0.000")}<br /></p>); return (<p>{props.name}{numeralWrapper.format(props.mult, "0.000")}<br /></p>);
} }
@ -287,8 +287,7 @@ export function Overview(props: IProps): React.ReactElement {
{ {
Object.values(CorporationUnlockUpgrades) Object.values(CorporationUnlockUpgrades)
.filter((upgrade: CorporationUnlockUpgrade) => props.corp.unlockUpgrades[upgrade[0]] === 0) .filter((upgrade: CorporationUnlockUpgrade) => props.corp.unlockUpgrades[upgrade[0]] === 0)
.map((upgrade: CorporationUnlockUpgrade) => .map((upgrade: CorporationUnlockUpgrade) => <UnlockUpgrade
<UnlockUpgrade
player={props.player} player={props.player}
corp={props.corp} corp={props.corp}
upgradeData={upgrade} upgradeData={upgrade}

@ -99,8 +99,6 @@ module.exports = {
// "skew", // "skew",
// "var" // "var"
// ], // ],
"function-whitespace-after": "always",
"indentation": 4,
"keyframe-declaration-no-important": true, "keyframe-declaration-no-important": true,
"length-zero-no-unit": true, "length-zero-no-unit": true,
"max-empty-lines": 1, "max-empty-lines": 1,
@ -277,6 +275,7 @@ module.exports = {
"active", "active",
"after", "after",
"before", "before",
"checked",
"disabled", "disabled",
"focus", "focus",
"hover", "hover",
@ -284,6 +283,7 @@ module.exports = {
"not", "not",
"last-child", "last-child",
"root", "root",
"target",
"visited", "visited",
], ],
//"selector-pseudo-element-blacklist": [], //"selector-pseudo-element-blacklist": [],
@ -301,7 +301,6 @@ module.exports = {
// "font-family" // "font-family"
// ] // ]
// ], // ],
"string-no-newline": true,
// "string-quotes": "double", // "string-quotes": "double",
"time-min-milliseconds": 50, "time-min-milliseconds": 50,
"unit-blacklist": [], "unit-blacklist": [],
@ -318,10 +317,6 @@ module.exports = {
"%", "%",
], ],
// "value-keyword-case": "lower", // "value-keyword-case": "lower",
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-newline-before": "never-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-list-max-empty-lines": 0, "value-list-max-empty-lines": 0,
"value-no-vendor-prefix": true, "value-no-vendor-prefix": true,
}, },