Showing 117 of 117 total issues
Expected newline after "}" (block-closing-brace-newline-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
block-closing-brace-newline-after
Require a newline or disallow whitespace after the closing brace of blocks.
<!-- prettier-ignore -->a { color: pink; }
a { color: red; }↑
/** ↑
* The newline after this brace */
This rule allows an end-of-line comment separated from the closing brace by spaces, as long as the comment contains no newlines. For example,
<!-- prettier-ignore -->a {
color: pink;
} /* end-of-line comment */
This rule allows a trailing semicolon after the closing brace of a block. For example,
<!-- prettier-ignore -->:root {
--toolbar-theme: {
background-color: hsl(120, 70%, 95%);
};
/* ↑
* This semicolon */
}
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 "{" of a single-line block (block-opening-brace-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
block-opening-brace-space-after
Require a single space or disallow whitespace after the opening brace of blocks.
<!-- prettier-ignore -->a { color: pink; }
/** ↑
* The space after this brace */
The [fix
option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
Expected "#bbb" to be "#bbbbbb" (color-hex-length) Open
color: #bbb;
- Read upRead up
- Exclude checks
color-hex-length
Specify short or long notation 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.
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 single space after "," (function-comma-space-after) Open
0 1px 3px 0 rgba(0,0,0,.12);
- 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
0 2px 1px -2px rgba(0,0,0,.2),
- 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 single space before "{" (block-opening-brace-space-before) Open
.github-corner svg{position: absolute; top: 0; border: 0; right: 0;
- 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 "#2C3e50" to be "#2c3e50" (color-hex-case) Open
background: #2C3e50;
- 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.
Expected "#ddd" to be "#dddddd" (color-hex-length) Open
background: linear-gradient(to right, transparent 0%, #ddd 50%, transparent 100%);
- Read upRead up
- Exclude checks
color-hex-length
Specify short or long notation 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.
Expected single space after ":" with a single-line declaration (declaration-colon-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
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 single space after ":" (media-feature-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
media-feature-colon-space-after
Require a single space or disallow whitespace after the colon in media features.
<!-- prettier-ignore -->@media (max-width: 600px) {}
/** ↑
* 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 before "}" of a single-line block (block-closing-brace-space-before) Open
@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}
- Read upRead up
- Exclude checks
block-closing-brace-space-before
Require a single space or disallow whitespace before the closing 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 single space after "{" of a single-line block (block-opening-brace-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
block-opening-brace-space-after
Require a single space or disallow whitespace after the opening brace of blocks.
<!-- prettier-ignore -->a { color: pink; }
/** ↑
* The space after this brace */
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.
Unexpected empty line before comment (comment-empty-line-before) Open
/* $jQuery.leanModal2 */
- 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 single space after "," (function-comma-space-after) Open
0 1px 3px 0 rgba(0,0,0,.12);
- 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: .7rem 1rem;
- 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 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.