mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-18 03:01:00 -05:00
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) |
||
|---|---|---|
| .. | ||
| announcements.ts | ||
| blackjack.ts | ||
| calculator.ts | ||
| chat-monitor.ts | ||
| COMMANDS.md | ||
| daily-spotlight.ts | ||
| datasearch.ts | ||
| hangman.ts | ||
| helptickets.ts | ||
| jeopardy.ts | ||
| lottery.ts | ||
| mafia.ts | ||
| modlog.ts | ||
| othermetas.ts | ||
| poll.ts | ||
| room-events.ts | ||
| room-faqs.ts | ||
| scavenger-games.js | ||
| scavengers.js | ||
| tcgtabletop.js | ||
| thecafe.ts | ||
| thing-of-the-day.js | ||
| trivia.js | ||
| uno.ts | ||
| wifi.ts | ||