UNPKG

689 BMarkdownView Raw
1# keyframes-name-pattern
2
3Specify a pattern for keyframe names.
4
5<!-- prettier-ignore -->
6```css
7@keyframes slide-right {}
8/** ↑
9 * The pattern of this */
10```
11
12## Options
13
14`regex|string`
15
16A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly.
17
18Given the string:
19
20```js
21"foo-.+";
22```
23
24The following patterns are considered violations:
25
26<!-- prettier-ignore -->
27```css
28@keyframes foo {}
29```
30
31<!-- prettier-ignore -->
32```css
33@keyframes bar {}
34```
35
36<!-- prettier-ignore -->
37```css
38@keyframes FOO-bar {}
39```
40
41The following patterns are _not_ considered violations:
42
43<!-- prettier-ignore -->
44```css
45@keyframes foo-bar {}
46```