Skip to content

Commit

Permalink
Merge pull request #34 from scpwiki/stylelint
Browse files Browse the repository at this point in the history
Add stylelint
  • Loading branch information
Ammon Smith authored Nov 27, 2020
2 parents 5e9dda5 + af76f4a commit 2e92118
Show file tree
Hide file tree
Showing 4 changed files with 597 additions and 481 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/stylelint.yaml
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
101 changes: 101 additions & 0 deletions .stylelintrc.yaml
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
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Sigma-9

<p>
<a href="https://github.com/scpwiki/sigma9/actions?query=workflow%3A%22Stylelint%22">
<img src="https://github.com/scpwiki/sigma9/workflows/Stylelint/badge.svg"
alt="Rust CI badge">
</a>
</p>

This is the repository for the Sigma-9 theme, the default CSS used to style the [SCP Wiki](http://www.scpwiki.com). It was originally created by [Aelanna](http://www.wikidot.com/user:info/aelanna) and is presently maintained by the SCP Wiki Technical Team.

This theme is available under the wiki's [Creative Commons Attribution-ShareAlike 3.0 license (CC-BY-SA)](https://creativecommons.org/licenses/by-sa/3.0/).
Expand Down
Loading

0 comments on commit 2e92118

Please sign in to comment.