@theholocron/prettier-config 8.9.0-alpha.1 → 8.9.0-alpha.16

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 CHANGED
@@ -2,18 +2,31 @@
2
2
  * @see https://prettier.io/docs/en/configuration.html
3
3
  */
4
4
  declare const config: {
5
+ /** Prettier's `arrowParens`: always wrap arrow function parameters in parentheses. */
5
6
  arrowParens: "always";
7
+ /** Prettier's `bracketSameLine`: off, so the closing `>` of a multi-line JSX element goes on its own line. */
6
8
  bracketSameLine: false;
9
+ /** Prettier's `bracketSpacing`: print spaces inside object braces. */
7
10
  bracketSpacing: true;
11
+ /** Prettier's `experimentalTernaries`: off, so the standard ternary formatting is used. */
8
12
  experimentalTernaries: false;
13
+ /** Prettier's `jsxSingleQuote`: off, so JSX attributes use double quotes. */
9
14
  jsxSingleQuote: false;
15
+ /** Prettier's `quoteProps`: quote object properties only where required. */
10
16
  quoteProps: "as-needed";
17
+ /** Prettier's `printWidth`: lines wrap at 120 columns. */
11
18
  printWidth: number;
19
+ /** Prettier's `semi`: statements end with a semicolon. */
12
20
  semi: true;
21
+ /** Prettier's `singleQuote`: off, so strings use double quotes. */
13
22
  singleQuote: false;
23
+ /** Prettier's `tabWidth`: a tab counts as 4 columns. */
14
24
  tabWidth: number;
25
+ /** Prettier's `trailingComma`: `es5`, so trailing commas go where ES5 allows them (objects and arrays, not function parameters). */
15
26
  trailingComma: "es5";
27
+ /** Prettier's `useTabs`: indent with tabs. */
16
28
  useTabs: true;
29
+ /** Per-file overrides: two-space indentation for Markdown, MDX, JSON and YAML, and an 80-column width for `tsconfig*.json`. */
17
30
  overrides: ({
18
31
  files: string[];
19
32
  options: {
package/dist/index.js CHANGED
@@ -3,18 +3,31 @@
3
3
  * @see https://prettier.io/docs/en/configuration.html
4
4
  */
5
5
  const config = {
6
+ /** Prettier's `arrowParens`: always wrap arrow function parameters in parentheses. */
6
7
  arrowParens: "always",
8
+ /** Prettier's `bracketSameLine`: off, so the closing `>` of a multi-line JSX element goes on its own line. */
7
9
  bracketSameLine: false,
10
+ /** Prettier's `bracketSpacing`: print spaces inside object braces. */
8
11
  bracketSpacing: true,
12
+ /** Prettier's `experimentalTernaries`: off, so the standard ternary formatting is used. */
9
13
  experimentalTernaries: false,
14
+ /** Prettier's `jsxSingleQuote`: off, so JSX attributes use double quotes. */
10
15
  jsxSingleQuote: false,
16
+ /** Prettier's `quoteProps`: quote object properties only where required. */
11
17
  quoteProps: "as-needed",
18
+ /** Prettier's `printWidth`: lines wrap at 120 columns. */
12
19
  printWidth: 120,
20
+ /** Prettier's `semi`: statements end with a semicolon. */
13
21
  semi: true,
22
+ /** Prettier's `singleQuote`: off, so strings use double quotes. */
14
23
  singleQuote: false,
24
+ /** Prettier's `tabWidth`: a tab counts as 4 columns. */
15
25
  tabWidth: 4,
26
+ /** Prettier's `trailingComma`: `es5`, so trailing commas go where ES5 allows them (objects and arrays, not function parameters). */
16
27
  trailingComma: "es5",
28
+ /** Prettier's `useTabs`: indent with tabs. */
17
29
  useTabs: true,
30
+ /** Per-file overrides: two-space indentation for Markdown, MDX, JSON and YAML, and an 80-column width for `tsconfig*.json`. */
18
31
  overrides: [
19
32
  {
20
33
  files: ["*.md", "*.mdx"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/prettier-config",
3
- "version": "8.9.0-alpha.1",
3
+ "version": "8.9.0-alpha.16",
4
4
  "description": "A Prettier configuration for formatting libraries in the Galaxy.",
5
5
  "keywords": [
6
6
  "prettier",
@@ -32,12 +32,12 @@
32
32
  "dist/"
33
33
  ],
34
34
  "devDependencies": {
35
- "@vitest/coverage-v8": "^5.0.5",
36
- "tsdown": "^0.23.3",
35
+ "@vitest/coverage-v8": "^5.1.0",
36
+ "tsdown": "^0.23.5",
37
37
  "typescript": "^5.9.3",
38
- "vitest": "^5.0.5",
39
- "@theholocron/vitest-config": "8.9.0-alpha.1",
40
- "@theholocron/tsconfig": "8.9.0-alpha.1"
38
+ "vitest": "^5.1.0",
39
+ "@theholocron/tsconfig": "8.9.0-alpha.16",
40
+ "@theholocron/vitest-config": "8.9.0-alpha.16"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "prettier": "^3"
@@ -49,10 +49,10 @@
49
49
  "access": "public"
50
50
  },
51
51
  "scripts": {
52
- "delivery.build": "tsdown",
53
- "sourceQuality.staticAnalysis": "eslint .",
52
+ "build": "tsdown",
53
+ "lint:code": "eslint .",
54
+ "test:unit": "vitest run --coverage",
54
55
  "test:watch": "vitest",
55
- "verification.typeSafety": "tsc --noEmit",
56
- "verification.unitTests": "vitest run"
56
+ "typecheck": "tsc --noEmit"
57
57
  }
58
58
  }