|
1 | 1 | {
|
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 |
| - }, |
22 | 2 | "author": "Titus Wormer <[email protected]> (https://wooorm.com)",
|
| 3 | + "bugs": "https://github.com/syntax-tree/hast-util-from-parse5/issues", |
23 | 4 | "contributors": [
|
24 | 5 | "Titus Wormer <[email protected]> (https://wooorm.com)"
|
25 | 6 | ],
|
26 |
| - "sideEffects": false, |
27 |
| - "type": "module", |
28 |
| - "exports": "./index.js", |
29 |
| - "files": [ |
30 |
| - "lib/", |
31 |
| - "index.d.ts", |
32 |
| - "index.js" |
33 |
| - ], |
34 | 7 | "dependencies": {
|
35 | 8 | "@types/hast": "^3.0.0",
|
36 | 9 | "@types/unist": "^3.0.0",
|
|
41 | 14 | "vfile-location": "^5.0.0",
|
42 | 15 | "web-namespaces": "^2.0.0"
|
43 | 16 | },
|
| 17 | + "description": "hast utility to transform from a `parse5` AST", |
44 | 18 | "devDependencies": {
|
45 | 19 | "@types/node": "^22.0.0",
|
46 | 20 | "c8": "^10.0.0",
|
|
55 | 29 | "unist-util-visit": "^5.0.0",
|
56 | 30 | "xo": "^0.59.0"
|
57 | 31 | },
|
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" |
65 | 41 | },
|
| 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", |
66 | 54 | "prettier": {
|
67 | 55 | "bracketSpacing": false,
|
68 | 56 | "semi": false,
|
|
76 | 64 | "remark-preset-wooorm"
|
77 | 65 | ]
|
78 | 66 | },
|
| 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, |
79 | 76 | "typeCoverage": {
|
80 | 77 | "atLeast": 100,
|
81 |
| - "detail": true, |
82 |
| - "ignoreCatch": true, |
83 | 78 | "strict": true
|
84 | 79 | },
|
| 80 | + "type": "module", |
| 81 | + "version": "8.0.1", |
85 | 82 | "xo": {
|
86 | 83 | "overrides": [
|
87 | 84 | {
|
88 |
| - "files": "**/*.ts", |
| 85 | + "files": [ |
| 86 | + "**/*.d.ts" |
| 87 | + ], |
89 | 88 | "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 | + ] |
91 | 105 | }
|
92 | 106 | },
|
93 | 107 | {
|
|
0 commit comments