Skip to content

Commit b14eeea

Browse files
Add Stylelint feature
1 parent e24b217 commit b14eeea

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

src/stylelint/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# stylelint
2+
3+
Install and configure [Stylelint](https://stylelint.io)'s [official Visual Studio Code extension](https://github.com/stylelint/vscode-stylelint).
4+
5+
## Usage
6+
7+
```json
8+
"features": {
9+
"ghcr.io/CargoSense/devcontainer-features/stylelint:1": {}
10+
}
11+
```
12+
13+
> [!NOTE]
14+
> From v1.0.0, the vscode-stylelint extension [does not bundle Stylelint](https://github.com/stylelint/vscode-stylelint#%EF%B8%8F-stylelint-is-no-longer-bundled). Be sure to add an up-to-date version of Stylelint to your project's `package.json` file.
15+
16+
## OS Support
17+
18+
This Feature should work on any operating system supported by Stylelint.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Stylelint",
3+
"id": "stylelint",
4+
"version": "1.0.0",
5+
"description": "Install and configure Stylelint's official Visual Studio Code extension.",
6+
"customizations": {
7+
"vscode": {
8+
"extensions": ["stylelint.vscode-stylelint"],
9+
"settings": {
10+
"css.validate": false,
11+
"less.validate": false,
12+
"scss.validate": false,
13+
"stylelint.validate": ["css", "postcss", "scss"]
14+
}
15+
}
16+
},
17+
"installsAfter": [
18+
"ghcr.io/devcontainers/features/common-utils"
19+
]
20+
}

src/stylelint/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
# noop

0 commit comments

Comments
 (0)