-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from scpwiki/stylelint
Add stylelint
- Loading branch information
Showing
4 changed files
with
597 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on: | ||
push: | ||
paths: | ||
- '*.css' | ||
|
||
name: Stylelint | ||
|
||
jobs: | ||
lint: | ||
name: Check CSS | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-hub/stylelint@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
|
||
extends: stylelint-config-standard | ||
|
||
rules: | ||
linebreaks: unix | ||
indentation: tab | ||
unicode-bom: never | ||
|
||
max-empty-lines: 2 | ||
max-line-length: 80 | ||
max-nesting-depth: 2 | ||
no-eol-whitespace: true | ||
no-empty-first-line: true | ||
no-missing-end-of-source-newline: true | ||
|
||
no-unknown-animations: true | ||
|
||
number-leading-zero: never | ||
rule-empty-line-before: | ||
- always | ||
- except: ['after-single-line-comment', 'first-nested'] | ||
property-case: lower | ||
value-keyword-case: lower | ||
string-quotes: single | ||
color-hex-case: lower | ||
font-family-name-quotes: always-where-recommended | ||
|
||
comment-empty-line-before: | ||
- always | ||
- except: ['first-nested'] | ||
comment-whitespace-inside: always | ||
comment-word-disallowed-list: ['TODO', 'FIXME'] | ||
|
||
value-list-comma-newline-after: always-multi-line | ||
value-list-comma-newline-before: never-multi-line | ||
value-list-comma-space-after: always-single-line | ||
value-list-comma-space-before: never | ||
value-list-max-empty-lines: 0 | ||
|
||
declaration-block-semicolon-newline-after: always-multi-line | ||
declaration-block-semicolon-newline-before: never-multi-line | ||
declaration-block-semicolon-space-after: always-single-line | ||
declaration-block-semicolon-space-before: never | ||
declaration-block-trailing-semicolon: always | ||
|
||
declaration-bang-space-after: never | ||
declaration-bang-space-before: always | ||
declaration-colon-newline-after: always-multi-line | ||
declaration-colon-space-after: always-single-line | ||
declaration-colon-space-before: never | ||
declaration-empty-line-before: never | ||
|
||
custom-property-empty-line-before: never | ||
|
||
block-closing-brace-empty-line-before: never | ||
block-closing-brace-newline-after: always | ||
block-closing-brace-newline-before: always | ||
block-closing-brace-space-after: never-single-line | ||
block-closing-brace-space-before: always-single-line | ||
block-opening-brace-newline-after: always-multi-line | ||
block-opening-brace-newline-before: never-single-line | ||
block-opening-brace-space-after: always-single-line | ||
block-opening-brace-space-before: always | ||
|
||
selector-list-comma-newline-after: always-multi-line | ||
selector-list-comma-newline-before: never-multi-line | ||
selector-list-comma-space-after: always-single-line | ||
selector-list-comma-space-before: never-single-line | ||
|
||
selector-attribute-brackets-space-inside: never | ||
selector-attribute-operator-space-after: never | ||
selector-attribute-operator-space-before: never | ||
selector-combinator-space-after: always | ||
selector-combinator-space-before: always | ||
selector-descendant-combinator-no-non-space: true | ||
selector-pseudo-class-case: lower | ||
selector-pseudo-class-parentheses-space-inside: never | ||
selector-pseudo-element-case: lower | ||
selector-type-case: lower | ||
|
||
at-rule-name-case: lower | ||
at-rule-name-space-after: always-single-line | ||
at-rule-semicolon-newline-after: always | ||
at-rule-semicolon-space-before: never | ||
|
||
media-query-list-comma-newline-after: always-multi-line | ||
media-query-list-comma-newline-before: never-multi-line | ||
media-query-list-comma-space-after: always | ||
media-query-list-comma-space-before: never | ||
|
||
media-feature-colon-space-after: always | ||
media-feature-colon-space-before: never | ||
media-feature-name-case: lower | ||
media-feature-parentheses-space-inside: never | ||
media-feature-range-operator-space-after: always | ||
media-feature-range-operator-space-before: always | ||
|
||
# Disable this rule for now, it produces hundreds of incidents | ||
# and would require significant refactoring to resolve. | ||
no-descending-specificity: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.