Closed
Description
Given the config
rules:
react/jsx-filename-extension: [2, {allow: as-needed]}]
a file that is empty or contains only comments triggers the rule, for example a .jsx
file with:
// Put your components here
I think a option to allow empty files when as-needed
is specified would be ideal for this use case, not sure whether it should be the default, but I think it could be.