3 ms·
I don't mind tabs or spaces, and I don't even know what I use in a given project. I use the defaults from rustfmt in rust, eslint or biome in TypeScript/JavaScr
by speedgoose 8mo ago
I don't mind tabs or spaces, and I don't even know what I use in a given project. I use the defaults from rustfmt in rust, eslint or biome in TypeScript/JavaScript, or ruff in Python. I also have some .editorconfig files so my editor is automatically configured correctly.
Importantly, I do tell the agents to always run the linters and use the auto-formatters if needed. They get it. Don't make them format code, it's slow. The auto formatters are better and they should use them.
I also don't like any or unknown and I have some eslint rules against those, and the agents will notice and fix their code, automatically without being asked. I guess you can also find some linting rules against ternaries, or too short variables. I like eslint-plugin-unicorn for example and I think it has rules for that by default.
It's not very different that working with other people.