@forsakringskassan/prettier-config-svelte 3.2.1 → 3.2.2
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/dist/index.cjs +53 -90
- package/dist/index.mjs +9 -7
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
6
|
var __export = (target, all) => {
|
|
12
7
|
for (var name in all)
|
|
13
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -20,101 +15,69 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
15
|
}
|
|
21
16
|
return to;
|
|
22
17
|
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
19
|
|
|
33
|
-
// ../prettier-config/dist/index.cjs
|
|
34
|
-
var require_dist = __commonJS({
|
|
35
|
-
"../prettier-config/dist/index.cjs"(exports2, module2) {
|
|
36
|
-
"use strict";
|
|
37
|
-
var __defProp2 = Object.defineProperty;
|
|
38
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
39
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
40
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
41
|
-
var __export2 = (target, all) => {
|
|
42
|
-
for (var name in all)
|
|
43
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
44
|
-
};
|
|
45
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
46
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
47
|
-
for (let key of __getOwnPropNames2(from))
|
|
48
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
49
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
50
|
-
}
|
|
51
|
-
return to;
|
|
52
|
-
};
|
|
53
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
54
|
-
var index_exports2 = {};
|
|
55
|
-
__export2(index_exports2, {
|
|
56
|
-
default: () => index_default2
|
|
57
|
-
});
|
|
58
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
59
|
-
function resolveModulePath(id) {
|
|
60
|
-
return require.resolve(id);
|
|
61
|
-
}
|
|
62
|
-
var config2 = {
|
|
63
|
-
plugins: [resolveModulePath("prettier-plugin-packagejson")],
|
|
64
|
-
singleQuote: false,
|
|
65
|
-
arrowParens: "always",
|
|
66
|
-
tabWidth: 4,
|
|
67
|
-
printWidth: 80,
|
|
68
|
-
trailingComma: "all",
|
|
69
|
-
overrides: [
|
|
70
|
-
{
|
|
71
|
-
files: "package.json",
|
|
72
|
-
options: {
|
|
73
|
-
tabWidth: 2
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
files: ["*.vue", "*.html"],
|
|
78
|
-
options: {
|
|
79
|
-
printWidth: 120
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
files: ["*.scss"],
|
|
84
|
-
options: {
|
|
85
|
-
/* use a high value to not break add line-breaks when using
|
|
86
|
-
* variables shorthands, e.g.
|
|
87
|
-
* "padding: var(--a) var(--b) var(--c) var(--d)" */
|
|
88
|
-
printWidth: 160
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
/* adjust width for examples so they fit in the documentation "view
|
|
93
|
-
* source" container */
|
|
94
|
-
files: "**/examples/*.vue",
|
|
95
|
-
options: {
|
|
96
|
-
printWidth: 100
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
};
|
|
101
|
-
var index_default2 = config2;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
20
|
// src/index.ts
|
|
106
21
|
var index_exports = {};
|
|
107
22
|
__export(index_exports, {
|
|
108
23
|
default: () => index_default
|
|
109
24
|
});
|
|
110
25
|
module.exports = __toCommonJS(index_exports);
|
|
111
|
-
|
|
26
|
+
|
|
27
|
+
// ../prettier-config/src/resolve-module-path.cjs.ts
|
|
28
|
+
function resolveModulePath(id) {
|
|
29
|
+
return require.resolve(id);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ../prettier-config/src/index.ts
|
|
112
33
|
var config = {
|
|
113
|
-
|
|
114
|
-
|
|
34
|
+
plugins: [resolveModulePath("prettier-plugin-packagejson")],
|
|
35
|
+
singleQuote: false,
|
|
36
|
+
arrowParens: "always",
|
|
37
|
+
tabWidth: 4,
|
|
38
|
+
printWidth: 80,
|
|
39
|
+
trailingComma: "all",
|
|
40
|
+
overrides: [
|
|
41
|
+
{
|
|
42
|
+
files: "package.json",
|
|
43
|
+
options: {
|
|
44
|
+
tabWidth: 2
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
files: ["*.vue", "*.html"],
|
|
49
|
+
options: {
|
|
50
|
+
printWidth: 120
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
files: ["*.scss"],
|
|
55
|
+
options: {
|
|
56
|
+
/* use a high value to not break add line-breaks when using
|
|
57
|
+
* variables shorthands, e.g.
|
|
58
|
+
* "padding: var(--a) var(--b) var(--c) var(--d)" */
|
|
59
|
+
printWidth: 160
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
/* adjust width for examples so they fit in the documentation "view
|
|
64
|
+
* source" container */
|
|
65
|
+
files: "**/examples/*.vue",
|
|
66
|
+
options: {
|
|
67
|
+
printWidth: 100
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
};
|
|
72
|
+
var src_default = config;
|
|
73
|
+
|
|
74
|
+
// src/index.ts
|
|
75
|
+
var config2 = {
|
|
76
|
+
...src_default,
|
|
77
|
+
plugins: [...src_default.plugins, "prettier-plugin-svelte"],
|
|
115
78
|
overrides: [
|
|
116
|
-
...
|
|
79
|
+
...src_default.overrides,
|
|
117
80
|
{ files: "*.svelte", options: { parser: "svelte" } }
|
|
118
81
|
]
|
|
119
82
|
};
|
|
120
|
-
var index_default =
|
|
83
|
+
var index_default = config2;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
// ../prettier-config/
|
|
1
|
+
// ../prettier-config/src/resolve-module-path.esm.ts
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
function resolveModulePath(id) {
|
|
4
4
|
return fileURLToPath(import.meta.resolve(id));
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
// ../prettier-config/src/index.ts
|
|
6
8
|
var config = {
|
|
7
9
|
plugins: [resolveModulePath("prettier-plugin-packagejson")],
|
|
8
10
|
singleQuote: false,
|
|
@@ -42,18 +44,18 @@ var config = {
|
|
|
42
44
|
}
|
|
43
45
|
]
|
|
44
46
|
};
|
|
45
|
-
var
|
|
47
|
+
var src_default = config;
|
|
46
48
|
|
|
47
49
|
// src/index.ts
|
|
48
50
|
var config2 = {
|
|
49
|
-
...
|
|
50
|
-
plugins: [...
|
|
51
|
+
...src_default,
|
|
52
|
+
plugins: [...src_default.plugins, "prettier-plugin-svelte"],
|
|
51
53
|
overrides: [
|
|
52
|
-
...
|
|
54
|
+
...src_default.overrides,
|
|
53
55
|
{ files: "*.svelte", options: { parser: "svelte" } }
|
|
54
56
|
]
|
|
55
57
|
};
|
|
56
|
-
var
|
|
58
|
+
var index_default = config2;
|
|
57
59
|
export {
|
|
58
|
-
|
|
60
|
+
index_default as default
|
|
59
61
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/prettier-config-svelte",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "FK Prettier Svelte Config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"prettier"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"node": ">= 20.6.0",
|
|
41
41
|
"npm": ">= 9"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8053663ba46f6dc1bc9a82ff0f9ae91408b81fac"
|
|
44
44
|
}
|