@powerlines/plugin-stylelint 0.1.681 → 0.1.683
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -74,6 +74,40 @@ A package containing a Powerlines plugin that integrates [Stylelint](https://sty
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Lints CSS and other style files with [Stylelint](https://stylelint.io/)
|
|
80
|
+
- Runs through the `lint` hook in the Powerlines linting process
|
|
81
|
+
- Fixes problems by default (`fix` is `true`)
|
|
82
|
+
- Accepts a `configFile` path pointing at a Stylelint config
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
Install the plugin:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm add @powerlines/plugin-stylelint
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Register it in `powerlines.config.ts`:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { plugin as stylelint } from "@powerlines/plugin-stylelint";
|
|
96
|
+
import { defineConfig } from "powerlines/config";
|
|
97
|
+
|
|
98
|
+
export default defineConfig({
|
|
99
|
+
plugins: [stylelint()]
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Run the lint command. To point at a config file:
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
export default defineConfig({
|
|
107
|
+
plugins: [stylelint({ configFile: "stylelint.config.mjs" })]
|
|
108
|
+
});
|
|
109
|
+
```
|
|
110
|
+
|
|
77
111
|
## Installing
|
|
78
112
|
|
|
79
113
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-stylelint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.683",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Stylelint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
"powerlines-plugin"
|
|
92
92
|
],
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@storm-software/config-tools": "^1.190.
|
|
94
|
+
"@storm-software/config-tools": "^1.190.154",
|
|
95
95
|
"@stryke/fs": "^0.33.118",
|
|
96
96
|
"@stryke/path": "^0.29.43",
|
|
97
97
|
"defu": "^6.1.7",
|
|
98
|
-
"powerlines": "^0.47.
|
|
98
|
+
"powerlines": "^0.47.217",
|
|
99
99
|
"stylelint": "^16.26.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
102
|
+
"@powerlines/plugin-plugin": "^0.12.630",
|
|
103
103
|
"@types/node": "^25.9.9"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": { "access": "public" },
|
|
106
106
|
"main": "./dist/index.cjs",
|
|
107
107
|
"module": "./dist/index.mjs",
|
|
108
108
|
"types": "./dist/index.d.cts",
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
|
|
110
110
|
}
|