1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 04:07:21 -04:00
notes/node_modules/stylelint/lib/rules/at-rule-name-case/README.md
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

1.0 KiB

at-rule-name-case

Specify lowercase or uppercase for at-rules names.

   @media (min-width: 10px) {}
/** ↑
 * These at-rule names */

Only lowercase at-rule names are valid in SCSS.

Options

string: "lower"|"upper"

"lower"

The following patterns are considered warnings:

@Charset 'UTF-8';
@cHarSeT 'UTF-8';
@CHARSET 'UTF-8';
@Media (min-width: 50em) {}
@mEdIa (min-width: 50em) {}
@MEDIA (min-width: 50em) {}

The following patterns are not considered warnings:

@charset 'UTF-8';
@media (min-width: 50em) {}

"upper"

The following patterns are considered warnings:

@Charset 'UTF-8';
@cHarSeT 'UTF-8';
@charset 'UTF-8';
@Media (min-width: 50em) {}
@mEdIa (min-width: 50em) {}
@media (min-width: 50em) {}

The following patterns are not considered warnings:

@CHARSET 'UTF-8';
@MEDIA (min-width: 50em) {}