cannawen / dota-gsi-discord-bot

Use Dota 2's Game State Integration API to make helpful announcements in a discord voice channel
MIT License
5 stars 2 forks source link

Add javascript linter #3

Closed cannawen closed 1 year ago

cannawen commented 1 year ago
cannawen commented 1 year ago

OK, so this is why it was so hard to get eslint to format our code. It wasn't intended for formatting. https://typescript-eslint.io/linting/troubleshooting/formatting/

Reopening issue so we can format the "proper" way

cannawen commented 1 year ago

Re-opening. Need to add back certain rules

cannawen commented 1 year ago

Both prettier and eslint are working now.

We are not using eslint to auto --fix anything but it is warning us in the IDE or when we run npm run lint so this is good enough. Still a bit confused on why prettier extension in .eslintrc disables all our yellow squiggles in the IDE, but whatever.