Skip to content

Commit

Permalink
refactor(regex): rename regex import (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl authored Feb 27, 2024
1 parent 1d5d50a commit 167d113
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/properties/order.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/rules/css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import REGEXP from '../utils/regexps.ts';
import regex from '../utils/regexps.ts';

export default {
'at-rule-disallowed-list': ['debug'],
Expand All @@ -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)',
},
Expand Down

0 comments on commit 167d113

Please sign in to comment.