@forsakringskassan/prettier-config-svelte 3.0.5 → 3.1.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.
@@ -0,0 +1,33 @@
1
+ declare const config: {
2
+ plugins: string[];
3
+ overrides: ({
4
+ files: string;
5
+ options: {
6
+ tabWidth: number;
7
+ printWidth?: never;
8
+ };
9
+ } | {
10
+ files: string[];
11
+ options: {
12
+ printWidth: number;
13
+ tabWidth?: never;
14
+ };
15
+ } | {
16
+ files: string;
17
+ options: {
18
+ printWidth: number;
19
+ tabWidth?: never;
20
+ };
21
+ } | {
22
+ files: string;
23
+ options: {
24
+ parser: "svelte";
25
+ };
26
+ })[];
27
+ singleQuote: false;
28
+ arrowParens: "always";
29
+ tabWidth: number;
30
+ printWidth: number;
31
+ trailingComma: "all";
32
+ };
33
+ export default config;
package/dist/index.mjs ADDED
@@ -0,0 +1,55 @@
1
+ // ../prettier-config/dist/index.mjs
2
+ var config = {
3
+ plugins: [import.meta.resolve("prettier-plugin-packagejson")],
4
+ singleQuote: false,
5
+ arrowParens: "always",
6
+ tabWidth: 4,
7
+ printWidth: 80,
8
+ trailingComma: "all",
9
+ overrides: [
10
+ {
11
+ files: "package.json",
12
+ options: {
13
+ tabWidth: 2
14
+ }
15
+ },
16
+ {
17
+ files: ["*.vue", "*.html"],
18
+ options: {
19
+ printWidth: 120
20
+ }
21
+ },
22
+ {
23
+ files: ["*.scss"],
24
+ options: {
25
+ /* use a high value to not break add line-breaks when using
26
+ * variables shorthands, e.g.
27
+ * "padding: var(--a) var(--b) var(--c) var(--d)" */
28
+ printWidth: 160
29
+ }
30
+ },
31
+ {
32
+ /* adjust width for examples so they fit in the documentation "view
33
+ * source" container */
34
+ files: "**/examples/*.vue",
35
+ options: {
36
+ printWidth: 100
37
+ }
38
+ }
39
+ ]
40
+ };
41
+ var index_default = config;
42
+
43
+ // src/index.ts
44
+ var config2 = {
45
+ ...index_default,
46
+ plugins: [...index_default.plugins, "prettier-plugin-svelte"],
47
+ overrides: [
48
+ ...index_default.overrides,
49
+ { files: "*.svelte", options: { parser: "svelte" } }
50
+ ]
51
+ };
52
+ var index_default2 = config2;
53
+ export {
54
+ index_default2 as default
55
+ };
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@forsakringskassan/prettier-config-svelte",
3
- "version": "3.0.5",
3
+ "version": "3.1.0",
4
4
  "description": "FK Prettier Svelte Config",
5
5
  "keywords": [
6
6
  "prettier"
7
7
  ],
8
- "scripts": {
9
- "build": "node generate.mjs",
10
- "test": "node prettier.cjs --version"
11
- },
12
8
  "homepage": "https://github.com/Forsakringskassan/prettier-config",
13
9
  "bugs": "https://github.com/Forsakringskassan/prettier-config/issues",
14
10
  "repository": {
@@ -17,24 +13,31 @@
17
13
  },
18
14
  "license": "MIT",
19
15
  "author": "Försäkringskassan",
20
- "main": "dist/index.js",
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs"
21
+ }
22
+ },
21
23
  "bin": {
22
24
  "prettier": "prettier.cjs"
23
25
  },
24
26
  "files": [
25
- "dist/index.js",
27
+ "dist",
26
28
  "prettier.cjs"
27
29
  ],
28
- "dependencies": {
29
- "prettier": "3.5.3",
30
- "prettier-plugin-svelte": "^3.3.2"
30
+ "scripts": {
31
+ "prebuild": "tsc",
32
+ "build": "node build.mjs",
33
+ "prepack": "release-prepack --bundle --retain-scripts",
34
+ "postpack": "release-postpack",
35
+ "prepublishOnly": "release-prepublish --bundle --retain-scripts",
36
+ "test": "node prettier.cjs --version"
31
37
  },
32
38
  "engines": {
33
- "node": ">= 20",
39
+ "node": ">= 20.6.0",
34
40
  "npm": ">= 9"
35
41
  },
36
- "devDependencies": {
37
- "esbuild": "0.25.0"
38
- },
39
- "gitHead": "047255609fb54bbca3d56ea4cd5ae7d663fbd7d7"
42
+ "gitHead": "1f07678dfda564b6ec64e3a6d15f6766ac8fb9af"
40
43
  }
package/dist/index.js DELETED
@@ -1,59 +0,0 @@
1
- var __getOwnPropNames = Object.getOwnPropertyNames;
2
- var __commonJS = (cb, mod) => function __require() {
3
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
- };
5
-
6
- // ../prettier-config/index.js
7
- var require_prettier_config = __commonJS({
8
- "../prettier-config/index.js"(exports2, module2) {
9
- module2.exports = {
10
- singleQuote: false,
11
- arrowParens: "always",
12
- tabWidth: 4,
13
- printWidth: 80,
14
- trailingComma: "all",
15
- overrides: [
16
- {
17
- files: "package.json",
18
- options: {
19
- tabWidth: 2
20
- }
21
- },
22
- {
23
- files: ["*.vue", "*.html"],
24
- options: {
25
- printWidth: 120
26
- }
27
- },
28
- {
29
- files: ["*.scss"],
30
- options: {
31
- /* use a high value to not break add line-breaks when using
32
- * variables shorthands, e.g.
33
- * "padding: var(--a) var(--b) var(--c) var(--d)" */
34
- printWidth: 160
35
- }
36
- },
37
- {
38
- /* adjust width for examples so they fit in the documentation "view
39
- * source" container */
40
- files: "**/examples/*.vue",
41
- options: {
42
- printWidth: 100
43
- }
44
- }
45
- ]
46
- };
47
- }
48
- });
49
-
50
- // index.js
51
- var mainConfig = require_prettier_config();
52
- module.exports = {
53
- ...mainConfig,
54
- plugins: ["prettier-plugin-svelte"],
55
- overrides: [
56
- ...mainConfig.overrides,
57
- { files: "*.svelte", options: { parser: "svelte" } }
58
- ]
59
- };