mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-20779 make selector regex more precise (#9431)
* AAE-20779 improve regex part 1 * AAE-20779 match nested selectors * AAE-20779 only match classes * AAE-20779 remove message changes * AAE-20779 add matching for tag names
This commit is contained in:
parent
0a1fd8dd2e
commit
c7db54dc8b
@ -21,8 +21,8 @@ import type { TSESTree } from '@typescript-eslint/utils';
|
|||||||
export const RULE_NAME = 'no-angular-material-selectors';
|
export const RULE_NAME = 'no-angular-material-selectors';
|
||||||
|
|
||||||
const ASTSelectors = [
|
const ASTSelectors = [
|
||||||
':not(Property[key=template]) > Literal[value=/(mat|mdc)-(?!datetimepicker)/i]',
|
':not(Property[key=template]) > Literal[value=/(\\.|\\s|^)(mat-(?!datetimepicker)|mdc-)/i]',
|
||||||
':not(Property[key.name="template"]) TemplateLiteral[quasis.value.raw=/(mat|mdc)-(?!datetimepicker)/i]'
|
':not(Property[key.name="template"]) TemplateLiteral[quasis.value.raw=/(\\.|\\s|^)(mat-(?!datetimepicker)|mdc-)/i]'
|
||||||
];
|
];
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user