Skip to content

Commit 3a0c964

Browse files
committed
Upgrade @angular-eslint & get rid of warning in tests
1 parent 348dcc4 commit 3a0c964

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

lint/src/rules/html/themed-component-usages.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.dspace.org/license/
77
*/
88
import { TmplAstElement } from '@angular-eslint/bundled-angular-compiler';
9-
import { getTemplateParserServices } from '@angular-eslint/utils';
9+
import { TemplateParserServices } from '@angular-eslint/utils';
1010
import {
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

2629
export 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) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
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",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,6 @@
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"

0 commit comments

Comments
 (0)