Skip to content

Commit 35697b0

Browse files
committed
Merge branch 'main' into tsx
2 parents 84e8073 + 9bc45c2 commit 35697b0

Some content is hidden

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

84 files changed

+11056
-8206
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
github: antfu
1+
open_collective: antfu
2+
github: [antfu]

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
1719

1820
- name: Set node
19-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v4
2022
with:
2123
node-version: lts/*
2224

23-
- run: corepack enable
24-
2525
- name: Setup
2626
run: npm i -g @antfu/ni
2727

@@ -31,25 +31,28 @@ jobs:
3131
- name: Lint
3232
run: nr lint
3333

34+
- name: Typecheck
35+
run: nr typecheck
36+
3437
test:
3538
runs-on: ${{ matrix.os }}
3639

3740
strategy:
3841
matrix:
39-
node: [16.x, 18.x]
42+
node: [lts/*]
4043
os: [ubuntu-latest, windows-latest, macos-latest]
4144
fail-fast: false
4245

4346
steps:
44-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v4
48+
49+
- uses: pnpm/action-setup@v4
4550

4651
- name: Set node version to ${{ matrix.node }}
47-
uses: actions/setup-node@v2
52+
uses: actions/setup-node@v4
4853
with:
4954
node-version: ${{ matrix.node }}
5055

51-
- run: corepack enable
52-
5356
- name: Setup
5457
run: npm i -g @antfu/ni
5558

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
permissions: {}
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.number }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
release:
12+
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
13+
with:
14+
compact: true

.github/workflows/release.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-latest
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
1113
permissions:
1214
contents: write
13-
steps:
14-
- uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
18-
- uses: actions/setup-node@v3
19-
with:
20-
node-version: lts/*
21-
22-
- run: npx changelogithub
23-
env:
24-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
15+
id-token: write

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
.DS_Store
33
dist
44
.idea
5+
.components-info.json
56
components.d.ts

.npmrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3-
"prettier.enable": false
3+
4+
// Enable the ESlint flat config support
5+
"eslint.experimental.useFlatConfig": true,
6+
7+
// Disable the default formatter, use eslint instead
8+
"prettier.enable": false,
9+
"editor.formatOnSave": false,
10+
11+
// Auto fix
12+
"editor.codeActionsOnSave": {
13+
"source.fixAll.eslint": "explicit",
14+
"source.organizeImports": "never"
15+
},
16+
17+
// Silent the stylistic rules in you IDE, but still auto fix them
18+
"eslint.rules.customizations": [
19+
{ "rule": "style/*", "severity": "off" },
20+
{ "rule": "format/*", "severity": "off" },
21+
{ "rule": "*-indent", "severity": "off" },
22+
{ "rule": "*-spacing", "severity": "off" },
23+
{ "rule": "*-spaces", "severity": "off" },
24+
{ "rule": "*-order", "severity": "off" },
25+
{ "rule": "*-dangle", "severity": "off" },
26+
{ "rule": "*-newline", "severity": "off" },
27+
{ "rule": "*quotes", "severity": "off" },
28+
{ "rule": "*semi", "severity": "off" }
29+
],
30+
31+
// Enable eslint for all supported languages
32+
"eslint.validate": [
33+
"javascript",
34+
"javascriptreact",
35+
"typescript",
36+
"typescriptreact",
37+
"vue",
38+
"html",
39+
"markdown",
40+
"json",
41+
"jsonc",
42+
"yaml",
43+
"toml",
44+
"astro"
45+
]
446
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Anthony Fu<https://github.com/antfu>
3+
Copyright (c) 2020-PRESENT Anthony Fu<https://github.com/antfu>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)