Big update! The #ESLint team is expanding its horizons by adding official support for the #CSS language, alongside JSON and Markdown linting.
Get all the details on #InfoQ https://bit.ly/4kTPMyW
Big update! The #ESLint team is expanding its horizons by adding official support for the #CSS language, alongside JSON and Markdown linting.
Get all the details on #InfoQ https://bit.ly/4kTPMyW
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.
Formatting issues are never discussed in #codereview; just #eslint rules. #prettier is a given here.
No fighting about this either; everyone on the project votes, and the most popular rule setting wins and everyone moves on.
Hold up a minute! ESLint changed their config files? I can't use .eslintrc anymore?
Meanwhile, if you know #eslint, WrongSecrets also needs to migrate to the new eslint configuration. https://github.com/OWASP/wrongsecrets/pull/1335
Oh hell, there is new work on the horizon. TypeScript #ESLint v6 just came out (https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/), but ESLint 9 not yet, which adds a new config format (https://eslint.org/docs/latest/use/configure/configuration-files-new), and everything is going to be broken when it comes to code style tooling for the next 12 months, I fear.
#JavaScript