Skip to content

Commit a183bc5

Browse files
committed
fix: minor formatting and build process cleanup
1 parent 22a78ad commit a183bc5

File tree

19 files changed

+64
-44
lines changed

19 files changed

+64
-44
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/six-crews-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@googleworkspace/drive-picker-element": patch
3+
---
4+
5+
fix: minor formatting and build process cleanup

.github/workflows/automation.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
---
1515
name: Automation
16-
on: [ push, pull_request, workflow_dispatch ]
16+
on: [push, pull_request, workflow_dispatch]
1717
jobs:
1818
dependabot:
1919
runs-on: ubuntu-latest
@@ -26,4 +26,3 @@ jobs:
2626
run: gh pr review --approve "$PR_URL"
2727
- name: merge
2828
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
29-

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
**/coverage
1515
**/.turbo
1616
**/.cache
17-
**/node_modules
17+
**/node_modules
18+
19+
**/CHANGELOG.md

biome.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"linter": {
1515
"enabled": true,
1616
"rules": {
17-
"recommended": true
17+
"recommended": true,
18+
"complexity": {
19+
"noImportantStyles": "off"
20+
}
1821
}
1922
},
2023
"javascript": {

packages/drive-picker-element/.storybook/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import "./page.css";
33

44
<Meta isTemplate />
55

6-
<Canvas/>
6+
<Canvas />
77

88
{ new URL(window.location.href).searchParams.get("hideControls") === "true" ? null :<Controls/> }
99

10-
<Stories includePrimary={false}/>
10+
<Stories includePrimary={false} />

packages/drive-picker-element/scripts/docs.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
*/
1616

1717
import fs from "node:fs";
18+
import type { ClassMethod } from "custom-elements-manifest";
19+
import type {
20+
CustomElementDeclaration,
21+
Declaration,
22+
Package,
23+
} from "custom-elements-manifest/schema";
24+
import type { Root } from "mdast";
1825
import { fromMarkdown } from "mdast-util-from-markdown";
1926
import prettier from "prettier";
2027
import { remark } from "remark";
@@ -32,14 +39,6 @@ import {
3239
tableRow,
3340
text,
3441
} from "./lib/builder";
35-
36-
import type { ClassMethod } from "custom-elements-manifest";
37-
import type {
38-
CustomElementDeclaration,
39-
Declaration,
40-
Package,
41-
} from "custom-elements-manifest/schema";
42-
import type { Root } from "mdast";
4342
import * as CELLS from "./lib/cells";
4443

4544
const START = "<!-- START docs -->";

packages/drive-picker-element/scripts/lib/builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ import type {
2020
InlineCode,
2121
Paragraph,
2222
PhrasingContent,
23+
Table,
24+
TableCell,
25+
TableRow,
2326
Text,
2427
} from "mdast";
25-
import type { Table, TableCell, TableRow } from "mdast";
2628

2729
export const inlineCode = (value: string): InlineCode => ({
2830
type: "inlineCode",

packages/drive-picker-element/scripts/lib/cells.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ export type CELL<T = Attribute | ClassMember> = {
2929
get: (x: T) => TableCell;
3030
};
3131

32-
const formatParam = (param: { name?: string; type?: { text: string } }) =>
33-
`${param?.name}${param?.type?.text ? `: ${param.type.text}` : ""}`;
34-
3532
export const DEFAULT: CELL<Attribute> = {
3633
heading: "Default",
3734
get: (x) => tableCell(inlineCode(x.default ?? "")),

0 commit comments

Comments
 (0)