diff --git a/src/properties/order.ts b/src/properties/order.ts index 7e86f22..e6e39cb 100644 --- a/src/properties/order.ts +++ b/src/properties/order.ts @@ -1,4 +1,4 @@ -import REGEXP from '../utils/regexps.ts'; +import regex from '../utils/regexps.ts'; import deprecated from './deprecated.ts'; import experimental from './experimental.ts'; @@ -156,12 +156,12 @@ export default { await createRule(nonStandardPseudoClassMozilla.suppressed), await createRule(nonStandardPseudoClassMozilla.userDisabled), await createRule(nonStandardPseudoClassMozilla.windowInactive), - await createRule(REGEXP.NESTED.ATTRIBUTE), - await createRule(REGEXP.NESTED.CLASS), - await createRule(REGEXP.NESTED.MODIFIER), - await createRule(REGEXP.NESTED.ELEMENT), - await createRule(REGEXP.CHILD.ATTRIBUTE), - await createRule(REGEXP.CHILD.CLASS), + await createRule(regex.NESTED.ATTRIBUTE), + await createRule(regex.NESTED.CLASS), + await createRule(regex.NESTED.MODIFIER), + await createRule(regex.NESTED.ELEMENT), + await createRule(regex.CHILD.ATTRIBUTE), + await createRule(regex.CHILD.CLASS), 'rules', await createAtRule('include', true), 'at-rules', diff --git a/src/rules/css.ts b/src/rules/css.ts index 761b416..662c101 100644 --- a/src/rules/css.ts +++ b/src/rules/css.ts @@ -1,4 +1,4 @@ -import REGEXP from '../utils/regexps.ts'; +import regex from '../utils/regexps.ts'; export default { 'at-rule-disallowed-list': ['debug'], @@ -17,7 +17,7 @@ export default { 'no-descending-specificity': null, 'no-unknown-animations': true, 'selector-class-pattern': [ - `^${REGEXP.BEM.BLOCK}*${REGEXP.BEM.ELEMENT}?${REGEXP.BEM.MODIFIER}?$`, + `^${regex.BEM.BLOCK}*${regex.BEM.ELEMENT}?${regex.BEM.MODIFIER}?$`, { message: 'Expected lowercase class name by BEM (block__element--modifier)', },