obsidian-better-command-palette
obsidian-better-command-palette copied to clipboard
Turned on "strict" in tsconfig
This PR turns on "strict" in tsconfig.json and fixes the resulting type errors, mostly by adding the "!" character to assert that values are non-null and member variables are initialized before they are used, based on the assumption that the existing code is correct.
It also fixes a bunch of eslint errors and re-enables eslint in rollup.config.js.
It seems I accidentally turned my last PR into a no-op, so here it is again.
I also encountered a bunch of eslint errors that weren't there before and discovered that eslint got turned off in the rollup config, so I fixed those problems, too. I'm not sure how that happened unless maybe you updated your master branch after I created my first PR. Anyway, it's fixed now.