File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 * http://www.dspace.org/license/
77 */
88import { TmplAstElement } from '@angular-eslint/bundled-angular-compiler' ;
9- import { getTemplateParserServices } from '@angular-eslint/utils' ;
9+ import { TemplateParserServices } from '@angular-eslint/utils' ;
1010import {
1111 ESLintUtils ,
1212 TSESLint ,
@@ -21,7 +21,10 @@ import {
2121 DISALLOWED_THEME_SELECTORS ,
2222 fixSelectors ,
2323} from '../../util/theme-support' ;
24- import { getFilename } from '../../util/typescript' ;
24+ import {
25+ getFilename ,
26+ getSourceCode ,
27+ } from '../../util/typescript' ;
2528
2629export enum Message {
2730 WRONG_SELECTOR = 'mustUseThemedWrapperSelector' ,
@@ -55,7 +58,7 @@ export const rule = ESLintUtils.RuleCreator.withoutDocs({
5558 return { } ;
5659 }
5760
58- const parserServices = getTemplateParserServices ( context as any ) ;
61+ const parserServices = getSourceCode ( context ) . parserServices as TemplateParserServices ;
5962
6063 return {
6164 [ `Element$1[name = /^${ DISALLOWED_THEME_SELECTORS } /]` ] ( node : TmplAstElement ) {
Original file line number Diff line number Diff line change 142142 "@angular-builders/custom-webpack" : " ~17.0.1" ,
143143 "@angular-devkit/build-angular" : " ^17.3.0" ,
144144 "@angular-eslint/builder" : " 17.2.1" ,
145- "@angular-eslint/bundled-angular-compiler" : " 16.3 .1" ,
145+ "@angular-eslint/bundled-angular-compiler" : " 17.2 .1" ,
146146 "@angular-eslint/eslint-plugin" : " 17.2.1" ,
147147 "@angular-eslint/eslint-plugin-template" : " 17.2.1" ,
148148 "@angular-eslint/schematics" : " 17.2.1" ,
Original file line number Diff line number Diff line change 183183 "@nx/devkit" "17.2.8"
184184 nx "17.2.8"
185185
186- "@angular-eslint/bundled-angular-compiler@16.3.1":
187- version "16.3.1"
188- resolved "https://registry.yarnpkg.com/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-16.3.1.tgz#c4e9828020e26be17abb87197118a7faaa8a97c5"
189- integrity sha512-m4WP1xwS9XLcC/3n6lIcG5HZoai/5eb5W3xm48GVcv//0qE2p7S96RSgKPgGHvif5pF8O9xAqEWs3gDEG45+7A==
190-
191186"@angular-eslint/bundled-angular-compiler@17.2.1":
192187 version "17.2.1"
193188 resolved "https://registry.yarnpkg.com/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-17.2.1.tgz#d849b0845371b41856b9f598af81ce5bf799bca0"
You can’t perform that action at this time.
0 commit comments