@kitschpatrol/mdat-config 5.13.0 → 6.0.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 -5907
- package/dist/index.d.ts +7 -4
- package/dist/index.js +3 -24
- package/package.json +10 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Config } from "mdat";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
declare const sharedMdatConfig: Config;
|
|
3
5
|
/**
|
|
4
6
|
* **\@Kitschpatrol's Shared Mdat Configuration**
|
|
5
7
|
* @see [@kitschpatrol/mdat-config](https://github.com/kitschpatrol/shared-config/tree/main/packages/mdat-config)
|
|
@@ -13,5 +15,6 @@ declare const sharedMdatConfig: MdatConfig;
|
|
|
13
15
|
* })
|
|
14
16
|
* ```
|
|
15
17
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
declare function mdatConfig(config?: Config): Config;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { sharedMdatConfig as default, mdatConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
rules: {
|
|
5
|
-
'shared-config': '## Project configuration\n\nThis project uses [@kitschpatrol/shared-config](https://github.com/kitschpatrol/shared-config) to consolidate various linting and formatting tool configurations under a single dependency and the CLI command `ksc`. (ESLint, Prettier, CSpell, etc.)',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* **\@Kitschpatrol's Shared Mdat Configuration**
|
|
10
|
-
* @see [@kitschpatrol/mdat-config](https://github.com/kitschpatrol/shared-config/tree/main/packages/mdat-config)
|
|
11
|
-
* @see [@kitschpatrol/shared-config](https://github.com/kitschpatrol/shared-config)
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* export default mdatConfig({
|
|
15
|
-
* rules: {
|
|
16
|
-
* test: '**This is a test rule.**',
|
|
17
|
-
* },
|
|
18
|
-
* })
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export function mdatConfig(config) {
|
|
22
|
-
return mergeConfigs(sharedMdatConfig, config ?? {});
|
|
23
|
-
}
|
|
24
|
-
export default sharedMdatConfig;
|
|
1
|
+
import{mergeConfigs as e}from"mdat";const t={rules:{"shared-config":`## Project configuration
|
|
2
|
+
|
|
3
|
+
This project uses [@kitschpatrol/shared-config](https://github.com/kitschpatrol/shared-config) to consolidate various linting and formatting tool configurations under a single dependency and the CLI command \`ksc\`. (ESLint, Prettier, CSpell, etc.)`}};function n(n){return e(t,n??{})}export{t as default,n as mdatConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/mdat-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "MDAT configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"main": "dist/index.js",
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"bin": {
|
|
38
|
-
"kpi-mdat": "bin/cli.js",
|
|
39
38
|
"ksc-mdat": "bin/cli.js"
|
|
40
39
|
},
|
|
41
40
|
"files": [
|
|
@@ -47,20 +46,26 @@
|
|
|
47
46
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
48
47
|
"cosmiconfig": "^9.0.0",
|
|
49
48
|
"cosmiconfig-typescript-loader": "^6.2.0",
|
|
49
|
+
"decircular": "^1.0.0",
|
|
50
|
+
"deepmerge": "^4.3.1",
|
|
50
51
|
"execa": "^9.6.1",
|
|
51
52
|
"find-workspaces": "^0.3.1",
|
|
52
53
|
"fs-extra": "^11.3.3",
|
|
54
|
+
"json-stringify-pretty-compact": "^4.0.0",
|
|
53
55
|
"mdat": "^1.3.4",
|
|
54
|
-
"
|
|
56
|
+
"package-up": "^5.0.0",
|
|
57
|
+
"picocolors": "^1.1.1",
|
|
58
|
+
"prettier": "^3.8.1",
|
|
59
|
+
"yargs": "^18.0.0"
|
|
55
60
|
},
|
|
56
61
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
62
|
+
"node": ">=22.21.0"
|
|
58
63
|
},
|
|
59
64
|
"publishConfig": {
|
|
60
65
|
"access": "public"
|
|
61
66
|
},
|
|
62
67
|
"scripts": {
|
|
63
|
-
"build": "
|
|
68
|
+
"build": "tsdown",
|
|
64
69
|
"cli": "node ./bin/cli.js"
|
|
65
70
|
}
|
|
66
71
|
}
|