Skip to content

Commit 558fde3

Browse files
committed
Refactor package.json
1 parent bbbc00e commit 558fde3

File tree

1 file changed

+53
-39
lines changed

1 file changed

+53
-39
lines changed

package.json

Lines changed: 53 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
11
{
2-
"name": "hast-util-from-parse5",
3-
"version": "8.0.1",
4-
"description": "hast utility to transform from Parse5’s AST",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"util",
11-
"utility",
12-
"transform",
13-
"change",
14-
"ast"
15-
],
16-
"repository": "syntax-tree/hast-util-from-parse5",
17-
"bugs": "https://github.com/syntax-tree/hast-util-from-parse5/issues",
18-
"funding": {
19-
"type": "opencollective",
20-
"url": "https://opencollective.com/unified"
21-
},
222
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-from-parse5/issues",
234
"contributors": [
245
"Titus Wormer <[email protected]> (https://wooorm.com)"
256
],
26-
"sideEffects": false,
27-
"type": "module",
28-
"exports": "./index.js",
29-
"files": [
30-
"lib/",
31-
"index.d.ts",
32-
"index.js"
33-
],
347
"dependencies": {
358
"@types/hast": "^3.0.0",
369
"@types/unist": "^3.0.0",
@@ -41,6 +14,7 @@
4114
"vfile-location": "^5.0.0",
4215
"web-namespaces": "^2.0.0"
4316
},
17+
"description": "hast utility to transform from a `parse5` AST",
4418
"devDependencies": {
4519
"@types/node": "^22.0.0",
4620
"c8": "^10.0.0",
@@ -55,14 +29,28 @@
5529
"unist-util-visit": "^5.0.0",
5630
"xo": "^0.59.0"
5731
},
58-
"scripts": {
59-
"prepack": "npm run build && npm run format",
60-
"build": "tsc --build --clean && tsc --build && type-coverage",
61-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
62-
"test-api": "node --conditions development test/index.js",
63-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
64-
"test": "npm run build && npm run format && npm run test-coverage"
32+
"exports": "./index.js",
33+
"files": [
34+
"index.d.ts",
35+
"index.js",
36+
"lib/"
37+
],
38+
"funding": {
39+
"type": "opencollective",
40+
"url": "https://opencollective.com/unified"
6541
},
42+
"keywords": [
43+
"ast",
44+
"change",
45+
"hast-util",
46+
"hast",
47+
"transform",
48+
"unist",
49+
"utility",
50+
"util"
51+
],
52+
"license": "MIT",
53+
"name": "hast-util-from-parse5",
6654
"prettier": {
6755
"bracketSpacing": false,
6856
"semi": false,
@@ -76,18 +64,44 @@
7664
"remark-preset-wooorm"
7765
]
7866
},
67+
"repository": "syntax-tree/hast-util-from-parse5",
68+
"scripts": {
69+
"build": "tsc --build --clean && tsc --build && type-coverage",
70+
"format": "remark --frail --quiet --output -- . && prettier --log-level warn --write -- . && xo --fix",
71+
"test-api": "node --conditions development test/index.js",
72+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
73+
"test": "npm run build && npm run format && npm run test-coverage"
74+
},
75+
"sideEffects": false,
7976
"typeCoverage": {
8077
"atLeast": 100,
81-
"detail": true,
82-
"ignoreCatch": true,
8378
"strict": true
8479
},
80+
"type": "module",
81+
"version": "8.0.1",
8582
"xo": {
8683
"overrides": [
8784
{
88-
"files": "**/*.ts",
85+
"files": [
86+
"**/*.d.ts"
87+
],
8988
"rules": {
90-
"@typescript-eslint/consistent-type-definitions": "off"
89+
"@typescript-eslint/array-type": [
90+
"error",
91+
{
92+
"default": "generic"
93+
}
94+
],
95+
"@typescript-eslint/ban-types": [
96+
"error",
97+
{
98+
"extendDefaults": true
99+
}
100+
],
101+
"@typescript-eslint/consistent-type-definitions": [
102+
"error",
103+
"interface"
104+
]
91105
}
92106
},
93107
{

0 commit comments

Comments
 (0)