Showing 117 of 117 total issues
Expected a leading zero (number-leading-zero) Open
0 1px 2px 0 rgba(0, 0, 0, .14),
- Read upRead up
- Exclude checks
number-leading-zero
Require or disallow a leading zero for fractional numbers less than 1.
<!-- prettier-ignore -->a { line-height: 0.5; }
/** ↑
* This leading zero */
This rule ignores mixin parameters in Less.
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Unexpected empty line before rule (rule-empty-line-before) Open
.float-center { float: none; margin: 0 auto; }
- Read upRead up
- Exclude checks
rule-empty-line-before
Require or disallow an empty line before rules.
<!-- prettier-ignore -->a {}
/* ← */
b {} /* ↑ */
/** ↑
* This line */
This rule ignores rules that are the very first node in a source.
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule. We recommend to enable [indentation
](../indentation/README.md) rule for better autofixing results with this rule.
Expected single space after "," in a single-line list (selector-list-comma-space-after) Open
@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}
- Read upRead up
- Exclude checks
selector-list-comma-space-after
Require a single space or disallow whitespace after the commas of selector lists.
<!-- prettier-ignore -->a, b { color: pink; }
/** ↑
* The space after this comma */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected newline before "}" of a multi-line block (block-closing-brace-newline-before) Open
text-decoration: none;}
- Read upRead up
- Exclude checks
block-closing-brace-newline-before
Require a newline or disallow whitespace before the closing brace of blocks.
<!-- prettier-ignore -->a { color: pink;
}
/** ↑
* The newline before this brace */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected single space before "{" (block-opening-brace-space-before) Open
@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
- Read upRead up
- Exclude checks
block-opening-brace-space-before
Require a single space or disallow whitespace before the opening brace of blocks.
<!-- prettier-ignore -->a { color: pink; }
/** ↑
* The space before this brace */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected "#2980B9" to be "#2980b9" (color-hex-case) Open
.fill-belize-hole { fill: #2980B9; }
- Read upRead up
- Exclude checks
color-hex-case
Specify lowercase or uppercase for hex colors.
<!-- prettier-ignore -->a { color: #fff }
/** ↑
* This hex color */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Unexpected empty line before comment (comment-empty-line-before) Open
/* $BrowserSize */
- Read upRead up
- Exclude checks
comment-empty-line-before
Require or disallow an empty line before comments.
<!-- prettier-ignore -->a {}
/* ← */
/* comment */ /* ↑ */
/** ↑
* This line */
This rule ignores:
- comments that are the very first node in the source
- shared-line comments
- single-line comments with
//
(when you're using a custom syntax that supports them) - comments within selector and value lists
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule. We recommend to enable [indentation
](../indentation/README.md) rule for better autofixing results with this rule.
Unexpected empty line before comment (comment-empty-line-before) Open
/* $jQuery.equalize */
- Read upRead up
- Exclude checks
comment-empty-line-before
Require or disallow an empty line before comments.
<!-- prettier-ignore -->a {}
/* ← */
/* comment */ /* ↑ */
/** ↑
* This line */
This rule ignores:
- comments that are the very first node in the source
- shared-line comments
- single-line comments with
//
(when you're using a custom syntax that supports them) - comments within selector and value lists
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule. We recommend to enable [indentation
](../indentation/README.md) rule for better autofixing results with this rule.
Expected a trailing semicolon (declaration-block-trailing-semicolon) Open
@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}
- Read upRead up
- Exclude checks
declaration-block-trailing-semicolon
Require or disallow a trailing semicolon within declaration blocks.
<!-- prettier-ignore -->a { background: orange; color: pink; }
/** ↑
* This semicolon */
The trailing semicolon is the last semicolon in a declaration block and it is optional.
This rule ignores:
- Less mixins
- trailing
//
comments - declaration blocks containing nested (at-)rules
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected a trailing semicolon (declaration-block-trailing-semicolon) Open
@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
- Read upRead up
- Exclude checks
declaration-block-trailing-semicolon
Require or disallow a trailing semicolon within declaration blocks.
<!-- prettier-ignore -->a { background: orange; color: pink; }
/** ↑
* This semicolon */
The trailing semicolon is the last semicolon in a declaration block and it is optional.
This rule ignores:
- Less mixins
- trailing
//
comments - declaration blocks containing nested (at-)rules
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected single space after ":" with a single-line declaration (declaration-colon-space-after) Open
@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
- Read upRead up
- Exclude checks
declaration-colon-space-after
Require a single space or disallow whitespace after the colon of declarations.
<!-- prettier-ignore -->a { color: pink }
/** ↑
* The space after this colon */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected single space after ":" with a single-line declaration (declaration-colon-space-after) Open
@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
- Read upRead up
- Exclude checks
declaration-colon-space-after
Require a single space or disallow whitespace after the colon of declarations.
<!-- prettier-ignore -->a { color: pink }
/** ↑
* The space after this colon */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected quotes around "Arial" (font-family-name-quotes) Open
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Verdana, Arial, sans-serif;
- Read upRead up
- Exclude checks
font-family-name-quotes
Specify whether or not quotation marks should be used around font family names.
<!-- prettier-ignore -->a { font-family: "Times New Roman", 'Ancient Runes', serif; }
/** ↑ ↑ ↑ ↑
* These quotation marks and this one */
This rule checks the font
and font-family
properties.
This rule ignores $sass
, @less
, and var(--custom-property)
variable syntaxes.
Expected a leading zero (number-leading-zero) Open
padding: .7rem;
- Read upRead up
- Exclude checks
number-leading-zero
Require or disallow a leading zero for fractional numbers less than 1.
<!-- prettier-ignore -->a { line-height: 0.5; }
/** ↑
* This leading zero */
This rule ignores mixin parameters in Less.
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected a leading zero (number-leading-zero) Open
0 1px 3px 0 rgba(0, 0, 0, .12);
- Read upRead up
- Exclude checks
number-leading-zero
Require or disallow a leading zero for fractional numbers less than 1.
<!-- prettier-ignore -->a { line-height: 0.5; }
/** ↑
* This leading zero */
This rule ignores mixin parameters in Less.
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Unexpected empty line before comment (comment-empty-line-before) Open
/* $Classes */
- Read upRead up
- Exclude checks
comment-empty-line-before
Require or disallow an empty line before comments.
<!-- prettier-ignore -->a {}
/* ← */
/* comment */ /* ↑ */
/** ↑
* This line */
This rule ignores:
- comments that are the very first node in the source
- shared-line comments
- single-line comments with
//
(when you're using a custom syntax that supports them) - comments within selector and value lists
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule. We recommend to enable [indentation
](../indentation/README.md) rule for better autofixing results with this rule.
Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after) Open
.github-corner svg{position: absolute; top: 0; border: 0; right: 0;
- Read upRead up
- Exclude checks
declaration-block-semicolon-newline-after
Require a newline or disallow whitespace after the semicolons of declaration blocks.
<!-- prettier-ignore -->a {
color: pink;
top: 0; ↑
} ↑
/** ↑
* The newline after this semicolon */
This rule ignores:
- semicolons that are preceded by Less mixins
- the last semicolon of declaration blocks
Use the block-closing-brace-*-before
rules to control the whitespace between the last semicolon and the closing brace instead.
This rule allows an end-of-line comment followed by a newline. For example,
<!-- prettier-ignore -->a {
color: pink; /* end-of-line comment */
top: 0;
}
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected a trailing semicolon (declaration-block-trailing-semicolon) Open
.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}
- Read upRead up
- Exclude checks
declaration-block-trailing-semicolon
Require or disallow a trailing semicolon within declaration blocks.
<!-- prettier-ignore -->a { background: orange; color: pink; }
/** ↑
* This semicolon */
The trailing semicolon is the last semicolon in a declaration block and it is optional.
This rule ignores:
- Less mixins
- trailing
//
comments - declaration blocks containing nested (at-)rules
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected single space after "," (function-comma-space-after) Open
0 1px 2px 0 rgba(0,0,0,.14),
- Read upRead up
- Exclude checks
function-comma-space-after
Require a single space or disallow whitespace after the commas of functions.
<!-- prettier-ignore -->a { transform: translate(1, 1) }
/** ↑
* The space after this comma */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected a leading zero (number-leading-zero) Open
padding: .35rem .5rem;
- Read upRead up
- Exclude checks
number-leading-zero
Require or disallow a leading zero for fractional numbers less than 1.
<!-- prettier-ignore -->a { line-height: 0.5; }
/** ↑
* This leading zero */
This rule ignores mixin parameters in Less.
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.