-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
5,380 additions
and
1,547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eslint-plugin-markup": minor | ||
--- | ||
|
||
chore!: update node engine setting, drop node `<12.20.0` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"eslint-plugin-htm": patch | ||
"eslint-plugin-markup": patch | ||
"eslint-plugin-utils": patch | ||
--- | ||
|
||
- chore: migrate to unts org | ||
- chore: add donate field, bump deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
github: [JounQin] | ||
open_collective: rxts | ||
github: | ||
- JounQin | ||
- 1stG | ||
- rxts | ||
- unts | ||
patreon: 1stG | ||
open_collective: unts | ||
custom: | ||
- https://opencollective.com/1stG | ||
- https://opencollective.com/rxts | ||
- https://afdian.net/@JounQin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Vercel Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check Branch | ||
id: branch | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
echo "::set-output name=args::--prod" | ||
echo "::set-output name=comment::false" | ||
- name: Deploy | ||
uses: amondnet/vercel-action@v25 | ||
with: | ||
vercel-args: ${{ steps.branch.outputs.args }} | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | ||
github-comment: ${{ steps.branch.outputs.comment != 'false' }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
.*cache | ||
*.tsbuildinfo | ||
.type-coverage | ||
.vercel | ||
coverage | ||
dist | ||
lib | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist | ||
node_modules | ||
**/test/fixtures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# CHANGELOG | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
- [eslint-plugin-htm](./packages/htm/CHANGELOG.md) | ||
- [eslint-plugin-markup](./packages/markup/CHANGELOG.md) | ||
- [eslint-plugin-react-enhanced](./packages/react-enhanced/CHANGELOG.md) | ||
- [eslint-plugin-utils](./packages/utils/CHANGELOG.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { lazy, Suspense } from 'react' | ||
import { | ||
Route, | ||
BrowserRouter as Router, | ||
Routes, | ||
useParams, | ||
} from 'react-router-dom' | ||
|
||
import './global.css' | ||
import 'github-markdown-css' | ||
|
||
const Readme = () => { | ||
const { name } = useParams<{ name: string }>() | ||
const Readme = lazy(() => | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
name ? import(`../packages/${name}/README.md`) : import('../README.md'), | ||
) | ||
return ( | ||
<Suspense> | ||
<Readme /> | ||
</Suspense> | ||
) | ||
} | ||
|
||
const Changelog = () => { | ||
const { name } = useParams<{ name: string }>() | ||
const Changelog = lazy(() => | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
name | ||
? import(`../packages/${name}/CHANGELOG.md`) | ||
: import('../CHANGELOG.md'), | ||
) | ||
return ( | ||
<Suspense> | ||
<Changelog /> | ||
</Suspense> | ||
) | ||
} | ||
|
||
export const App = () => ( | ||
<Router> | ||
<Routes> | ||
<Route | ||
path="/CHANGELOG.md" | ||
element={<Changelog />} | ||
/> | ||
<Route | ||
path="/packages/:name" | ||
element={<Readme />} | ||
/> | ||
<Route | ||
path="/packages/:name/CHANGELOG.md" | ||
element={<Changelog />} | ||
/> | ||
<Route | ||
path="/" | ||
element={<Readme />} | ||
/> | ||
</Routes> | ||
</Router> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
background-color: #0d1117; | ||
} | ||
} | ||
|
||
body { | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
padding: 20px 40px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { createRoot } from 'react-dom/client' | ||
|
||
import { App } from './App' | ||
|
||
const app = document.querySelector('#app')! | ||
|
||
app.classList.add('markdown-body') | ||
|
||
const root = createRoot(app) | ||
|
||
root.render(<App />) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.lib", | ||
"compilerOptions": { | ||
"baseUrl": "." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.