-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Move Stylelint to GitHub action and fix broken config…
… (pull #1518) * chore: Use GitHub Actions to run Stylelint * Includes problem matcher to show inline error messages on PRs * fix: Stylelint config was invalid * fix: Use auto-fix for stylelint issues * fix(stylelint): Unexpected duplicate selector * fix(stylelint): max-empty-lines * chore(styeling): Disable no-descending-specificity
- Loading branch information
Showing
12 changed files
with
84 additions
and
95 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,36 @@ | ||
name: CSS Linting | ||
on: | ||
push: | ||
paths: | ||
- "package*.json" | ||
- ".stylelint*" | ||
- "**/*.css" | ||
- ".github/workflows/lint-css.yml" | ||
- "!common/**" | ||
|
||
pull_request: | ||
paths: | ||
- "package*.json" | ||
- ".stylelint*" | ||
- "**/*.css" | ||
- ".github/workflows/lint-css.yml" | ||
- "!common/**" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
|
||
- uses: xt0rted/stylelint-problem-matcher@v1 | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Stylelint | ||
run: npm run lint:css |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"rules": { | ||
"media-feature-name-no-unknown": [true, | ||
"ignoreMediaFeatureNames": ["forced-colors"] ] | ||
"media-feature-name-no-unknown": [ | ||
true, | ||
{ | ||
"ignoreMediaFeatureNames": [ | ||
"forced-colors" | ||
] | ||
} | ||
], | ||
"no-descending-specificity": null | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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.