Skip to content

Commit 45b7427

Browse files
authored
Merge pull request DSpace#4876 from alexandrevryghem/w2p-136503_fix-themed-component-selectors-rule
Fixed lint rule `themed-component-selectors` not working on Windows
2 parents 248f4de + 96f6908 commit 45b7427

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lint/src/util/theme-support.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
getComponentClassName,
1818
isPartOfViewChild,
1919
} from './angular';
20+
import { toUnixStylePath } from './misc';
2021
import {
2122
isPartOfClassDeclaration,
2223
isPartOfTypeExpression,
@@ -127,7 +128,7 @@ class ThemeableComponentRegistry {
127128
continue;
128129
}
129130

130-
const basePath = resolveLocalPath((importDeclaration.moduleSpecifier as ts.StringLiteral).text, path);
131+
const basePath = resolveLocalPath((importDeclaration.moduleSpecifier as ts.StringLiteral).text, toUnixStylePath(path));
131132

132133
themeableComponents.add({
133134
baseClass,

0 commit comments

Comments
 (0)