Clang-format does not support JavaScript error #3182
Labels
I: No breaking change
Previously written code will work as before, no one should note anything changing (aside the fix)
S: Normal
Handle this with default priority
stale
Automatic marker for inactivity, please have another look here
T: External bug
Not an issue that can be solved here. (May need documentation, though)
The pre-commit hook for clang-format errors out when committing javascript files:
configuration file(s) do(es) not support JavaScript
This seems to have been introduced from changing from version 13.0.0 to 17.0.4
The problem can be solved by explicitly adding
types_or: [c++, python]
to the config file.Clang then skips the javascript file altogether.
Or we can update the clang version to >= 18.1.0
The text was updated successfully, but these errors were encountered: