@kitschpatrol/stylelint-config 5.5.0 → 5.7.0
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/bin/cli.js +4 -4
- package/package.json +10 -9
- package/readme.md +18 -18
package/bin/cli.js
CHANGED
|
@@ -5138,7 +5138,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
5138
5138
|
var yargs_default = Yargs;
|
|
5139
5139
|
|
|
5140
5140
|
// ../../package.json
|
|
5141
|
-
var version = "5.
|
|
5141
|
+
var version = "5.7.0";
|
|
5142
5142
|
|
|
5143
5143
|
// ../../src/execa-utilities.ts
|
|
5144
5144
|
function isErrorExecaError(error) {
|
|
@@ -5184,7 +5184,7 @@ function stringify(passedObj, options = {}) {
|
|
|
5184
5184
|
).slice(2, -3);
|
|
5185
5185
|
const maxLength = indent === "" ? Infinity : options.maxLength === void 0 ? 80 : options.maxLength;
|
|
5186
5186
|
let { replacer } = options;
|
|
5187
|
-
return function _stringify(obj, currentIndent, reserved) {
|
|
5187
|
+
return (function _stringify(obj, currentIndent, reserved) {
|
|
5188
5188
|
if (obj && typeof obj.toJSON === "function") {
|
|
5189
5189
|
obj = obj.toJSON();
|
|
5190
5190
|
}
|
|
@@ -5250,7 +5250,7 @@ ${currentIndent}`
|
|
|
5250
5250
|
}
|
|
5251
5251
|
}
|
|
5252
5252
|
return string;
|
|
5253
|
-
}(passedObj, "", 0);
|
|
5253
|
+
})(passedObj, "", 0);
|
|
5254
5254
|
}
|
|
5255
5255
|
|
|
5256
5256
|
// ../../src/json-utilities.ts
|
|
@@ -5891,7 +5891,7 @@ var commandDefinition = {
|
|
|
5891
5891
|
description: "Kitschpatrol's Stylelint shared configuration tools.",
|
|
5892
5892
|
logColor: "greenBright",
|
|
5893
5893
|
logPrefix: "[Stylelint]",
|
|
5894
|
-
name: "
|
|
5894
|
+
name: "ksc-stylelint",
|
|
5895
5895
|
order: 5
|
|
5896
5896
|
};
|
|
5897
5897
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/stylelint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "Stylelint configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint-config",
|
|
7
7
|
"stylelint",
|
|
8
8
|
"cli",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"ksc",
|
|
10
|
+
"ksc-stylelint"
|
|
11
11
|
],
|
|
12
12
|
"homepage": "https://github.com/kitschpatrol/shared-config/tree/main/packages/stylelint-config",
|
|
13
13
|
"bugs": "https://github.com/kitschpatrol/shared-config/issues",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"main": "dist/index.js",
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"bin": {
|
|
35
|
-
"kpi-stylelint": "bin/cli.js"
|
|
35
|
+
"kpi-stylelint": "bin/cli.js",
|
|
36
|
+
"ksc-stylelint": "bin/cli.js"
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
38
39
|
"bin/*",
|
|
@@ -45,15 +46,15 @@
|
|
|
45
46
|
"cosmiconfig-typescript-loader": "^6.1.0",
|
|
46
47
|
"execa": "^9.6.0",
|
|
47
48
|
"find-workspaces": "^0.3.1",
|
|
48
|
-
"fs-extra": "^11.3.
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"stylelint": "^16.
|
|
49
|
+
"fs-extra": "^11.3.1",
|
|
50
|
+
"prettier": "^3.6.2",
|
|
51
|
+
"stylelint": "^16.24.0",
|
|
51
52
|
"stylelint-config-clean-order": "^7.0.0",
|
|
52
53
|
"stylelint-config-html": "^1.1.0",
|
|
53
|
-
"stylelint-config-standard": "^
|
|
54
|
+
"stylelint-config-standard": "^39.0.0"
|
|
54
55
|
},
|
|
55
56
|
"engines": {
|
|
56
|
-
"node": ">=20.
|
|
57
|
+
"node": ">=20.19.0"
|
|
57
58
|
},
|
|
58
59
|
"publishConfig": {
|
|
59
60
|
"access": "public"
|
package/readme.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
## Overview
|
|
23
23
|
|
|
24
|
-
It's a shared [Stylelint](https://stylelint.io) config, plus a command-line tool `
|
|
24
|
+
It's a shared [Stylelint](https://stylelint.io) config, plus a command-line tool `ksc-stylelint` to perform Stylelint-related project initialization, linting, and fixing.
|
|
25
25
|
|
|
26
26
|
<!-- recommendation -->
|
|
27
27
|
|
|
@@ -29,7 +29,7 @@ It's a shared [Stylelint](https://stylelint.io) config, plus a command-line tool
|
|
|
29
29
|
>
|
|
30
30
|
> **You can use this package on its own, but it's recommended to use [`@kitschpatrol/shared-config`](https://www.npmjs.com/package/@kitschpatrol/shared-config) instead for a single-dependency and single-package approach to linting and fixing your project.**
|
|
31
31
|
>
|
|
32
|
-
> This package is included as a dependency in [`@kitschpatrol/shared-config`](https://www.npmjs.com/package/@kitschpatrol/shared-config), which also automatically invokes the command line functionality in this package via its `
|
|
32
|
+
> This package is included as a dependency in [`@kitschpatrol/shared-config`](https://www.npmjs.com/package/@kitschpatrol/shared-config), which also automatically invokes the command line functionality in this package via its `ksc` command
|
|
33
33
|
|
|
34
34
|
<!-- /recommendation -->
|
|
35
35
|
|
|
@@ -52,7 +52,7 @@ To use just this Stylelint config in isolation:
|
|
|
52
52
|
3. Add the starter `stylelint.config.js` file to your project root, and add any customizations you'd like:
|
|
53
53
|
|
|
54
54
|
```sh
|
|
55
|
-
pnpm exec
|
|
55
|
+
pnpm exec ksc-stylelint init
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## Rules
|
|
@@ -74,8 +74,8 @@ Integrate with your `package.json` scripts as you see fit, for example:
|
|
|
74
74
|
```json
|
|
75
75
|
{
|
|
76
76
|
"scripts": {
|
|
77
|
-
"lint": "
|
|
78
|
-
"fix": "
|
|
77
|
+
"lint": "ksc-stylelint lint",
|
|
78
|
+
"fix": "ksc-stylelint fix"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
```
|
|
@@ -85,7 +85,7 @@ Integrate with your `package.json` scripts as you see fit, for example:
|
|
|
85
85
|
To create a `stylelint.config.js` in your project root:
|
|
86
86
|
|
|
87
87
|
```sh
|
|
88
|
-
pnpm exec
|
|
88
|
+
pnpm exec ksc-stylelint init
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
(Note that this will delete the `stylelint` property in your `package.json`!)
|
|
@@ -95,7 +95,7 @@ _Or_
|
|
|
95
95
|
To create a `stylelint` property in `package.json`:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
pnpm exec
|
|
98
|
+
pnpm exec ksc-stylelint init --location package
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
(Note that this will delete the `stylelint.config.js` file in your project root!)
|
|
@@ -126,16 +126,16 @@ Next line:
|
|
|
126
126
|
|
|
127
127
|
<!-- cli-help -->
|
|
128
128
|
|
|
129
|
-
#### Command: `
|
|
129
|
+
#### Command: `ksc-stylelint`
|
|
130
130
|
|
|
131
131
|
Kitschpatrol's Stylelint shared configuration tools.
|
|
132
132
|
|
|
133
|
-
This section lists top-level commands for `
|
|
133
|
+
This section lists top-level commands for `ksc-stylelint`.
|
|
134
134
|
|
|
135
135
|
Usage:
|
|
136
136
|
|
|
137
137
|
```txt
|
|
138
|
-
|
|
138
|
+
ksc-stylelint <command>
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
| Command | Argument | Description |
|
|
@@ -152,14 +152,14 @@ kpi-stylelint <command>
|
|
|
152
152
|
|
|
153
153
|
_See the sections below for more information on each subcommand._
|
|
154
154
|
|
|
155
|
-
#### Subcommand: `
|
|
155
|
+
#### Subcommand: `ksc-stylelint init`
|
|
156
156
|
|
|
157
157
|
Initialize by copying starter config files to your project root or to your package.json file.
|
|
158
158
|
|
|
159
159
|
Usage:
|
|
160
160
|
|
|
161
161
|
```txt
|
|
162
|
-
|
|
162
|
+
ksc-stylelint init
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
| Option | Description | Type | Default |
|
|
@@ -168,14 +168,14 @@ kpi-stylelint init
|
|
|
168
168
|
| `--help`<br>`-h` | Show help | `boolean` | |
|
|
169
169
|
| `--version`<br>`-v` | Show version number | `boolean` | |
|
|
170
170
|
|
|
171
|
-
#### Subcommand: `
|
|
171
|
+
#### Subcommand: `ksc-stylelint lint`
|
|
172
172
|
|
|
173
173
|
Lint your project with Stylelint. Matches files below the current working directory by default.
|
|
174
174
|
|
|
175
175
|
Usage:
|
|
176
176
|
|
|
177
177
|
```txt
|
|
178
|
-
|
|
178
|
+
ksc-stylelint lint [files..]
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
| Positional Argument | Description | Type | Default |
|
|
@@ -187,14 +187,14 @@ kpi-stylelint lint [files..]
|
|
|
187
187
|
| `--help`<br>`-h` | Show help | `boolean` |
|
|
188
188
|
| `--version`<br>`-v` | Show version number | `boolean` |
|
|
189
189
|
|
|
190
|
-
#### Subcommand: `
|
|
190
|
+
#### Subcommand: `ksc-stylelint fix`
|
|
191
191
|
|
|
192
192
|
Fix your project with Stylelint. Matches files below the current working directory by default.
|
|
193
193
|
|
|
194
194
|
Usage:
|
|
195
195
|
|
|
196
196
|
```txt
|
|
197
|
-
|
|
197
|
+
ksc-stylelint fix [files..]
|
|
198
198
|
```
|
|
199
199
|
|
|
200
200
|
| Positional Argument | Description | Type | Default |
|
|
@@ -206,14 +206,14 @@ kpi-stylelint fix [files..]
|
|
|
206
206
|
| `--help`<br>`-h` | Show help | `boolean` |
|
|
207
207
|
| `--version`<br>`-v` | Show version number | `boolean` |
|
|
208
208
|
|
|
209
|
-
#### Subcommand: `
|
|
209
|
+
#### Subcommand: `ksc-stylelint print-config`
|
|
210
210
|
|
|
211
211
|
Print the effective Stylelint configuration. Package-scoped by default, file-scoped if a file argument is provided..
|
|
212
212
|
|
|
213
213
|
Usage:
|
|
214
214
|
|
|
215
215
|
```txt
|
|
216
|
-
|
|
216
|
+
ksc-stylelint print-config [file]
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
| Positional Argument | Description | Type |
|