pokemon-showdown/server/chat-plugins
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
..
announcements.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
blackjack.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
calculator.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
chat-monitor.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
COMMANDS.md Rename Room#id -> Room#roomid, User#userid -> User#id (#5826) 2019-10-03 18:57:38 +10:00
daily-spotlight.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
datasearch.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
hangman.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
helptickets.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
jeopardy.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
lottery.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
mafia.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
modlog.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
othermetas.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
poll.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
room-events.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
room-faqs.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
scavenger-games.js Rename Room#id -> Room#roomid, User#userid -> User#id (#5826) 2019-10-03 18:57:38 +10:00
scavengers.js Use Chat.html`` a bit more 2019-11-27 15:14:46 +01:00
tcgtabletop.js Rename Room#id -> Room#roomid, User#userid -> User#id (#5826) 2019-10-03 18:57:38 +10:00
thecafe.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
thing-of-the-day.js TOTD: refactor to improve loading 2019-10-29 20:06:38 +01:00
trivia.js Trivia: nuke | 0 int flooring hack 2019-12-13 08:07:35 -04:00
uno.ts Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
wifi.ts Wifi: Remove friendcodes from giveaways 2020-03-06 00:05:52 +01:00