Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit a3e7c7d

Browse files
authored
Merge pull request #98 from RyanLua/super-linter
Add Super-Linter for linting and use Stylelint configuration
2 parents 29eb594 + f968a94 commit a3e7c7d

6 files changed

Lines changed: 126 additions & 79 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Classroom Dark Mode",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"stylelint.vscode-stylelint"
8+
]
9+
}
10+
}
11+
}

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
- package-ecosystem: "devcontainers"
8+
directory: "/"
9+
schedule:
10+
interval: weekly

.github/workflows/super-linter.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint Code Base
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
run-lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
# Full git history is needed to get a proper list of changed files within `super-linter`
17+
fetch-depth: 0
18+
19+
- name: Lint Code Base
20+
uses: github/super-linter@v7
21+
env:
22+
LINTER_RULES_PATH: "/"
23+
FIX_CSS: true
24+
FIX_JSON: true
25+
VALIDATE_CSS: true
26+
VALIDATE_JSON: true
27+
VALIDATE_ALL_CODEBASE: false
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.stylelintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": [
3+
"stylelint-config-standard"
4+
],
5+
"rules": {
6+
"selector-class-pattern": null,
7+
"no-descending-specificity": null
8+
}
9+
}

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"stylelint.vscode-stylelint"
4+
]
5+
}

0 commit comments

Comments
 (0)