@forsakringskassan/prettier-config 3.0.5 → 3.1.1

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,28 @@
1
+ declare const config: {
2
+ plugins: string[];
3
+ singleQuote: false;
4
+ arrowParens: "always";
5
+ tabWidth: number;
6
+ printWidth: number;
7
+ trailingComma: "all";
8
+ overrides: ({
9
+ files: string;
10
+ options: {
11
+ tabWidth: number;
12
+ printWidth?: never;
13
+ };
14
+ } | {
15
+ files: string[];
16
+ options: {
17
+ printWidth: number;
18
+ tabWidth?: never;
19
+ };
20
+ } | {
21
+ files: string;
22
+ options: {
23
+ printWidth: number;
24
+ tabWidth?: never;
25
+ };
26
+ })[];
27
+ };
28
+ export default config;
package/dist/index.mjs ADDED
@@ -0,0 +1,47 @@
1
+ // src/index.ts
2
+ import { fileURLToPath } from "url";
3
+ var config = {
4
+ plugins: [
5
+ fileURLToPath(import.meta.resolve("prettier-plugin-packagejson"))
6
+ ],
7
+ singleQuote: false,
8
+ arrowParens: "always",
9
+ tabWidth: 4,
10
+ printWidth: 80,
11
+ trailingComma: "all",
12
+ overrides: [
13
+ {
14
+ files: "package.json",
15
+ options: {
16
+ tabWidth: 2
17
+ }
18
+ },
19
+ {
20
+ files: ["*.vue", "*.html"],
21
+ options: {
22
+ printWidth: 120
23
+ }
24
+ },
25
+ {
26
+ files: ["*.scss"],
27
+ options: {
28
+ /* use a high value to not break add line-breaks when using
29
+ * variables shorthands, e.g.
30
+ * "padding: var(--a) var(--b) var(--c) var(--d)" */
31
+ printWidth: 160
32
+ }
33
+ },
34
+ {
35
+ /* adjust width for examples so they fit in the documentation "view
36
+ * source" container */
37
+ files: "**/examples/*.vue",
38
+ options: {
39
+ printWidth: 100
40
+ }
41
+ }
42
+ ]
43
+ };
44
+ var index_default = config;
45
+ export {
46
+ index_default as default
47
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/prettier-config",
3
- "version": "3.0.5",
3
+ "version": "3.1.1",
4
4
  "description": "FK Prettier Config",
5
5
  "keywords": [
6
6
  "prettier"
@@ -11,25 +11,33 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/Forsakringskassan/prettier-config.git"
13
13
  },
14
- "scripts": {
15
- "test": "node prettier.cjs --version"
16
- },
17
14
  "license": "MIT",
18
15
  "author": "Försäkringskassan",
19
- "main": "index.js",
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs"
21
+ }
22
+ },
20
23
  "bin": {
21
24
  "prettier": "prettier.cjs"
22
25
  },
23
26
  "files": [
24
- "index.js",
27
+ "dist",
25
28
  "prettier.cjs"
26
29
  ],
27
- "dependencies": {
28
- "prettier": "3.5.3"
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"
29
37
  },
30
38
  "engines": {
31
- "node": ">= 20",
39
+ "node": ">= 20.6.0",
32
40
  "npm": ">= 9"
33
41
  },
34
- "gitHead": "047255609fb54bbca3d56ea4cd5ae7d663fbd7d7"
42
+ "gitHead": "3535ea3140e5e0370db630fe59917ed4110f13d3"
35
43
  }
package/index.js DELETED
@@ -1,38 +0,0 @@
1
- module.exports = {
2
- singleQuote: false,
3
- arrowParens: "always",
4
- tabWidth: 4,
5
- printWidth: 80,
6
- trailingComma: "all",
7
- overrides: [
8
- {
9
- files: "package.json",
10
- options: {
11
- tabWidth: 2,
12
- },
13
- },
14
- {
15
- files: ["*.vue", "*.html"],
16
- options: {
17
- printWidth: 120,
18
- },
19
- },
20
- {
21
- files: ["*.scss"],
22
- options: {
23
- /* use a high value to not break add line-breaks when using
24
- * variables shorthands, e.g.
25
- * "padding: var(--a) var(--b) var(--c) var(--d)" */
26
- printWidth: 160,
27
- },
28
- },
29
- {
30
- /* adjust width for examples so they fit in the documentation "view
31
- * source" container */
32
- files: "**/examples/*.vue",
33
- options: {
34
- printWidth: 100,
35
- },
36
- },
37
- ],
38
- };