@forsakringskassan/prettier-config 3.0.4 → 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.
- package/dist/index.d.ts +28 -0
- package/dist/index.mjs +44 -0
- package/package.json +18 -10
- package/index.js +0 -38
package/dist/index.d.ts
ADDED
|
@@ -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,44 @@
|
|
|
1
|
+
// src/index.ts
|
|
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
|
+
export {
|
|
43
|
+
index_default as default
|
|
44
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/prettier-config",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
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
|
-
"
|
|
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
|
-
"
|
|
27
|
+
"dist",
|
|
25
28
|
"prettier.cjs"
|
|
26
29
|
],
|
|
27
|
-
"
|
|
28
|
-
"
|
|
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": "
|
|
42
|
+
"gitHead": "1f07678dfda564b6ec64e3a6d15f6766ac8fb9af"
|
|
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
|
-
};
|