AAE-49656 eslint 10 migration (#12146)

* AAE-49656 eslint 10 migration

* update
This commit is contained in:
Bartosz Sekula
2026-08-10 10:25:17 +02:00
committed by GitHub
parent 015fa82e36
commit 0766d2b415
4 changed files with 171 additions and 203 deletions
@@ -62,7 +62,7 @@ export default createESLintRule<unknown[], MessageIds>({
create(context) {
return {
[ASTSelectors.join(',')](node: TSESTree.Literal | TSESTree.TemplateLiteral) {
const message = filetypeErrors.find((fileTypeError) => context.getFilename().match(fileTypeError.regexp)) || {
const message = filetypeErrors.find((fileTypeError) => context.filename.match(fileTypeError.regexp)) || {
messageId: 'noAngularMaterialSelectors'
};