Skip to content

Commit 2aca74e

Browse files
committed
Initialize
0 parents  commit 2aca74e

File tree

15 files changed

+514
-0
lines changed

15 files changed

+514
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
trim_trailing_whitespace = true
8+
end_of_line = lf
9+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Update
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# “At 00:00 on Friday.” https://crontab.guru/#0_0_*_*_5
7+
- cron: "0 0 * * 5"
8+
9+
jobs:
10+
update:
11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
if: github.event_name != 'schedule' || github.repository == 'prettier/html-event-attributes'
15+
runs-on: ubuntu-latest
16+
env:
17+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
25+
- name: Install Dependencies
26+
run: yarn
27+
28+
- name: Update Data
29+
run: yarn build
30+
31+
- name: Create Pull Request
32+
uses: peter-evans/create-pull-request@v7
33+
with:
34+
commit-message: Update data
35+
branch: automated-update
36+
branch-suffix: timestamp
37+
title: Update data
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
name: Test
19+
runs-on: ubuntu-latest
20+
env:
21+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
29+
- name: Install Dependencies
30+
run: yarn
31+
32+
- name: Run Test
33+
run: yarn test-coverage
34+
35+
- name: Run Lint
36+
run: yarn lint
37+
38+
- name: Upload Coverage
39+
uses: codecov/codecov-action@v5
40+
with:
41+
fail_ci_if_error: true
42+
disable_search: true
43+
files: coverage/lcov.info
44+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
yarn.lock
3+
.cache
4+
yarn-error.log
5+
coverage

.prettierrc

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

.release-it.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it@18/schema/release-it.json",
3+
"git": {
4+
"commitMessage": "chore: release v${version}"
5+
},
6+
"github": {
7+
"release": true
8+
},
9+
"hooks": {}
10+
}

index.d.ts

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
type HtmlEventAttributes =
2+
| "onabort"
3+
| "onafterprint"
4+
| "onauxclick"
5+
| "onbeforeinput"
6+
| "onbeforematch"
7+
| "onbeforeprint"
8+
| "onbeforetoggle"
9+
| "onbeforeunload"
10+
| "onblur"
11+
| "oncancel"
12+
| "oncanplay"
13+
| "oncanplaythrough"
14+
| "onchange"
15+
| "onclick"
16+
| "onclose"
17+
| "oncommand"
18+
| "oncontextlost"
19+
| "oncontextmenu"
20+
| "oncontextrestored"
21+
| "oncopy"
22+
| "oncuechange"
23+
| "oncut"
24+
| "ondblclick"
25+
| "ondrag"
26+
| "ondragend"
27+
| "ondragenter"
28+
| "ondragleave"
29+
| "ondragover"
30+
| "ondragstart"
31+
| "ondrop"
32+
| "ondurationchange"
33+
| "onemptied"
34+
| "onended"
35+
| "onerror"
36+
| "onfocus"
37+
| "onformdata"
38+
| "onhashchange"
39+
| "oninput"
40+
| "oninvalid"
41+
| "onkeydown"
42+
| "onkeypress"
43+
| "onkeyup"
44+
| "onlanguagechange"
45+
| "onload"
46+
| "onloadeddata"
47+
| "onloadedmetadata"
48+
| "onloadstart"
49+
| "onmessage"
50+
| "onmessageerror"
51+
| "onmousedown"
52+
| "onmouseenter"
53+
| "onmouseleave"
54+
| "onmousemove"
55+
| "onmouseout"
56+
| "onmouseover"
57+
| "onmouseup"
58+
| "onoffline"
59+
| "ononline"
60+
| "onpagehide"
61+
| "onpagereveal"
62+
| "onpageshow"
63+
| "onpageswap"
64+
| "onpaste"
65+
| "onpause"
66+
| "onplay"
67+
| "onplaying"
68+
| "onpopstate"
69+
| "onprogress"
70+
| "onratechange"
71+
| "onrejectionhandled"
72+
| "onreset"
73+
| "onresize"
74+
| "onscroll"
75+
| "onscrollend"
76+
| "onsecuritypolicyviolation"
77+
| "onseeked"
78+
| "onseeking"
79+
| "onselect"
80+
| "onslotchange"
81+
| "onstalled"
82+
| "onstorage"
83+
| "onsubmit"
84+
| "onsuspend"
85+
| "ontimeupdate"
86+
| "ontoggle"
87+
| "onunhandledrejection"
88+
| "onunload"
89+
| "onvolumechange"
90+
| "onwaiting"
91+
| "onwheel";
92+
93+
/**
94+
List of HTML event handler attributes.
95+
96+
@example
97+
```
98+
import htmlEventAttributes from "@prettier/html-event-attributes";
99+
100+
console.log(htmlEventAttributes);
101+
//=> ['onafterprint', 'onauxclick', 'onbeforeinput', …]
102+
```
103+
*/
104+
declare const htmlEventAttributes: readonly HtmlEventAttributes[];
105+
106+
export default htmlEventAttributes;

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "./index.json" with { type: "json" };

index.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[
2+
"onabort",
3+
"onafterprint",
4+
"onauxclick",
5+
"onbeforeinput",
6+
"onbeforematch",
7+
"onbeforeprint",
8+
"onbeforetoggle",
9+
"onbeforeunload",
10+
"onblur",
11+
"oncancel",
12+
"oncanplay",
13+
"oncanplaythrough",
14+
"onchange",
15+
"onclick",
16+
"onclose",
17+
"oncommand",
18+
"oncontextlost",
19+
"oncontextmenu",
20+
"oncontextrestored",
21+
"oncopy",
22+
"oncuechange",
23+
"oncut",
24+
"ondblclick",
25+
"ondrag",
26+
"ondragend",
27+
"ondragenter",
28+
"ondragleave",
29+
"ondragover",
30+
"ondragstart",
31+
"ondrop",
32+
"ondurationchange",
33+
"onemptied",
34+
"onended",
35+
"onerror",
36+
"onfocus",
37+
"onformdata",
38+
"onhashchange",
39+
"oninput",
40+
"oninvalid",
41+
"onkeydown",
42+
"onkeypress",
43+
"onkeyup",
44+
"onlanguagechange",
45+
"onload",
46+
"onloadeddata",
47+
"onloadedmetadata",
48+
"onloadstart",
49+
"onmessage",
50+
"onmessageerror",
51+
"onmousedown",
52+
"onmouseenter",
53+
"onmouseleave",
54+
"onmousemove",
55+
"onmouseout",
56+
"onmouseover",
57+
"onmouseup",
58+
"onoffline",
59+
"ononline",
60+
"onpagehide",
61+
"onpagereveal",
62+
"onpageshow",
63+
"onpageswap",
64+
"onpaste",
65+
"onpause",
66+
"onplay",
67+
"onplaying",
68+
"onpopstate",
69+
"onprogress",
70+
"onratechange",
71+
"onrejectionhandled",
72+
"onreset",
73+
"onresize",
74+
"onscroll",
75+
"onscrollend",
76+
"onsecuritypolicyviolation",
77+
"onseeked",
78+
"onseeking",
79+
"onselect",
80+
"onslotchange",
81+
"onstalled",
82+
"onstorage",
83+
"onsubmit",
84+
"onsuspend",
85+
"ontimeupdate",
86+
"ontoggle",
87+
"onunhandledrejection",
88+
"onunload",
89+
"onvolumechange",
90+
"onwaiting",
91+
"onwheel"
92+
]

0 commit comments

Comments
 (0)