We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3fc26 commit 62b3bccCopy full SHA for 62b3bcc
src/index.spec.ts
@@ -27,9 +27,8 @@ const tests = {
27
},
28
aliasForSubpaths: {
29
code: "import '@/foo'",
30
- filename: 'sub/index.ts',
31
files: { 'foo.ts': '' },
32
- options: { alias: { '@': '.' }, aliasForSubpaths: false },
+ options: { alias: { '@': '.' }, aliasForSubpaths: true },
33
34
babelrc: {
35
code: "import '../foo'",
src/rules/prefer-alias.ts
@@ -108,7 +108,7 @@ export default {
108
if (
109
!isParentImport(importWithoutAlias) &&
110
hasAlias &&
111
- !options.allowSubpathWithAlias
+ !options.aliasForSubpaths
112
) {
113
return context.report({
114
fix: fixer =>
0 commit comments