[Housekeeping] Replace prettier with stylistic, improve types, and add no-undef rule#1975
Conversation
|
Hm..yah, I tested the current branch, setting up the symlink and all. The autocompletion of
|
|
Did you run npm ci? Interesting that you're getting garbo blank space without prettier though. Maybe the garbo blank space is by something else? It went away when I replaced prettier. Oh well, I prefer how stylistic handles nested ternaries better. The 2 space indentation was annoying. |
WBHarry
left a comment
There was a problem hiding this comment.
Huh, well I'll be.
I was not aware of the difference between npm install and npm ci until I looked it up now. I ran install before - but clearly the reinstall was needed.
It works. And I generally like non-forced indentation, so it's all good with me 👍
|
Oh it still indents, but with a multiple of 4 instead of sometimes indenting by 2 because there's a I will get something in to make dev setup neater easier, but with this hopefully one type of error will cleanly not exist anymore, and now the jsdoc type stuff can actually work. |
Most changes are indentation based, since stylistic has different preferences. The main benefit is that now if you set up the symlinks so that foundry is linked up right, the types should more or less function and undeclared stuff should warn immediately.
No unused vars has a lot of violations so I didn't turn it on yet.
Other changes are: