Vencord
Vencord copied to clipboard
Migration to flat config
This PR migrates the ESLint config away from .eslintrc.json to eslint.config.mjs
- Updated ESLint related packages (including the patch for
no-useless-escape)
I tried to keep changes minimal, but some things probably should be checked.
- Unsure if
path-alias/no-relativerule is working. I think the plugin needs to be updated. (Upstream is as ~v2) However, this was another patched package, and I do not have an adequate understanding of patches to re-patch it (Upstream has been rewritten to TS, but its a simple patch so I don't think it should be too hard) - Some weird indentation issues in
src/utils/types.ts,src/shared/SettingsStore.ts, andsrc/api/Settings.tsI am leaving these up to you to review, as I'm not sure what your preference is. - A few other warnings (6 unused
eslint-disables. Leaving this up to you to review.)
Hi @Vendicated I was able to patch the package in c9982b5, and this resolved the issues related to no-relative
It's not very clean, but the node module is all minified so I don't think it can be any better than it is at the moment.
oh god wtf is that diff
thanks I'll have a look tomorrow
thanks for your work!
Thanks a lot!!