One example is package.json. It's a JSON file, yeah, and normally doesn't contain any code. But one of the fields is `scripts` which can contain a object with a key like `preinstall` (and more) that runs those as shell commands at different lifecycle of using `npm`.
So just because you're using those languages/syntaxes, doesn't mean there isn't any way of executing code via them.