Skip to content

Commit f8d6494

Browse files
committed
Initialize
0 parents  commit f8d6494

15 files changed

+704
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
10+
11+
[cspell.json]
12+
indent_size = 4
13+
14+
[{,website/blog/,changelog_unreleased/**/}*.md]
15+
trim_trailing_whitespace = false
16+
17+
[tests/{**/__snapshots__/*, tests/format/**/*}]
18+
trim_trailing_whitespace = false
19+
20+
[tests/format/**/format.test.js]
21+
trim_trailing_whitespace = 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-ua-styles'
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
"after:bump": "node --run build"
11+
}
12+
}

index.d.ts

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
type HtmlTags =
2+
| "a"
3+
| "abbr"
4+
| "acronym"
5+
| "address"
6+
| "applet"
7+
| "area"
8+
| "article"
9+
| "aside"
10+
| "audio"
11+
| "b"
12+
| "base"
13+
| "basefont"
14+
| "bdi"
15+
| "bdo"
16+
| "bgsound"
17+
| "big"
18+
| "blink"
19+
| "blockquote"
20+
| "body"
21+
| "br"
22+
| "button"
23+
| "canvas"
24+
| "caption"
25+
| "center"
26+
| "cite"
27+
| "code"
28+
| "col"
29+
| "colgroup"
30+
| "command"
31+
| "content"
32+
| "data"
33+
| "datalist"
34+
| "dd"
35+
| "del"
36+
| "details"
37+
| "dfn"
38+
| "dialog"
39+
| "dir"
40+
| "div"
41+
| "dl"
42+
| "dt"
43+
| "em"
44+
| "embed"
45+
| "fieldset"
46+
| "figcaption"
47+
| "figure"
48+
| "font"
49+
| "footer"
50+
| "form"
51+
| "frame"
52+
| "frameset"
53+
| "h1"
54+
| "h2"
55+
| "h3"
56+
| "h4"
57+
| "h5"
58+
| "h6"
59+
| "head"
60+
| "header"
61+
| "hgroup"
62+
| "hr"
63+
| "html"
64+
| "i"
65+
| "iframe"
66+
| "image"
67+
| "img"
68+
| "input"
69+
| "ins"
70+
| "isindex"
71+
| "kbd"
72+
| "keygen"
73+
| "label"
74+
| "legend"
75+
| "li"
76+
| "link"
77+
| "listing"
78+
| "main"
79+
| "map"
80+
| "mark"
81+
| "marquee"
82+
| "math"
83+
| "menu"
84+
| "menuitem"
85+
| "meta"
86+
| "meter"
87+
| "multicol"
88+
| "nav"
89+
| "nextid"
90+
| "nobr"
91+
| "noembed"
92+
| "noframes"
93+
| "noscript"
94+
| "object"
95+
| "ol"
96+
| "optgroup"
97+
| "option"
98+
| "output"
99+
| "p"
100+
| "param"
101+
| "picture"
102+
| "plaintext"
103+
| "pre"
104+
| "progress"
105+
| "q"
106+
| "rb"
107+
| "rbc"
108+
| "rp"
109+
| "rt"
110+
| "rtc"
111+
| "ruby"
112+
| "s"
113+
| "samp"
114+
| "script"
115+
| "search"
116+
| "section"
117+
| "select"
118+
| "shadow"
119+
| "slot"
120+
| "small"
121+
| "source"
122+
| "spacer"
123+
| "span"
124+
| "strike"
125+
| "strong"
126+
| "style"
127+
| "sub"
128+
| "summary"
129+
| "sup"
130+
| "svg"
131+
| "table"
132+
| "tbody"
133+
| "td"
134+
| "template"
135+
| "textarea"
136+
| "tfoot"
137+
| "th"
138+
| "thead"
139+
| "time"
140+
| "title"
141+
| "tr"
142+
| "track"
143+
| "tt"
144+
| "u"
145+
| "ul"
146+
| "var"
147+
| "video"
148+
| "wbr"
149+
| "xmp";
150+
151+
/**
152+
List of HTML tags.
153+
154+
@example
155+
```
156+
import htmlTags from "@prettier/html-tags";
157+
158+
console.log(htmlTags);
159+
//=> ['a', 'abbr', 'acronym', …]
160+
```
161+
*/
162+
declare const htmlTags: readonly HtmlTags[];
163+
164+
export default htmlTags;

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" };

0 commit comments

Comments
 (0)