Skip to content

Commit

Permalink
Add test + todo
Browse files Browse the repository at this point in the history
  • Loading branch information
benasher44 committed Jun 25, 2023
1 parent 668af42 commit 73a7e84
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Empty file.
29 changes: 29 additions & 0 deletions tests/src/rules/extensions.js
Expand Up @@ -614,6 +614,35 @@ ruleTester.run('extensions', rule, {
},
],
}),

// TODO: properly ignore packages resolved via relative imports
test({
code: [
'import * as test from "."',
].join('\n'),
filename: testFilePath('./internal-modules/test.js'),
options: [ 'ignorePackages' ],
errors: [
{
message: 'Missing file extension for "."',
line: 1,
},
],
}),
// TODO: properly ignore packages resolved via relative imports
test({
code: [
'import * as test from ".."',
].join('\n'),
filename: testFilePath('./internal-modules/plugins/plugin.js'),
options: [ 'ignorePackages' ],
errors: [
{
message: 'Missing file extension for ".."',
line: 1,
},
],
}),
],
});

Expand Down

0 comments on commit 73a7e84

Please sign in to comment.