Skip to content

Commit

Permalink
Add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Jan 9, 2024
1 parent 06deeb2 commit fe4cf07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/rules/jsx-filename-extension.js
Expand Up @@ -97,6 +97,11 @@ ruleTester.run('jsx-filename-extension', rule, {
code: onlyComments,
options: [{ allow: 'as-needed', ignoreFilesWithoutCode: true }],
},
{
filename: 'MyComponent.jsx',
code: '',
options: [{ allow: 'as-needed', ignoreFilesWithoutCode: true }],
},
]),

invalid: parsers.all([
Expand Down

0 comments on commit fe4cf07

Please sign in to comment.