Merge pull request #325 from kopelli/eslint

Add Eslint to linting toolchain
This commit is contained in:
danielyxie 2018-06-27 22:46:12 -05:00 committed by GitHub
commit e621cac0a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 1417 additions and 19 deletions

3
.eslintignore Normal file

@ -0,0 +1,3 @@
node_modules/
dist/
tests/*.bundle.*

857
.eslintrc.js Normal file

@ -0,0 +1,857 @@
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": false
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"accessor-pairs": [
"error",
{
"setWithoutGet": true,
"getWithoutSet": false
}
],
"array-bracket-newline": [
"off"
],
"array-bracket-spacing": [
"off"
],
"array-callback-return": [
"off"
],
"array-element-newline": [
"off"
],
"arrow-body-style": [
"off"
],
"arrow-parens": [
"off"
],
"arrow-spacing": [
"off"
],
"block-scoped-var": [
"off"
],
"block-spacing": [
"off"
],
"brace-style": [
"off"
],
"callback-return": [
"error"
],
"camelcase": [
"off"
],
"capitalized-comments": [
"off"
],
"class-methods-use-this": [
"error"
],
"comma-dangle": [
"off"
],
"comma-spacing": [
"off"
],
"comma-style": [
"error",
"last"
],
"complexity": [
"off"
],
"computed-property-spacing": [
"off",
"never"
],
"consistent-return": [
"off"
],
"consistent-this": [
"off"
],
"constructor-super": [
"error"
],
"curly": [
"off"
],
"default-case": [
"off"
],
"dot-location": [
"error",
"property"
],
"dot-notation": [
"off"
],
"eol-last": [
"off"
],
"eqeqeq": [
"off"
],
"for-direction": [
"error"
],
"func-call-spacing": [
"off"
],
"func-name-matching": [
"error"
],
"func-names": [
"off",
"never"
],
"func-style": [
"off"
],
"function-paren-newline": [
"off"
],
"generator-star-spacing": [
"error",
"before"
],
"getter-return": [
"error",
{
"allowImplicit": false
}
],
"global-require": [
"off"
],
"guard-for-in": [
"off"
],
"handle-callback-err": [
"error"
],
"id-blacklist": [
"error"
],
"id-length": [
"off"
],
"id-match": [
"error"
],
"implicit-arrow-linebreak": [
"error",
"beside"
],
"indent": [
"off"
],
"indent-legacy": [
"off"
],
"init-declarations": [
"off"
],
"jsx-quotes": [
"error"
],
"key-spacing": [
"off"
],
"keyword-spacing": [
"off"
],
"line-comment-position": [
"off"
],
"linebreak-style": [
"error",
"windows"
],
"lines-around-comment": [
"off"
],
"lines-around-directive": [
"error"
],
"lines-between-class-members": [
"error"
],
"max-depth": [
"off"
],
"max-len": [
"off"
],
"max-lines": [
"off"
],
"max-nested-callbacks": [
"error"
],
"max-params": [
"off"
],
"max-statements": [
"off"
],
"max-statements-per-line": [
"off"
],
"multiline-comment-style": [
"off",
"starred-block"
],
"multiline-ternary": [
"off",
"never"
],
"new-cap": [
"off"
],
"new-parens": [
"off"
],
"newline-after-var": [
"off"
],
"newline-before-return": [
"off"
],
"newline-per-chained-call": [
"off"
],
"no-alert": [
"error"
],
"no-array-constructor": [
"error"
],
"no-await-in-loop": [
"error"
],
"no-bitwise": [
"off"
],
"no-buffer-constructor": [
"error"
],
"no-caller": [
"error"
],
"no-case-declarations": [
"error"
],
"no-catch-shadow": [
"error"
],
"no-class-assign": [
"error"
],
"no-compare-neg-zero": [
"error"
],
"no-cond-assign": [
"off",
"except-parens"
],
"no-confusing-arrow": [
"error"
],
"no-console": [
"off"
],
"no-const-assign": [
"error"
],
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-continue": [
"off"
],
"no-control-regex": [
"error"
],
"no-debugger": [
"error"
],
"no-delete-var": [
"error"
],
"no-div-regex": [
"error"
],
"no-dupe-args": [
"error"
],
"no-dupe-class-members": [
"error"
],
"no-dupe-keys": [
"error"
],
"no-duplicate-case": [
"error"
],
"no-duplicate-imports": [
"error",
{
"includeExports": true
}
],
"no-else-return": [
"off"
],
"no-empty": [
"off",
{
"allowEmptyCatch": false
}
],
"no-empty-character-class": [
"error"
],
"no-empty-function": [
"off"
],
"no-empty-pattern": [
"error"
],
"no-eq-null": [
"off"
],
"no-ex-assign": [
"off"
],
"no-extra-boolean-cast": [
"error"
],
"no-extra-parens": [
"error",
"all",
{
"conditionalAssign": false
}
],
"no-extra-semi": [
"off"
],
"no-eval": [
"off"
],
"no-extend-native": [
"off"
],
"no-extra-bind": [
"error"
],
"no-extra-label": [
"error"
],
"no-extra-parens": [
"off"
],
"no-fallthrough": [
"off"
],
"no-floating-decimal": [
"off"
],
"no-func-assign": [
"error"
],
"no-global-assign": [
"error"
],
"no-implicit-coercion": [
"off"
],
"no-implicit-globals": [
"error"
],
"no-implied-eval": [
"error"
],
"no-inline-comments": [
"off"
],
"no-inner-declarations": [
"off",
"both"
],
"no-invalid-regexp": [
"error"
],
"no-invalid-this": [
"off"
],
"no-irregular-whitespace": [
"error",
{
"skipStrings": false,
"skipComments": false,
"skipRegExps": false,
"skipTemplates": false
}
],
"no-iterator": [
"error"
],
"no-label-var": [
"error"
],
"no-labels": [
"off"
],
"no-lone-blocks": [
"error"
],
"no-lonely-if": [
"off"
],
"no-loop-func": [
"off"
],
"no-magic-numbers": [
"off"
],
"no-mixed-operators": [
"off"
],
"no-mixed-requires": [
"error"
],
"no-mixed-spaces-and-tabs": [
"off"
],
"no-multi-assign": [
"off"
],
"no-multi-spaces": [
"off"
],
"no-multi-str": [
"error"
],
"no-multiple-empty-lines": [
"off",
{
"max": 1
}
],
"no-native-reassign": [
"error"
],
"no-negated-condition": [
"off"
],
"no-negated-in-lhs": [
"error"
],
"no-nested-ternary": [
"off"
],
"no-new": [
"error"
],
"no-new-func": [
"error"
],
"no-new-object": [
"error"
],
"no-new-require": [
"error"
],
"no-new-symbol": [
"error"
],
"no-new-wrappers": [
"error"
],
"no-octal": [
"error"
],
"no-octal-escape": [
"error"
],
"no-obj-calls": [
"error"
],
"no-param-reassign": [
"off"
],
"no-path-concat": [
"error"
],
"no-plusplus": [
"off"
],
"no-process-env": [
"off"
],
"no-process-exit": [
"error"
],
"no-proto": [
"error"
],
"no-prototype-builtins": [
"off"
],
"no-redeclare": [
"off"
],
"no-regex-spaces": [
"error"
],
"no-restricted-globals": [
"error"
],
"no-restricted-imports": [
"error"
],
"no-restricted-modules": [
"error"
],
"no-restricted-properties": [
"off",
{
"object": "console",
"property": "log",
"message": "'log' is too general, use an appropriate level when logging."
}
],
"no-restricted-syntax": [
"error"
],
"no-return-assign": [
"off"
],
"no-return-await": [
"error"
],
"no-script-url": [
"error"
],
"no-self-assign": [
"error",
{
"props": false
}
],
"no-self-compare": [
"error"
],
"no-sequences": [
"error"
],
"no-shadow": [
"off"
],
"no-shadow-restricted-names": [
"error"
],
"no-spaced-func": [
"off"
],
"no-sparse-arrays": [
"error"
],
"no-sync": [
"error"
],
"no-tabs": [
"off"
],
"no-template-curly-in-string": [
"error"
],
"no-ternary": [
"off"
],
"no-this-before-super": [
"off"
],
"no-throw-literal": [
"error"
],
"no-trailing-spaces": [
"off"
],
"no-undef": [
"off"
],
"no-undef-init": [
"error"
],
"no-undefined": [
"off"
],
"no-underscore-dangle": [
"off"
],
"no-unexpected-multiline": [
"error"
],
"no-unmodified-loop-condition": [
"error"
],
"no-unneeded-ternary": [
"off"
],
"no-unreachable": [
"off"
],
"no-unsafe-finally": [
"error"
],
"no-unsafe-negation": [
"error"
],
"no-unused-expressions": [
"off"
],
"no-unused-labels": [
"error"
],
"no-unused-vars": [
"off"
],
"no-use-before-define": [
"off"
],
"no-useless-call": [
"off"
],
"no-useless-computed-key": [
"error"
],
"no-useless-concat": [
"off"
],
"no-useless-constructor": [
"error"
],
"no-useless-escape": [
"off"
],
"no-useless-rename": [
"error",
{
"ignoreDestructuring": false,
"ignoreExport": false,
"ignoreImport": false
}
],
"no-useless-return": [
"off"
],
"no-var": [
"off"
],
"no-void": [
"off"
],
"no-warning-comments": [
"off"
],
"no-whitespace-before-property": [
"error"
],
"no-with": [
"error"
],
"nonblock-statement-body-position": [
"off",
"below"
],
"object-curly-newline": [
"off"
],
"object-curly-spacing": [
"off"
],
"object-property-newline": [
"off"
],
"object-shorthand": [
"off"
],
"one-var": [
"off"
],
"one-var-declaration-per-line": [
"off"
],
"operator-assignment": [
"off"
],
"operator-linebreak": [
"off",
"none"
],
"padded-blocks": [
"off"
],
"padding-line-between-statements": [
"error"
],
"prefer-arrow-callback": [
"off"
],
"prefer-const": [
"off"
],
"prefer-destructuring": [
"off"
],
"prefer-numeric-literals": [
"error"
],
"prefer-promise-reject-errors": [
"off"
],
"prefer-reflect": [
"off"
],
"prefer-rest-params": [
"off"
],
"prefer-spread": [
"off"
],
"prefer-template": [
"off"
],
"quote-props": [
"off"
],
"quotes": [
"off"
],
"radix": [
"off",
"as-needed"
],
"require-await": [
"off"
],
"require-jsdoc": [
"off"
],
"require-yield": [
"error"
],
"rest-spread-spacing": [
"error",
"never"
],
"semi": [
"off"
],
"semi-spacing": [
"off"
],
"semi-style": [
"error",
"last"
],
"sort-imports": [
"off"
],
"sort-keys": [
"off"
],
"sort-vars": [
"off"
],
"space-before-blocks": [
"off"
],
"space-before-function-paren": [
"off"
],
"space-in-parens": [
"off"
],
"space-infix-ops": [
"off"
],
"space-unary-ops": [
"off"
],
"spaced-comment": [
"off"
],
"strict": [
"off"
],
"switch-colon-spacing": [
"error",
{
"after": true,
"before": false
}
],
"symbol-description": [
"error"
],
"template-curly-spacing": [
"error"
],
"template-tag-spacing": [
"error"
],
"unicode-bom": [
"error",
"never"
],
"use-isnan": [
"error"
],
"valid-jsdoc": [
"off"
],
"valid-typeof": [
"error"
],
"vars-on-top": [
"off"
],
"wrap-iife": [
"error",
"any"
],
"wrap-regex": [
"off"
],
"yield-star-spacing": [
"error",
"before"
],
"yoda": [
"error",
"never"
]
}
};

@ -94,8 +94,7 @@ let NetscriptFunctions =
"getActionTime|getActionEstimatedSuccessChance|getActionCountRemaining|" +
"getRank|getSkillPoints|getSkillLevel|upgradeSkill|getTeamSize|" +
"setTeamSize|getCityEstimatedPopulation|getCityEstimatedCommunities|" +
"getCityChaos|switchCity|getStamina|joinBladeburnerFaction"
;
"getCityChaos|switchCity|getStamina|joinBladeburnerFaction";
var NetscriptHighlightRules = function(options) {
var keywordMapper = this.createKeywordMapper({

553
package-lock.json generated

@ -1110,6 +1110,7 @@
"anymatch": "2.0.0",
"async-each": "1.0.1",
"braces": "2.3.2",
"fsevents": "1.2.4",
"glob-parent": "3.1.0",
"inherits": "2.0.3",
"is-binary-path": "1.0.1",
@ -3522,6 +3523,535 @@
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
},
"fsevents": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz",
"integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==",
"dev": true,
"optional": true,
"requires": {
"nan": "2.10.0",
"node-pre-gyp": "0.10.0"
},
"dependencies": {
"abbrev": {
"version": "1.1.1",
"bundled": true,
"dev": true,
"optional": true
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
},
"aproba": {
"version": "1.2.0",
"bundled": true,
"dev": true,
"optional": true
},
"are-we-there-yet": {
"version": "1.1.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"delegates": "1.0.0",
"readable-stream": "2.3.6"
}
},
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"dev": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
"requires": {
"balanced-match": "1.0.0",
"concat-map": "0.0.1"
}
},
"chownr": {
"version": "1.0.1",
"bundled": true,
"dev": true,
"optional": true
},
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"dev": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true
},
"core-util-is": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true
},
"debug": {
"version": "2.6.9",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ms": "2.0.0"
}
},
"deep-extend": {
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true
},
"delegates": {
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true
},
"detect-libc": {
"version": "1.0.3",
"bundled": true,
"dev": true,
"optional": true
},
"fs-minipass": {
"version": "1.2.5",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minipass": "2.2.4"
}
},
"fs.realpath": {
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true
},
"gauge": {
"version": "2.7.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"aproba": "1.2.0",
"console-control-strings": "1.1.0",
"has-unicode": "2.0.1",
"object-assign": "4.1.1",
"signal-exit": "3.0.2",
"string-width": "1.0.2",
"strip-ansi": "3.0.1",
"wide-align": "1.1.2"
}
},
"glob": {
"version": "7.1.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"fs.realpath": "1.0.0",
"inflight": "1.0.6",
"inherits": "2.0.3",
"minimatch": "3.0.4",
"once": "1.4.0",
"path-is-absolute": "1.0.1"
}
},
"has-unicode": {
"version": "2.0.1",
"bundled": true,
"dev": true,
"optional": true
},
"iconv-lite": {
"version": "0.4.21",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safer-buffer": "2.1.2"
}
},
"ignore-walk": {
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimatch": "3.0.4"
}
},
"inflight": {
"version": "1.0.6",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"once": "1.4.0",
"wrappy": "1.0.2"
}
},
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true
},
"ini": {
"version": "1.3.5",
"bundled": true,
"dev": true,
"optional": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"dev": true,
"requires": {
"number-is-nan": "1.0.1"
}
},
"isarray": {
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true
},
"minimatch": {
"version": "3.0.4",
"bundled": true,
"dev": true,
"requires": {
"brace-expansion": "1.1.11"
}
},
"minimist": {
"version": "0.0.8",
"bundled": true,
"dev": true
},
"minipass": {
"version": "2.2.4",
"bundled": true,
"dev": true,
"requires": {
"safe-buffer": "5.1.1",
"yallist": "3.0.2"
}
},
"minizlib": {
"version": "1.1.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minipass": "2.2.4"
}
},
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"dev": true,
"requires": {
"minimist": "0.0.8"
}
},
"ms": {
"version": "2.0.0",
"bundled": true,
"dev": true,
"optional": true
},
"needle": {
"version": "2.2.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"debug": "2.6.9",
"iconv-lite": "0.4.21",
"sax": "1.2.4"
}
},
"node-pre-gyp": {
"version": "0.10.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"detect-libc": "1.0.3",
"mkdirp": "0.5.1",
"needle": "2.2.0",
"nopt": "4.0.1",
"npm-packlist": "1.1.10",
"npmlog": "4.1.2",
"rc": "1.2.7",
"rimraf": "2.6.2",
"semver": "5.5.0",
"tar": "4.4.1"
}
},
"nopt": {
"version": "4.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"abbrev": "1.1.1",
"osenv": "0.1.5"
}
},
"npm-bundled": {
"version": "1.0.3",
"bundled": true,
"dev": true,
"optional": true
},
"npm-packlist": {
"version": "1.1.10",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ignore-walk": "3.0.1",
"npm-bundled": "1.0.3"
}
},
"npmlog": {
"version": "4.1.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"are-we-there-yet": "1.1.4",
"console-control-strings": "1.1.0",
"gauge": "2.7.4",
"set-blocking": "2.0.0"
}
},
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
},
"object-assign": {
"version": "4.1.1",
"bundled": true,
"dev": true,
"optional": true
},
"once": {
"version": "1.4.0",
"bundled": true,
"dev": true,
"requires": {
"wrappy": "1.0.2"
}
},
"os-homedir": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true
},
"os-tmpdir": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true
},
"osenv": {
"version": "0.1.5",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"os-homedir": "1.0.2",
"os-tmpdir": "1.0.2"
}
},
"path-is-absolute": {
"version": "1.0.1",
"bundled": true,
"dev": true,
"optional": true
},
"process-nextick-args": {
"version": "2.0.0",
"bundled": true,
"dev": true,
"optional": true
},
"rc": {
"version": "1.2.7",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"deep-extend": "0.5.1",
"ini": "1.3.5",
"minimist": "1.2.0",
"strip-json-comments": "2.0.1"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"bundled": true,
"dev": true,
"optional": true
}
}
},
"readable-stream": {
"version": "2.3.6",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "1.0.0",
"process-nextick-args": "2.0.0",
"safe-buffer": "5.1.1",
"string_decoder": "1.1.1",
"util-deprecate": "1.0.2"
}
},
"rimraf": {
"version": "2.6.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"glob": "7.1.2"
}
},
"safe-buffer": {
"version": "5.1.1",
"bundled": true,
"dev": true
},
"safer-buffer": {
"version": "2.1.2",
"bundled": true,
"dev": true,
"optional": true
},
"sax": {
"version": "1.2.4",
"bundled": true,
"dev": true,
"optional": true
},
"semver": {
"version": "5.5.0",
"bundled": true,
"dev": true,
"optional": true
},
"set-blocking": {
"version": "2.0.0",
"bundled": true,
"dev": true,
"optional": true
},
"signal-exit": {
"version": "3.0.2",
"bundled": true,
"dev": true,
"optional": true
},
"string-width": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"requires": {
"code-point-at": "1.1.0",
"is-fullwidth-code-point": "1.0.0",
"strip-ansi": "3.0.1"
}
},
"string_decoder": {
"version": "1.1.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "5.1.1"
}
},
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"dev": true,
"requires": {
"ansi-regex": "2.1.1"
}
},
"strip-json-comments": {
"version": "2.0.1",
"bundled": true,
"dev": true,
"optional": true
},
"tar": {
"version": "4.4.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"chownr": "1.0.1",
"fs-minipass": "1.2.5",
"minipass": "2.2.4",
"minizlib": "1.1.0",
"mkdirp": "0.5.1",
"safe-buffer": "5.1.1",
"yallist": "3.0.2"
}
},
"util-deprecate": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true
},
"wide-align": {
"version": "1.1.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"string-width": "1.0.2"
}
},
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
},
"yallist": {
"version": "3.0.2",
"bundled": true,
"dev": true
}
}
},
"function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@ -5977,6 +6507,13 @@
"integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=",
"dev": true
},
"nan": {
"version": "2.10.0",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz",
"integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==",
"dev": true,
"optional": true
},
"nanomatch": {
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.9.tgz",
@ -9468,14 +10005,6 @@
"integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=",
"dev": true
},
"string_decoder": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
"integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==",
"requires": {
"safe-buffer": "5.1.1"
}
},
"string-width": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
@ -9509,6 +10038,14 @@
}
}
},
"string_decoder": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",
"integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==",
"requires": {
"safe-buffer": "5.1.1"
}
},
"stringify-entities": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-1.3.2.tgz",

@ -87,10 +87,12 @@
"url": "git+https://github.com/danielyxie/bitburner.git"
},
"scripts": {
"lint:style": "stylelint ./css/*",
"start:dev": "webpack-dev-server",
"build": "webpack --mode production",
"build:dev": "webpack --mode development",
"lint": "npm run lint:typescript & npm run lint:javascript & npm run lint:style",
"lint:javascript": "eslint *.js ./src/**/*.js ./tests/**/*.js ./utils/**/*.js",
"lint:style": "stylelint ./css/*",
"lint:typescript": "tslint --project . --exclude **/*.d.ts --format stylish src/**/*.ts utils/**/*.ts",
"watch": "webpack --watch --mode production",
"watch:dev": "webpack --watch --mode development"

