1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:27:23 -04:00
notes/node_modules/stylelint/lib/rules/no-unknown-animations
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

no-unknown-animations

Disallow unknown animations.

a { animation-name: fancy-slide; }
/**                    ↑
 *   This animation name */

a { animation: fancy-slide 2s linear; }
/**                    ↑
 *           And this one */

This rule considers the identifiers of @keyframes rules defined within the same source to be known.

Options

true

The following patterns are considered warnings:

a { animation-name: fancy-slide; }
a { animation: fancy-slide 2s linear; }
a { animation-name: fancccy-slide; }
@keyframes fancy-slide {}
a { animation: linear 100ms fancccy-slide; }
@keyframes fancy-slide {}
a { animation-name: jump; }
@keyframes fancy-slide {}

The following patterns are not considered warnings:

a { animation-name: fancy-slide; }
@keyframes fancy-slide {}
@keyframes fancy-slide {}
a { animation-name: fancy-slide; }
@keyframes fancy-slide {}
a { animation: fancy-slide 2s linear; }
a { animation: 100ms steps(12, end) fancy-slide; }
@keyframes fancy-slide {}