Skip to content

Commit 1590dd7

Browse files
Update packages
1 parent 62805c1 commit 1590dd7

File tree

4 files changed

+35
-47
lines changed

4 files changed

+35
-47
lines changed

lib/tags.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { blockTag } from "./tag-helpers/block-tag.js";
2-
import { textNode } from "./tag-helpers/text-node.js";
3-
import { a } from "./tags/a.js";
4-
import { abbr, acronym, dfn } from "./tags/abbr.js";
5-
import { address } from "./tags/address.js";
1+
import { blockTag } from './tag-helpers/block-tag.js';
2+
import { textNode } from './tag-helpers/text-node.js';
3+
import { a } from './tags/a.js';
4+
import { abbr, acronym, dfn } from './tags/abbr.js';
5+
import { address } from './tags/address.js';
66
import {
77
article,
88
aside,
@@ -11,7 +11,6 @@ import {
1111
figcaption,
1212
footer,
1313
form,
14-
head,
1514
header,
1615
hgroup,
1716
label,
@@ -21,25 +20,26 @@ import {
2120
picture,
2221
section,
2322
span,
24-
title,
25-
} from "./tags/base-tags.js";
26-
import { blockquote } from "./tags/blockquote.js";
27-
import { br } from "./tags/br.js";
28-
import { center } from "./tags/center.js";
29-
import { code, pre } from "./tags/code.js";
30-
import { dd, dl, dt } from "./tags/definitions.js";
31-
import { details } from "./tags/details.js";
32-
import { body, html } from "./tags/document.js";
33-
import { fieldset } from "./tags/fieldset.js";
34-
import { figure } from "./tags/figure.js";
35-
import { font } from "./tags/font.js";
36-
import { h1, h2, h3, h4, h5, h6 } from "./tags/headers.js";
37-
import { hr } from "./tags/hr.js";
38-
import { img } from "./tags/img.js";
39-
import { button, input, output } from "./tags/inputs.js";
40-
import { li, ol, ul } from "./tags/list.js";
41-
import { progress } from "./tags/progress.js";
42-
import { caption, table } from "./tags/table.js";
23+
} from './tags/base-tags.js';
24+
import { blockquote } from './tags/blockquote.js';
25+
import { br } from './tags/br.js';
26+
import { center } from './tags/center.js';
27+
import { code, pre } from './tags/code.js';
28+
import { dd, dl, dt } from './tags/definitions.js';
29+
import { details } from './tags/details.js';
30+
import { body, html } from './tags/document.js';
31+
import { fieldset } from './tags/fieldset.js';
32+
import { figure } from './tags/figure.js';
33+
import { font } from './tags/font.js';
34+
import {
35+
h1, h2, h3, h4, h5, h6,
36+
} from './tags/headers.js';
37+
import { hr } from './tags/hr.js';
38+
import { img } from './tags/img.js';
39+
import { button, input, output } from './tags/inputs.js';
40+
import { li, ol, ul } from './tags/list.js';
41+
import { progress } from './tags/progress.js';
42+
import { caption, table } from './tags/table.js';
4343
import {
4444
b,
4545
big,
@@ -68,7 +68,7 @@ import {
6868
underline,
6969
variableTag,
7070
wbr,
71-
} from "./tags/text-styles.js";
71+
} from './tags/text-styles.js';
7272
import {
7373
applet,
7474
area,
@@ -77,6 +77,7 @@ import {
7777
basefont,
7878
bgsound,
7979
embed,
80+
head,
8081
keygen,
8182
link,
8283
map,
@@ -93,13 +94,13 @@ import {
9394
template,
9495
track,
9596
video,
96-
} from "./tags/void.js";
97+
} from './tags/void.js';
9798

9899
const __text = textNode;
99100

100101
//
101102
export default {
102-
"#text": __text,
103+
'#text': __text,
103104
a,
104105
abbr,
105106
acronym,
@@ -195,7 +196,6 @@ export default {
195196
table,
196197
template,
197198
time,
198-
title,
199199
track,
200200
tt,
201201
u,

lib/tags/base-tags.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import boxen from 'boxen';
21
import chalk from 'chalk';
32

43
import { blockTag } from '../tag-helpers/block-tag.js';
@@ -10,25 +9,13 @@ const inline = inlineTag();
109

1110
const blockWithNewlines = blockTag((value) => value, { marginTop: 1, marginBottom: 1 });
1211

13-
export const title = blockTag((value) => boxen(chalk.blue.bold(value), {
14-
padding: {
15-
top: 0,
16-
bottom: 0,
17-
left: 4,
18-
right: 4,
19-
},
20-
borderColor: 'gray',
21-
borderStyle: 'bold',
22-
}));
23-
2412
export const span = inline;
2513
export const label = inline;
2614
export const blink = inline;
2715

2816
export const p = blockWithNewlines;
2917

3018
export const div = block;
31-
export const head = block;
3219
export const header = block;
3320
export const article = block;
3421
export const footer = block;

lib/tags/void.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export {
77
voidTag as bgsound,
88
voidTag as canvas,
99
voidTag as embed,
10+
voidTag as head,
1011
voidTag as iframe,
1112
voidTag as keygen,
1213
voidTag as link,
@@ -27,4 +28,4 @@ export {
2728
voidTag as video,
2829
voidTag as wbr,
2930
voidTag as xmp,
30-
} from "../tag-helpers/void-tag.js";
31+
} from '../tag-helpers/void-tag.js';

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"ansi-align": "^3.0.1",
3535
"ansi-escapes": "^6.0.0",
3636
"boxen": "^7.0.0",
37-
"chalk": "^5.0.0",
37+
"chalk": "^5.1.2",
3838
"change-case": "^4.1.2",
3939
"cli-highlight": "^2.1.11",
4040
"cli-table3": "^0.6.3",
@@ -55,16 +55,16 @@
5555
},
5656
"devDependencies": {
5757
"confusing-browser-globals": "^1.0.11",
58-
"eslint": "^8.24.0",
58+
"eslint": "^8.26.0",
5959
"eslint-config-airbnb-base": "^15.0.0",
6060
"eslint-config-standard-jsdoc": "^9.3.0",
6161
"eslint-plugin-async-await": "0.0.0",
62-
"eslint-plugin-jsdoc": "^39.3.6",
62+
"eslint-plugin-jsdoc": "^39.3.23",
6363
"eslint-plugin-json": "^3.1.0",
6464
"eslint-plugin-no-loops": "^0.3.0",
6565
"eslint-plugin-node": "^11.1.0",
6666
"eslint-plugin-prefer-object-spread": "^1.2.1",
6767
"eslint-plugin-simple-import-sort": "^8.0.0",
68-
"eslint-plugin-unicorn": "^44.0.0"
68+
"eslint-plugin-unicorn": "^44.0.2"
6969
}
7070
}

0 commit comments

Comments
 (0)