Commit Graph

3 Commits

Author SHA1 Message Date
danielyxie
5ede6be8e5 Refactored functions that calculate hacking time/exp gain/chance/ etc into a separate file 2018-08-30 12:00:38 -05:00
Steven Evans
1857103511 [chore] Disable "no-inferrable-types" lint rule
After discussing the conflicting 'typedef' vs. 'no-inferrable-types'
TSLint rules (https://github.com/palantir/tslint/issues/711) in the
Discord #development channel, the conclusion was to disable this rule in
order to be uniform and explicit in what all declarations are. Although
it's more verbose, it will help us out in the long run.
2018-06-24 21:49:07 -04:00
Steven Evans
9c09e44db2 [refactor, chore] Including TSLint; fixing most things.
As it currently stands, bringing in TSLint with *all* rules enabled by
default and override each as we go. This means that as we upgrade and
bring in new rules we might start seeing new rules that the code
violates.

Because all the rules are enabled by default, the choice to explicitly
disable/relax rules can be discussed as part of PRs.

This also brought in strict type checking. This means we shouldn't be
relying on truthy/falsey value coercion. It also means that we will
likely need to create some type definition files or port certain files
over. That...will be a bit tedious, but will make the codebase better as
a whole.
2018-06-14 14:57:44 -04:00