veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

47
active users

#eslint

0 posts0 participants0 posts today

Silly `eslint` question for the #JavaScript gurus out there, is there a flag or configuration setting I can pass to `eslint` to check a file altered with `eslint --fix` (`prettier` plug-in is involved) to ensure it remains syntactically valid?

I've got a problem where after running `eslint --fix` on a file, the result goes from "working but not conform-ant with style rules" to "conform-ant but now has syntax errors and doesn't work".

e.g. finding `);` in the middle of a function after it's "fixed" a file.

I figure if the linter can run the prettier, then check the resulting file is still valid JS (syntactically correct), that'd catch a lot of issues.