@theholocron/prettier-config 6.1.0 → 7.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.
@@ -0,0 +1,35 @@
1
+ //#region index.d.ts
2
+ /**
3
+ * @see https://prettier.io/docs/en/configuration.html
4
+ */
5
+ declare const config: {
6
+ arrowParens: "always";
7
+ bracketSameLine: false;
8
+ bracketSpacing: true;
9
+ experimentalTernaries: false;
10
+ jsxSingleQuote: false;
11
+ quoteProps: "as-needed";
12
+ printWidth: number;
13
+ semi: true;
14
+ singleQuote: false;
15
+ tabWidth: number;
16
+ trailingComma: "es5";
17
+ useTabs: true;
18
+ overrides: ({
19
+ files: string[];
20
+ options: {
21
+ tabWidth: number;
22
+ useTabs: false;
23
+ printWidth?: undefined;
24
+ };
25
+ } | {
26
+ files: string[];
27
+ options: {
28
+ printWidth: number;
29
+ tabWidth?: undefined;
30
+ useTabs?: undefined;
31
+ };
32
+ })[];
33
+ };
34
+ //#endregion
35
+ export { config as default };
package/dist/index.js ADDED
@@ -0,0 +1,34 @@
1
+ //#region index.ts
2
+ /**
3
+ * @see https://prettier.io/docs/en/configuration.html
4
+ */
5
+ const config = {
6
+ arrowParens: "always",
7
+ bracketSameLine: false,
8
+ bracketSpacing: true,
9
+ experimentalTernaries: false,
10
+ jsxSingleQuote: false,
11
+ quoteProps: "as-needed",
12
+ printWidth: 120,
13
+ semi: true,
14
+ singleQuote: false,
15
+ tabWidth: 4,
16
+ trailingComma: "es5",
17
+ useTabs: true,
18
+ overrides: [{
19
+ files: [
20
+ "*.json",
21
+ "*.yml",
22
+ "*.yaml"
23
+ ],
24
+ options: {
25
+ tabWidth: 2,
26
+ useTabs: false
27
+ }
28
+ }, {
29
+ files: ["tsconfig*.json"],
30
+ options: { printWidth: 80 }
31
+ }]
32
+ };
33
+ //#endregion
34
+ export { config as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/prettier-config",
3
- "version": "6.1.0",
3
+ "version": "7.0.0",
4
4
  "description": "A Prettier configuration for formatting libraries in the Galaxy.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/prettier-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -11,7 +11,23 @@
11
11
  "license": "GPL-3.0",
12
12
  "author": "Newton Koumantzelis",
13
13
  "type": "module",
14
- "main": "prettier.config.js",
14
+ "main": "dist/index.js",
15
+ "devDependencies": {
16
+ "tsdown": "^0.22.8",
17
+ "typescript": "^5.9.3",
18
+ "@theholocron/tsconfig": "7.0.0"
19
+ },
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "dist/"
30
+ ],
15
31
  "peerDependencies": {
16
32
  "prettier": "^3"
17
33
  },
@@ -19,5 +35,8 @@
19
35
  "access": "public"
20
36
  },
21
37
  "releases": "https://github.com/theholocron/configs/releases",
22
- "wiki": "https://github.com/theholocron/configs/wiki"
38
+ "wiki": "https://github.com/theholocron/configs/wiki",
39
+ "scripts": {
40
+ "build": "tsdown"
41
+ }
23
42
  }
package/CHANGELOG.md DELETED
@@ -1,39 +0,0 @@
1
- # @theholocron/prettier-config
2
-
3
- ## 4.1.0
4
-
5
- ## 4.0.0
6
-
7
- ### Major Changes
8
-
9
- - [`14a6658`](https://github.com/theholocron/configs/commit/14a6658dfccae1206f629783be6f7aed59b28ebf) Thanks [@iamnewton](https://github.com/iamnewton)! - update all dependencies to be latest
10
-
11
- ## 3.3.0
12
-
13
- ### Minor Changes
14
-
15
- - [`30e50b0`](https://github.com/theholocron/configs/commit/30e50b000dd1f9ac61e3ad1c3abee2ab3a52e7ac) Thanks [@iamnewton](https://github.com/iamnewton)! - Add in stylelint
16
-
17
- ## 3.2.1
18
-
19
- ### Patch Changes
20
-
21
- - [`3d54f12`](https://github.com/theholocron/configs/commit/3d54f12618e8a6cc6ccc4559eb48ef402bb04d77) Thanks [@iamnewton](https://github.com/iamnewton)! - Fix the storybook config; its missing the index file from the export
22
-
23
- ## 3.2.0
24
-
25
- ### Minor Changes
26
-
27
- - [`46d40c1`](https://github.com/theholocron/configs/commit/46d40c17d963b3c81fd6fdf308da4228112f5fe4) Thanks [@iamnewton](https://github.com/iamnewton)! - Add more to eslint-config, add in storybook-config
28
-
29
- ## 3.1.0
30
-
31
- ### Minor Changes
32
-
33
- - [`4f8154a`](https://github.com/theholocron/configs/commit/4f8154a534d5d7668cd2659da322448f39646aed) Thanks [@iamnewton](https://github.com/iamnewton)! - Update to include Alex language linting in lint-staging
34
-
35
- ## 3.0.0
36
-
37
- ### Major Changes
38
-
39
- - [`88d7f99`](https://github.com/theholocron/configs/commit/88d7f995dd02cdbe63817ac0d13905d5aea3777a) Thanks [@iamnewton](https://github.com/iamnewton)! - Initial release
package/index.js DELETED
File without changes
@@ -1,40 +0,0 @@
1
- /**
2
- * @see https://prettier.io/docs/en/configuration.html
3
- * @type {import("prettier").Config}
4
- */
5
- const config = {
6
- arrowParens: "always",
7
- bracketSameLine: false,
8
- bracketSpacing: true,
9
- experimentalTernaries: false,
10
- jsxSingleQuote: false,
11
- quoteProps: "as-needed",
12
- printWidth: 120,
13
- semi: true,
14
- singleQuote: false,
15
- tabWidth: 4,
16
- trailingComma: "es5",
17
- useTabs: true,
18
- overrides: [
19
- {
20
- files: ["*.json", "*.yml", "*.yaml"],
21
- options: {
22
- tabWidth: 2,
23
- useTabs: false,
24
- },
25
- },
26
- {
27
- // printWidth: 80 keeps tsconfig references arrays expanded one-per-line
28
- // (the collapsed form fits within 120 chars and becomes hard to scan).
29
- // String values never split regardless of printWidth, so this only
30
- // affects arrays of objects that exceed 80 chars — in practice just
31
- // the references array.
32
- files: ["tsconfig*.json"],
33
- options: {
34
- printWidth: 80,
35
- },
36
- },
37
- ],
38
- };
39
-
40
- export default config;