Ignoring unhandled files matched by pattern (alternative to Prettier’s --ignore-unknown
)
#4267
Replies: 2 comments 1 reply
-
+1 on this one... When any of the stage file is of a format that is currently not supported by rome, this ends up with in × unhandled file type error While the workaround to list all supported file type is pretty simple to apply, it has one major downside: It would need to be updated manually every time rome adds support for new file type. An option like --ignore-unknown in prettier would definitely be a nicer touch |
Beta Was this translation helpful? Give feedback.
-
That sounds like a reasonable request, and I suppose ALL commands - |
Beta Was this translation helpful? Give feedback.
-
With Prettier, I can use the following to format staged files:
Here, the option --ignore-unknown makes unknown file types to be silently ignored. This way I don’t have to list all the supported file extensions in the glob pattern of
lint-staged
, like*{css,html,js,json,md,ts}
.Rome seems to have no such option. Could it be added? Note that the potential option should apply to
rome check
in addition torome format
.Beta Was this translation helpful? Give feedback.
All reactions