|
1 | 1 | {
|
2 |
| - "name": "mdast-util-directive", |
3 |
| - "version": "3.0.0", |
4 |
| - "description": "mdast extension to parse and serialize generic directives (`:cite[smith04]`)", |
5 |
| - "license": "MIT", |
6 |
| - "keywords": [ |
7 |
| - "unist", |
8 |
| - "mdast", |
9 |
| - "mdast-util", |
10 |
| - "util", |
11 |
| - "utility", |
12 |
| - "markdown", |
13 |
| - "markup", |
14 |
| - "generic", |
15 |
| - "directive", |
16 |
| - "container", |
17 |
| - "extension" |
18 |
| - ], |
19 |
| - "repository": "syntax-tree/mdast-util-directive", |
20 |
| - "bugs": "https://github.com/syntax-tree/mdast-util-directive/issues", |
21 |
| - "funding": { |
22 |
| - "type": "opencollective", |
23 |
| - "url": "https://opencollective.com/unified" |
24 |
| - }, |
25 | 2 | "author": "Titus Wormer <[email protected]> (https://wooorm.com)",
|
| 3 | + "bugs": "https://github.com/syntax-tree/mdast-util-directive/issues", |
26 | 4 | "contributors": [
|
27 | 5 | "Titus Wormer <[email protected]> (https://wooorm.com)"
|
28 | 6 | ],
|
29 |
| - "sideEffects": false, |
30 |
| - "type": "module", |
31 |
| - "exports": "./index.js", |
32 |
| - "files": [ |
33 |
| - "lib/", |
34 |
| - "index.d.ts", |
35 |
| - "index.js" |
36 |
| - ], |
37 | 7 | "dependencies": {
|
38 | 8 | "@types/mdast": "^4.0.0",
|
39 | 9 | "@types/unist": "^3.0.0",
|
|
44 | 14 | "stringify-entities": "^4.0.0",
|
45 | 15 | "unist-util-visit-parents": "^6.0.0"
|
46 | 16 | },
|
| 17 | + "description": "mdast extension to parse and serialize generic directives (`:cite[smith04]`)", |
47 | 18 | "devDependencies": {
|
48 | 19 | "@types/node": "^22.0.0",
|
49 | 20 | "c8": "^10.0.0",
|
|
56 | 27 | "unist-util-remove-position": "^5.0.0",
|
57 | 28 | "xo": "^0.60.0"
|
58 | 29 | },
|
59 |
| - "scripts": { |
60 |
| - "prepack": "npm run build && npm run format", |
61 |
| - "build": "tsc --build --clean && tsc --build && type-coverage", |
62 |
| - "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
63 |
| - "test-api-prod": "node --conditions production test.js", |
64 |
| - "test-api-dev": "node --conditions development test.js", |
65 |
| - "test-api": "npm run test-api-dev && npm run test-api-prod", |
66 |
| - "test-coverage": "c8 --100 --reporter lcov npm run test-api", |
67 |
| - "test": "npm run build && npm run format && npm run test-coverage" |
| 30 | + "exports": "./index.js", |
| 31 | + "files": [ |
| 32 | + "index.d.ts", |
| 33 | + "index.js", |
| 34 | + "lib/" |
| 35 | + ], |
| 36 | + "funding": { |
| 37 | + "type": "opencollective", |
| 38 | + "url": "https://opencollective.com/unified" |
68 | 39 | },
|
| 40 | + "keywords": [ |
| 41 | + "container", |
| 42 | + "directive", |
| 43 | + "extension", |
| 44 | + "generic", |
| 45 | + "markdown", |
| 46 | + "markup", |
| 47 | + "mdast-util", |
| 48 | + "mdast", |
| 49 | + "unist", |
| 50 | + "utility", |
| 51 | + "util" |
| 52 | + ], |
| 53 | + "license": "MIT", |
| 54 | + "name": "mdast-util-directive", |
69 | 55 | "prettier": {
|
70 | 56 | "bracketSpacing": false,
|
71 | 57 | "semi": false,
|
|
79 | 65 | "remark-preset-wooorm"
|
80 | 66 | ]
|
81 | 67 | },
|
| 68 | + "repository": "syntax-tree/mdast-util-directive", |
| 69 | + "scripts": { |
| 70 | + "build": "tsc --build --clean && tsc --build && type-coverage", |
| 71 | + "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix", |
| 72 | + "test-api-dev": "node --conditions development test.js", |
| 73 | + "test-api-prod": "node --conditions production test.js", |
| 74 | + "test-api": "npm run test-api-dev && npm run test-api-prod", |
| 75 | + "test-coverage": "c8 --100 --reporter lcov -- npm run test-api", |
| 76 | + "test": "npm run build && npm run format && npm run test-coverage" |
| 77 | + }, |
| 78 | + "sideEffects": false, |
82 | 79 | "typeCoverage": {
|
83 | 80 | "atLeast": 100,
|
84 |
| - "detail": true, |
85 |
| - "ignoreCatch": true, |
86 | 81 | "strict": true
|
87 | 82 | },
|
| 83 | + "type": "module", |
| 84 | + "version": "3.0.0", |
88 | 85 | "xo": {
|
89 | 86 | "overrides": [
|
90 | 87 | {
|
91 | 88 | "files": [
|
92 |
| - "**/*.ts" |
| 89 | + "**/*.d.ts" |
93 | 90 | ],
|
94 | 91 | "rules": {
|
95 |
| - "@typescript-eslint/ban-types": "off", |
96 |
| - "@typescript-eslint/consistent-type-definitions": "off" |
| 92 | + "@typescript-eslint/array-type": [ |
| 93 | + "error", |
| 94 | + { |
| 95 | + "default": "generic" |
| 96 | + } |
| 97 | + ], |
| 98 | + "@typescript-eslint/ban-types": [ |
| 99 | + "error", |
| 100 | + { |
| 101 | + "extendDefaults": true |
| 102 | + } |
| 103 | + ], |
| 104 | + "@typescript-eslint/consistent-type-definitions": [ |
| 105 | + "error", |
| 106 | + "interface" |
| 107 | + ] |
97 | 108 | }
|
98 | 109 | }
|
99 | 110 | ],
|
|
0 commit comments