Skip to content

Commit

Permalink
AAE-21371 improve ast selectors to match template strings in mat sele…
Browse files Browse the repository at this point in the history
…ctors eslint (#9458)
  • Loading branch information
wojd0 authored Mar 22, 2024
1 parent a03d61a commit adec3e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import type { TSESTree } from '@typescript-eslint/utils';
export const RULE_NAME = 'no-angular-material-selectors';

const ASTSelectors = [
':not(Property[key=template]) > Literal[value=/(\\.|\\s|^)(mat-(?!datetimepicker)|mdc-)/i]',
':not(Property[key.name="template"]) TemplateLiteral[quasis.value.raw=/(\\.|\\s|^)(mat-(?!datetimepicker)|mdc-)/i]'
':not(Property[key.name="template"]) Literal[value=/(\\.|\\s|^)(mat-(?!datetimepicker)|mdc-)/i]',
':not(Property[key.name="template"]) > TemplateLiteral > TemplateElement[value.raw=/(\\.|\\s|^)(mat-(?!datetimepicker)|mdc-)/i]'
];

const messages = {
Expand Down

0 comments on commit adec3e6

Please sign in to comment.