pokemon-showdown/lib
Waleed Hassan 8aa4f053bb
Use optional chaining and linter improvements (#6422)
This is mostly just a follow up to #6342.

`prefer-optional-chaining` was turned on and fixed in every location it
complained in. The transformed function [0] looks expensive from a
glance but from skimming through the replaced sites it doesn't appear
to be ran in any important place, so it should be OK.

The linter improvements are:
- Increase linter performance
	- Make `full-lint` and `lint` write to different caches so we
	  avoid overwriting their caches since they're different configs
	- Change husky's hook to `npm run lint` so as to write to the
	  same cache
	- Remove `@typescript-eslint/eslint-plugin-tslint` which is
	  essentially a wrapper to TSLint because the rules aren't worth
	  running another linter
- Convert `.eslintrc.json` and `.eslintrc-syntax.json` to two spaces
  rather than four tabs to respect PS' `.editorconfig`
- Rename `fulllint` to `full-lint` to ease spelling it

[0] - https://pastie.io/mmtxpf.js (prettified)
2020-03-06 11:44:32 -08:00
..
crashlogger.ts Remove import = and export = 2019-05-16 01:27:07 +04:00
DASHYCODE.md Clarify Dashycode documentation 2019-07-12 02:04:07 -05:00
dashycode.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
fs.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
process-manager.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
repl.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
STREAMS.md Propagate errors through streams 2019-03-17 07:48:02 +09:00
streams.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00