Skip to content

Commit d67a848

Browse files
Use variable for pattern
1 parent cd2ed45 commit d67a848

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ const config = [
8282
"rules": {
8383
"@stylistic/array-element-newline": "off",
8484
"@stylistic/indent": ["error", 2],
85-
"no-magic-numbers": "off"
85+
"no-magic-numbers": "off",
86+
"one-var": "off"
8687
}
8788
}
8889
];

stylelint.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
const pattern = "^(MMM-CalendarExt2|CX2|fake_module|module-content|[a-z][a-zA-Z0-9]+(_\\d+)?)$";
12
const config = {
23
"extends": ["stylelint-config-standard"],
34
"plugins": ["stylelint-prettier"],
45
"root": true,
56
"rules": {
67
"declaration-block-no-redundant-longhand-properties": null,
7-
"keyframes-name-pattern": "^(MMM-CalendarExt2|CX2|fake_module|module-content|[a-z][a-zA-Z0-9]+(_\\d+)?)$",
8+
"keyframes-name-pattern": pattern,
89
"no-descending-specificity": null,
910
"prettier/prettier": true,
1011
"rule-empty-line-before": null,
11-
"selector-class-pattern": "^(MMM-CalendarExt2|CX2|fake_module|module-content|[a-z][a-zA-Z0-9]+(_\\d+)?)$"
12+
"selector-class-pattern": pattern
1213
}
1314
};
1415

0 commit comments

Comments
 (0)