@kitschpatrol/shared-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 +29 -25
- package/package.json +16 -15
- package/readme.md +49 -48
package/bin/cli.js
CHANGED
|
@@ -11084,7 +11084,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
11084
11084
|
var yargs_default = Yargs;
|
|
11085
11085
|
|
|
11086
11086
|
// ../../package.json
|
|
11087
|
-
var version = "5.
|
|
11087
|
+
var version = "5.7.0";
|
|
11088
11088
|
|
|
11089
11089
|
// ../../src/execa-utilities.ts
|
|
11090
11090
|
function isErrorExecaError(error) {
|
|
@@ -11130,7 +11130,7 @@ function stringify(passedObj, options = {}) {
|
|
|
11130
11130
|
).slice(2, -3);
|
|
11131
11131
|
const maxLength = indent === "" ? Infinity : options.maxLength === void 0 ? 80 : options.maxLength;
|
|
11132
11132
|
let { replacer } = options;
|
|
11133
|
-
return function _stringify(obj, currentIndent, reserved) {
|
|
11133
|
+
return (function _stringify(obj, currentIndent, reserved) {
|
|
11134
11134
|
if (obj && typeof obj.toJSON === "function") {
|
|
11135
11135
|
obj = obj.toJSON();
|
|
11136
11136
|
}
|
|
@@ -11196,7 +11196,7 @@ ${currentIndent}`
|
|
|
11196
11196
|
}
|
|
11197
11197
|
}
|
|
11198
11198
|
return string;
|
|
11199
|
-
}(passedObj, "", 0);
|
|
11199
|
+
})(passedObj, "", 0);
|
|
11200
11200
|
}
|
|
11201
11201
|
|
|
11202
11202
|
// ../../src/json-utilities.ts
|
|
@@ -11975,7 +11975,7 @@ var commandDefinition = {
|
|
|
11975
11975
|
description: "Kitschpatrol's CSpell shared configuration tools. (Automated fixes are handled by ESLint.)",
|
|
11976
11976
|
logColor: "cyan",
|
|
11977
11977
|
logPrefix: "[CSpell]",
|
|
11978
|
-
name: "
|
|
11978
|
+
name: "ksc-cspell",
|
|
11979
11979
|
order: 6
|
|
11980
11980
|
};
|
|
11981
11981
|
|
|
@@ -12003,6 +12003,8 @@ var commandDefinition2 = {
|
|
|
12003
12003
|
commands: [
|
|
12004
12004
|
{
|
|
12005
12005
|
name: "eslint",
|
|
12006
|
+
// Consider '--concurrency', 'auto'
|
|
12007
|
+
// Didn't benchmark particularly fast in September 2025
|
|
12006
12008
|
optionFlags: ["--fix"],
|
|
12007
12009
|
receivePositionalArguments: true
|
|
12008
12010
|
}
|
|
@@ -12019,6 +12021,8 @@ var commandDefinition2 = {
|
|
|
12019
12021
|
commands: [
|
|
12020
12022
|
{
|
|
12021
12023
|
name: "eslint",
|
|
12024
|
+
// Consider // Consider '--concurrency', 'auto'
|
|
12025
|
+
// Didn't benchmark particularly fast in September 2025
|
|
12022
12026
|
optionFlags: ["--max-warnings", "0"],
|
|
12023
12027
|
receivePositionalArguments: true
|
|
12024
12028
|
}
|
|
@@ -12041,7 +12045,7 @@ var commandDefinition2 = {
|
|
|
12041
12045
|
description: "Kitschpatrol's ESLint shared configuration tools.",
|
|
12042
12046
|
logColor: "magenta",
|
|
12043
12047
|
logPrefix: `[ESLint]`,
|
|
12044
|
-
name: "
|
|
12048
|
+
name: "ksc-eslint",
|
|
12045
12049
|
order: 4
|
|
12046
12050
|
};
|
|
12047
12051
|
|
|
@@ -12064,17 +12068,17 @@ var sharedKnipConfig = {
|
|
|
12064
12068
|
"prettier.config.{js,mjs,cjs,ts,mts,cts}",
|
|
12065
12069
|
"stylelint.config.{js,mjs,cjs,ts,mts,cts}"
|
|
12066
12070
|
],
|
|
12067
|
-
// Allow calling of individual
|
|
12071
|
+
// Allow calling of individual ksc binaries...
|
|
12068
12072
|
ignoreBinaries: [
|
|
12069
|
-
"
|
|
12070
|
-
"
|
|
12071
|
-
"
|
|
12072
|
-
"
|
|
12073
|
-
"
|
|
12074
|
-
"
|
|
12075
|
-
"
|
|
12076
|
-
"
|
|
12077
|
-
"
|
|
12073
|
+
"ksc-repo",
|
|
12074
|
+
"ksc-mdat",
|
|
12075
|
+
"ksc-typescript",
|
|
12076
|
+
"ksc-eslint",
|
|
12077
|
+
"ksc-stylelint",
|
|
12078
|
+
"ksc-cspell",
|
|
12079
|
+
"ksc-knip",
|
|
12080
|
+
"ksc-remark",
|
|
12081
|
+
"ksc-prettier",
|
|
12078
12082
|
// 1Password CLI, typically a global install...
|
|
12079
12083
|
"op",
|
|
12080
12084
|
// GitHub CLI, typically a global install...
|
|
@@ -12124,8 +12128,8 @@ function getKnipPackageJsonObject() {
|
|
|
12124
12128
|
var commandDefinition3 = {
|
|
12125
12129
|
commands: {
|
|
12126
12130
|
// In practice, Knip's auto-fix behavior is too dangerous for most projects.
|
|
12127
|
-
// Since
|
|
12128
|
-
// just disable `
|
|
12131
|
+
// Since ksc doesn't currently have per-tool configuration options, we'll
|
|
12132
|
+
// just disable `ksc-knip fix` for now.
|
|
12129
12133
|
//
|
|
12130
12134
|
// fix: {
|
|
12131
12135
|
// commands: [
|
|
@@ -12177,7 +12181,7 @@ var commandDefinition3 = {
|
|
|
12177
12181
|
description: "Kitschpatrol's Knip shared configuration tools.",
|
|
12178
12182
|
logColor: "cyan",
|
|
12179
12183
|
logPrefix: "[Knip]",
|
|
12180
|
-
name: "
|
|
12184
|
+
name: "ksc-knip",
|
|
12181
12185
|
order: 7
|
|
12182
12186
|
};
|
|
12183
12187
|
|
|
@@ -12258,7 +12262,7 @@ var commandDefinition4 = {
|
|
|
12258
12262
|
description: "Kitschpatrol's Mdat shared configuration tools.",
|
|
12259
12263
|
logColor: "green",
|
|
12260
12264
|
logPrefix: "[Mdat Config]",
|
|
12261
|
-
name: "
|
|
12265
|
+
name: "ksc-mdat",
|
|
12262
12266
|
order: 2
|
|
12263
12267
|
};
|
|
12264
12268
|
|
|
@@ -12322,7 +12326,7 @@ var commandDefinition5 = {
|
|
|
12322
12326
|
description: "Kitschpatrol's Prettier shared configuration tools.",
|
|
12323
12327
|
logColor: "blue",
|
|
12324
12328
|
logPrefix: "[Prettier]",
|
|
12325
|
-
name: "
|
|
12329
|
+
name: "ksc-prettier",
|
|
12326
12330
|
order: 9
|
|
12327
12331
|
};
|
|
12328
12332
|
|
|
@@ -12348,7 +12352,7 @@ var commandDefinition6 = {
|
|
|
12348
12352
|
description: "Kitschpatrol's Remark and Remark Lint shared configuration tools. (Actual linting and fixing is managed through @kitschpatrol/eslint-config.)",
|
|
12349
12353
|
logColor: "blue",
|
|
12350
12354
|
logPrefix: "[remarklint]",
|
|
12351
|
-
name: "
|
|
12355
|
+
name: "ksc-remark",
|
|
12352
12356
|
order: 8
|
|
12353
12357
|
};
|
|
12354
12358
|
|
|
@@ -12973,7 +12977,7 @@ var commandDefinition7 = {
|
|
|
12973
12977
|
description: "Kitschpatrol's repository-related shared configuration tools.",
|
|
12974
12978
|
logColor: "gray",
|
|
12975
12979
|
logPrefix: "[Repo Config]",
|
|
12976
|
-
name: "
|
|
12980
|
+
name: "ksc-repo",
|
|
12977
12981
|
order: 1
|
|
12978
12982
|
};
|
|
12979
12983
|
|
|
@@ -13076,7 +13080,7 @@ var commandDefinition8 = {
|
|
|
13076
13080
|
description: "Kitschpatrol's Stylelint shared configuration tools.",
|
|
13077
13081
|
logColor: "greenBright",
|
|
13078
13082
|
logPrefix: "[Stylelint]",
|
|
13079
|
-
name: "
|
|
13083
|
+
name: "ksc-stylelint",
|
|
13080
13084
|
order: 5
|
|
13081
13085
|
};
|
|
13082
13086
|
|
|
@@ -13141,7 +13145,7 @@ var commandDefinition9 = {
|
|
|
13141
13145
|
description: "Kitschpatrol's TypeScript shared configuration tools.",
|
|
13142
13146
|
logColor: "blueBright",
|
|
13143
13147
|
logPrefix: "[TypeScript Config]",
|
|
13144
|
-
name: "
|
|
13148
|
+
name: "ksc-typescript",
|
|
13145
13149
|
order: 3
|
|
13146
13150
|
};
|
|
13147
13151
|
|
|
@@ -13205,7 +13209,7 @@ var commandDefinition10 = {
|
|
|
13205
13209
|
description: "Run aggregated @kitschpatrol/shared-config commands.",
|
|
13206
13210
|
logColor: "yellow",
|
|
13207
13211
|
logPrefix: "\u{1F52C}",
|
|
13208
|
-
name: "
|
|
13212
|
+
name: "ksc",
|
|
13209
13213
|
order: 0,
|
|
13210
13214
|
showSummary: true,
|
|
13211
13215
|
verbose: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/shared-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "A collection of shared configurations, linters, and formatting tools for TypeScript projects. All managed as a single dependency, and invoked via a single CLI command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"cspell",
|
|
14
14
|
"mdat",
|
|
15
15
|
"cli",
|
|
16
|
-
"
|
|
16
|
+
"ksc"
|
|
17
17
|
],
|
|
18
18
|
"homepage": "https://github.com/kitschpatrol/shared-config",
|
|
19
19
|
"bugs": "https://github.com/kitschpatrol/shared-config/issues",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"bin": {
|
|
33
|
-
"kpi": "bin/cli.js"
|
|
33
|
+
"kpi": "bin/cli.js",
|
|
34
|
+
"ksc": "bin/cli.js"
|
|
34
35
|
},
|
|
35
36
|
"files": [
|
|
36
37
|
"bin/*"
|
|
@@ -41,24 +42,24 @@
|
|
|
41
42
|
"cosmiconfig-typescript-loader": "^6.1.0",
|
|
42
43
|
"execa": "^9.6.0",
|
|
43
44
|
"find-workspaces": "^0.3.1",
|
|
44
|
-
"fs-extra": "^11.3.
|
|
45
|
-
"prettier": "^3.
|
|
46
|
-
"@kitschpatrol/cspell-config": "5.
|
|
47
|
-
"@kitschpatrol/
|
|
48
|
-
"@kitschpatrol/eslint-config": "5.
|
|
49
|
-
"@kitschpatrol/
|
|
50
|
-
"@kitschpatrol/
|
|
51
|
-
"@kitschpatrol/
|
|
52
|
-
"@kitschpatrol/
|
|
53
|
-
"@kitschpatrol/
|
|
54
|
-
"@kitschpatrol/
|
|
45
|
+
"fs-extra": "^11.3.1",
|
|
46
|
+
"prettier": "^3.6.2",
|
|
47
|
+
"@kitschpatrol/cspell-config": "5.7.0",
|
|
48
|
+
"@kitschpatrol/knip-config": "5.7.0",
|
|
49
|
+
"@kitschpatrol/eslint-config": "5.7.0",
|
|
50
|
+
"@kitschpatrol/remark-config": "5.7.0",
|
|
51
|
+
"@kitschpatrol/repo-config": "5.7.0",
|
|
52
|
+
"@kitschpatrol/prettier-config": "5.7.0",
|
|
53
|
+
"@kitschpatrol/typescript-config": "5.7.0",
|
|
54
|
+
"@kitschpatrol/mdat-config": "5.7.0",
|
|
55
|
+
"@kitschpatrol/stylelint-config": "5.7.0"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"globby": "^14.1.0",
|
|
58
59
|
"picocolors": "^1.1.1"
|
|
59
60
|
},
|
|
60
61
|
"engines": {
|
|
61
|
-
"node": ">=20.
|
|
62
|
+
"node": ">=20.19.0"
|
|
62
63
|
},
|
|
63
64
|
"publishConfig": {
|
|
64
65
|
"access": "public"
|
package/readme.md
CHANGED
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
|
|
36
36
|
## Overview
|
|
37
37
|
|
|
38
|
-
This project
|
|
38
|
+
This project consolidates most of the configuration and tooling shared by my open-source and internal TypeScript-based projects into a single dependency with a single CLI meta-command to lint and fix issues.
|
|
39
39
|
|
|
40
|
-
By installing `@kitschpatrol/shared-config` and then running `
|
|
40
|
+
By installing `@kitschpatrol/shared-config` and then running `ksc`, you can run a half-dozen pre-configured code quality and linting tools in one shot. This spares you from cluttering your project's `devDependencies` with packages tangential to the task at hand.
|
|
41
41
|
|
|
42
|
-
If you don't plan to customize tool configurations,
|
|
42
|
+
If you don't plan to customize tool configurations, `ksc init` exposes an option to store references to each tool's shared configuration in your `package.json` instead of in files in your project root (at least where permitted by the tool). This can save a bit of file clutter in your project's root directory, at the expense of the immediate discoverability of the tools.
|
|
43
43
|
|
|
44
44
|
In addition, each tool exports a typed configuration factory function to simplify specifying and extending the default configuration.
|
|
45
45
|
|
|
46
|
-
The command name `
|
|
46
|
+
The command name `ksc` is just an initialism for "Kitschpatrol Shared Configuration".
|
|
47
47
|
|
|
48
48
|
### Tools
|
|
49
49
|
|
|
@@ -67,57 +67,57 @@ This particular readme is for the [`@kitschpatrol/shared-config`](https://www.np
|
|
|
67
67
|
|
|
68
68
|
#### Primary package
|
|
69
69
|
|
|
70
|
-
- [`@kitschpatrol/shared-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/shared-config/readme.md) (`
|
|
70
|
+
- [`@kitschpatrol/shared-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/shared-config/readme.md) (`ksc` command)
|
|
71
71
|
|
|
72
72
|
#### Sub-packages
|
|
73
73
|
|
|
74
|
-
- [`@kitschpatrol/cspell-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/cspell-config/readme.md) (`
|
|
75
|
-
- [`@kitschpatrol/eslint-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/eslint-config/readme.md) (`
|
|
76
|
-
- [`@kitschpatrol/knip-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/knip-config/readme.md) (`
|
|
77
|
-
- [`@kitschpatrol/mdat-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/mdat-config/readme.md) (`
|
|
78
|
-
- [`@kitschpatrol/prettier-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/prettier-config/readme.md) (`
|
|
79
|
-
- [`@kitschpatrol/remark-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/remark-config/readme.md) (`
|
|
80
|
-
- [`@kitschpatrol/repo-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/repo-config/readme.md) (`
|
|
81
|
-
- [`@kitschpatrol/stylelint-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/stylelint-config/readme.md) (`
|
|
82
|
-
- [`@kitschpatrol/typescript-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/typescript-config/readme.md) (`
|
|
74
|
+
- [`@kitschpatrol/cspell-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/cspell-config/readme.md) (`ksc-cspell` command)
|
|
75
|
+
- [`@kitschpatrol/eslint-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/eslint-config/readme.md) (`ksc-eslint` command)
|
|
76
|
+
- [`@kitschpatrol/knip-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/knip-config/readme.md) (`ksc-knip` command)
|
|
77
|
+
- [`@kitschpatrol/mdat-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/mdat-config/readme.md) (`ksc-mdat` command)
|
|
78
|
+
- [`@kitschpatrol/prettier-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/prettier-config/readme.md) (`ksc-prettier` command)
|
|
79
|
+
- [`@kitschpatrol/remark-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/remark-config/readme.md) (`ksc-remark` command)
|
|
80
|
+
- [`@kitschpatrol/repo-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/repo-config/readme.md) (`ksc-repo` command)
|
|
81
|
+
- [`@kitschpatrol/stylelint-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/stylelint-config/readme.md) (`ksc-stylelint` command)
|
|
82
|
+
- [`@kitschpatrol/typescript-config`](https://github.com/kitschpatrol/shared-config/blob/main/packages/typescript-config/readme.md) (`ksc-typescript` command)
|
|
83
83
|
|
|
84
84
|
> [!IMPORTANT]
|
|
85
85
|
>
|
|
86
86
|
> Any of these packages may be installed and run on their own via CLI if desired. However, in general, the idea is to use `@kitschpatrol/shared-config` to easily run them all simultaneously over a repo with a single command with options to either check or (where possible) fix problems, with output aggregated into a single report.
|
|
87
87
|
|
|
88
|
-
Running `
|
|
88
|
+
Running `ksc <command>` calls the same command across the entire collection of sub-packages.
|
|
89
89
|
|
|
90
90
|
So assuming you've installed `@kitschpatrol/shared-config`...
|
|
91
91
|
|
|
92
92
|
Running:
|
|
93
93
|
|
|
94
94
|
```sh
|
|
95
|
-
|
|
95
|
+
ksc init
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Is the same as running:
|
|
99
99
|
|
|
100
100
|
```sh
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
101
|
+
ksc-repo init
|
|
102
|
+
ksc-mdat init
|
|
103
|
+
ksc-typescript init
|
|
104
|
+
ksc-eslint init
|
|
105
|
+
ksc-stylelint init
|
|
106
|
+
ksc-cspell init
|
|
107
|
+
ksc-knip init
|
|
108
|
+
ksc-remark init
|
|
109
|
+
ksc-prettier init
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
_(Sub-commands are always executed in the above order.)_
|
|
113
113
|
|
|
114
|
-
The top-level `
|
|
114
|
+
The top-level `ksc` command also takes care of some nuances in terms of _which_ sub-packages implement _which_ commands, and which subcommands take arguments.
|
|
115
115
|
|
|
116
116
|
## Getting started
|
|
117
117
|
|
|
118
118
|
### Dependencies
|
|
119
119
|
|
|
120
|
-
[Node](https://nodejs.org) >=20.
|
|
120
|
+
[Node](https://nodejs.org) >=20.19.0 is required, and [pnpm](https://pnpm.io) >=10 is recommended. NPM and yarn might work as well, but I haven't tested them.
|
|
121
121
|
|
|
122
122
|
### Installation
|
|
123
123
|
|
|
@@ -126,19 +126,19 @@ The top-level `kpi` command also takes care of some nuances in terms of _which_
|
|
|
126
126
|
Bootstrap a new project and open in VS Code:
|
|
127
127
|
|
|
128
128
|
```sh
|
|
129
|
-
git init && pnpm init && pnpm pkg set type="module" && pnpm dlx @kitschpatrol/repo-config init && pnpm add -D @kitschpatrol/shared-config && pnpm
|
|
129
|
+
git init && pnpm init && pnpm pkg set type="module" && pnpm dlx @kitschpatrol/repo-config init && pnpm add -D @kitschpatrol/shared-config && pnpm ksc init && pnpm i && code .
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
Note that `
|
|
132
|
+
Note that `ksc init` takes an optional `--location package` flag will put as much configuration in your `package.json` as possible instead of creating discrete config files in your project root for each tool. Putting config in `package.json` can save some clutter, but can make it clunkier to extend or customize configurations.
|
|
133
133
|
|
|
134
|
-
At any point, you can call `
|
|
134
|
+
At any point, you can call `ksc init` again with the `--location package` or `--location file` flag to reinitialize your configuration files in one place or the other and restore the default configurations.
|
|
135
135
|
|
|
136
136
|
#### Quick add to an existing project:
|
|
137
137
|
|
|
138
138
|
This might overwrite certain config files, so commit first:
|
|
139
139
|
|
|
140
140
|
```sh
|
|
141
|
-
pnpm dlx @kitschpatrol/repo-config init && pnpm i && pnpm add -D @kitschpatrol/shared-config && pnpm
|
|
141
|
+
pnpm dlx @kitschpatrol/repo-config init && pnpm i && pnpm add -D @kitschpatrol/shared-config && pnpm ksc init
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
#### Step-by-step:
|
|
@@ -158,13 +158,13 @@ pnpm dlx @kitschpatrol/repo-config init && pnpm i && pnpm add -D @kitschpatrol/s
|
|
|
158
158
|
3. Add default config files for all the tools to your project root:
|
|
159
159
|
|
|
160
160
|
```sh
|
|
161
|
-
pnpm
|
|
161
|
+
pnpm ksc init
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
Or, if you don't plan to customize tool configurations, you might want to put as much config as possible under tool-specific keys in 'package.json':
|
|
165
165
|
|
|
166
166
|
```sh
|
|
167
|
-
pnpm
|
|
167
|
+
pnpm ksc init --location package
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
4. Add helper scripts to your `package.json`:
|
|
@@ -174,8 +174,8 @@ pnpm dlx @kitschpatrol/repo-config init && pnpm i && pnpm add -D @kitschpatrol/s
|
|
|
174
174
|
```json
|
|
175
175
|
{
|
|
176
176
|
"scripts": {
|
|
177
|
-
"fix": "
|
|
178
|
-
"lint": "
|
|
177
|
+
"fix": "ksc fix",
|
|
178
|
+
"lint": "ksc lint"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
```
|
|
@@ -208,18 +208,18 @@ pnpm run fix
|
|
|
208
208
|
|
|
209
209
|
### CLI
|
|
210
210
|
|
|
211
|
-
<!-- cli-help cliCommand: '
|
|
211
|
+
<!-- cli-help cliCommand: 'ksc' -->
|
|
212
212
|
|
|
213
|
-
#### Command: `
|
|
213
|
+
#### Command: `ksc`
|
|
214
214
|
|
|
215
215
|
Run aggregated @kitschpatrol/shared-config commands.
|
|
216
216
|
|
|
217
|
-
This section lists top-level commands for `
|
|
217
|
+
This section lists top-level commands for `ksc`.
|
|
218
218
|
|
|
219
219
|
Usage:
|
|
220
220
|
|
|
221
221
|
```txt
|
|
222
|
-
|
|
222
|
+
ksc <command>
|
|
223
223
|
```
|
|
224
224
|
|
|
225
225
|
| Command | Argument | Description |
|
|
@@ -236,14 +236,14 @@ kpi <command>
|
|
|
236
236
|
|
|
237
237
|
_See the sections below for more information on each subcommand._
|
|
238
238
|
|
|
239
|
-
#### Subcommand: `
|
|
239
|
+
#### Subcommand: `ksc init`
|
|
240
240
|
|
|
241
241
|
Initialize configuration files for the entire suite of @kitschpatrol/shared-config tools. Will use option flags where possible if provided, but some of the invoked tools will ignore them.
|
|
242
242
|
|
|
243
243
|
Usage:
|
|
244
244
|
|
|
245
245
|
```txt
|
|
246
|
-
|
|
246
|
+
ksc init
|
|
247
247
|
```
|
|
248
248
|
|
|
249
249
|
| Option | Description | Type | Default |
|
|
@@ -252,14 +252,14 @@ kpi init
|
|
|
252
252
|
| `--help`<br>`-h` | Show help | `boolean` | |
|
|
253
253
|
| `--version`<br>`-v` | Show version number | `boolean` | |
|
|
254
254
|
|
|
255
|
-
#### Subcommand: `
|
|
255
|
+
#### Subcommand: `ksc lint`
|
|
256
256
|
|
|
257
257
|
Lint your project with multiple tools in one go. Will use file arguments / globs where possible if provided, but some of the invoked tools only operate at the package-scope.
|
|
258
258
|
|
|
259
259
|
Usage:
|
|
260
260
|
|
|
261
261
|
```txt
|
|
262
|
-
|
|
262
|
+
ksc lint [files..]
|
|
263
263
|
```
|
|
264
264
|
|
|
265
265
|
| Positional Argument | Description | Type | Default |
|
|
@@ -271,14 +271,14 @@ kpi lint [files..]
|
|
|
271
271
|
| `--help`<br>`-h` | Show help | `boolean` |
|
|
272
272
|
| `--version`<br>`-v` | Show version number | `boolean` |
|
|
273
273
|
|
|
274
|
-
#### Subcommand: `
|
|
274
|
+
#### Subcommand: `ksc fix`
|
|
275
275
|
|
|
276
276
|
Fix your project with multiple tools in one go. Will use file arguments / globs where possible if provided, but some of the invoked tools only operate at the package-scope.
|
|
277
277
|
|
|
278
278
|
Usage:
|
|
279
279
|
|
|
280
280
|
```txt
|
|
281
|
-
|
|
281
|
+
ksc fix [files..]
|
|
282
282
|
```
|
|
283
283
|
|
|
284
284
|
| Positional Argument | Description | Type | Default |
|
|
@@ -290,14 +290,14 @@ kpi fix [files..]
|
|
|
290
290
|
| `--help`<br>`-h` | Show help | `boolean` |
|
|
291
291
|
| `--version`<br>`-v` | Show version number | `boolean` |
|
|
292
292
|
|
|
293
|
-
#### Subcommand: `
|
|
293
|
+
#### Subcommand: `ksc print-config`
|
|
294
294
|
|
|
295
295
|
Print aggregated tool configuration data. Will use file arguments / globs where possible if provided, but some of the invoked tools only operate at the package-scope.
|
|
296
296
|
|
|
297
297
|
Usage:
|
|
298
298
|
|
|
299
299
|
```txt
|
|
300
|
-
|
|
300
|
+
ksc print-config [file]
|
|
301
301
|
```
|
|
302
302
|
|
|
303
303
|
| Positional Argument | Description | Type |
|
|
@@ -311,7 +311,7 @@ kpi print-config [file]
|
|
|
311
311
|
|
|
312
312
|
<!-- /cli-help -->
|
|
313
313
|
|
|
314
|
-
Recall that the `@kitschpatrol/shared-config` package aggregates integration and invocation of the other tool-specific packages in this monorepo. Running a cli command on `
|
|
314
|
+
Recall that the `@kitschpatrol/shared-config` package aggregates integration and invocation of the other tool-specific packages in this monorepo. Running a cli command on `ksc` effectively runs the same command against all the tool-specific packages.
|
|
315
315
|
|
|
316
316
|
## Implementation notes
|
|
317
317
|
|
|
@@ -385,6 +385,7 @@ Something to investigate: An [approach](https://github.com/antfu/eslint-config#v
|
|
|
385
385
|
- [Complete](https://complete-ts.github.io/)
|
|
386
386
|
- [vercel/style-guide](https://github.com/vercel/style-guide)
|
|
387
387
|
- [ZumerBox](https://github.com/zumerlab/zumerbox)
|
|
388
|
+
- [lintroll](https://www.npmjs.com/package/lintroll)
|
|
388
389
|
|
|
389
390
|
<!-- license -->
|
|
390
391
|
|