@ -351,14 +351,14 @@ function initBitNodeMultipliers() {
BitNodeMultipliers.CorporationValuation = 0.01;
break;
case 12: //The Recursion
let sf12Lvl = 0;
for (let i = 0; i < Player.sourceFiles.length; i++) {
var sf12Lvl = 0;
for (var i = 0; i < Player.sourceFiles.length; i++) {
if (Player.sourceFiles[i].n === 12) {
sf12Lvl = Player.sourceFiles[i].lvl;
}
}
const inc = Math.pow(1.01, sf12Lvl);
const dec = Math.pow(0.99, sf12Lvl);
var inc = Math.pow(1.01, sf12Lvl);
var dec = Math.pow(0.99, sf12Lvl);
BitNodeMultipliers.HackingLevelMultiplier = dec;
BitNodeMultipliers.ServerMaxMoney = dec;

@ -28,8 +28,8 @@ function initSettings() {
Settings.MaxPortCapacity = 50;
Settings.SuppressMessages = false;
Settings.SuppressFactionInvites = false;
Settings.SuppressTravelConfirmation = false,
Settings.SuppressBuyAugmentationConfirmation = false,
Settings.SuppressTravelConfirmation = false;
Settings.SuppressBuyAugmentationConfirmation = false;
Settings.AutosaveInterval = 60;
Settings.DisableHotkeys = false;
}

@ -198,8 +198,8 @@ function applySourceFile(srcFile) {
Player.company_rep_mult *= incMult;
break;
case 12: //The testing ground
const inc = 1 + (srcFile.level/100);
const dec = 1 - (srcFile.level/100);
var inc = 1 + (srcFile.level/100);
var dec = 1 - (srcFile.level/100);
Player.hacking_chance_mult *= inc;
Player.hacking_speed_mult *= inc;