mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-21371 improve ast selectors to match template strings in mat selectors eslint (#9458)
This commit is contained in:
parent
a03d61a304
commit
adec3e60d4
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user