Skip to content

Commit 0b30321

Browse files
committed
Merge remote-tracking branch 'upstream' into docs/add-webpack-setting-template-and-library-bundling
2 parents e76b857 + de00662 commit 0b30321

File tree

155 files changed

+1370
-1331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+1370
-1331
lines changed

.github/DISCUSSION_TEMPLATE/code-smell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
labels: ['Discussion']
1+
labels: ["Discussion"]
22
body:
33
- type: markdown
44
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
## 📝 Key Changes
2+
23
<!-- Describe the purpose of this PR and the problem it resolves. -->
34

45
## 🖼️ Before and After Comparison
6+
57
<!-- Attach screenshots or a GIF showing the before and after changes. -->
68

7-
| | |
8-
|:—:|:—:|
99
|**Before**|**After**|
10+
|:-:|:-:|
11+
| | |

.github/workflows/autofix.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: autofix.ci
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
autofix:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
- run: corepack enable
22+
- uses: actions/setup-node@v4
23+
with:
24+
cache: "yarn"
25+
cache-dependency-path: "yarn.lock"
26+
node-version-file: ".nvmrc"
27+
- run: yarn install
28+
- run: yarn prettier --write .
29+
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27

.pnp.cjs

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.yarn

.prettierrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"singleQuote": false,
3-
"trailingComma": "none",
4-
"tabWidth": 2,
5-
"semi": true
2+
"singleQuote": false,
3+
"trailingComma": "none",
4+
"tabWidth": 2,
5+
"semi": true
66
}

.tossrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '0.14'
1+
version: "0.14"
22
service:
33
image:
44
source: ./fundamentals/code-quality/.vitepress/dist
@@ -15,4 +15,4 @@ ci:
1515
- service pack -o image.tar.br
1616
- service publish image.tar.br s3:internal.alpha/docs-code-quality -m s3:internal.alpha/docs-code-quality/alpha
1717
- service publish image.tar.br s3:internal.common/docs-code-quality -m s3:internal.common/docs-code-quality/live
18-
- service deploy image.tar.br s3:core.alpha/docs-code-quality/alpha
18+
- service deploy image.tar.br s3:core.alpha/docs-code-quality/alpha

.vscode/extensions.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"recommendations": [
3-
"arcanis.vscode-zipfs",
4-
"esbenp.prettier-vscode"
5-
]
2+
"recommendations": ["arcanis.vscode-zipfs", "esbenp.prettier-vscode"]
63
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ https://frontend-fundamentals.com/code-quality/en/
1919

2020
- [Code Quality Fundamentals](https://frontend-fundamentals.com/code-quality/)
2121
- [Bundling Fundamentals](https://frontend-fundamentals.com/bundling/)
22-
- A11y Fundamentals (coming soon!)
22+
- [A11y Fundamentals](https://frontend-fundamentals.com/a11y/)
2323

2424
## Contributing
2525

api/github/graphql.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
export default async function handler(req, res) {
22
const { method } = req;
33

4-
if (method !== 'POST') {
5-
return res.status(405).json({ error: 'Method not allowed' });
4+
if (method !== "POST") {
5+
return res.status(405).json({ error: "Method not allowed" });
66
}
77

88
const { query, variables } = req.body;
99

1010
const authHeader = req.headers.authorization;
1111
let token;
1212

13-
if (authHeader && authHeader.startsWith('Bearer ')) {
14-
token = authHeader.replace('Bearer ', '');
13+
if (authHeader && authHeader.startsWith("Bearer ")) {
14+
token = authHeader.replace("Bearer ", "");
1515
} else {
1616
token = process.env.READ_GITHUB_DISCUSSION_ACCESS_TOKEN;
17-
17+
1818
if (!token) {
19-
return res.status(500).json({ error: "GitHub server token is not configured" });
19+
return res
20+
.status(500)
21+
.json({ error: "GitHub server token is not configured" });
2022
}
2123
}
2224

@@ -38,7 +40,7 @@ export default async function handler(req, res) {
3840

3941
return res.status(200).json(data);
4042
} catch (error) {
41-
console.error('GraphQL request error:', error);
42-
return res.status(500).json({ error: 'Failed to execute GraphQL query' });
43+
console.error("GraphQL request error:", error);
44+
return res.status(500).json({ error: "Failed to execute GraphQL query" });
4345
}
4446
}

0 commit comments

Comments
 (0)