package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "unist-util-visit",
  3. "version": "5.1.0",
  4. "description": "unist utility to visit nodes",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "unist-util",
  9. "util",
  10. "utility",
  11. "remark",
  12. "retext",
  13. "rehype",
  14. "mdast",
  15. "hast",
  16. "xast",
  17. "nlcst",
  18. "natural",
  19. "language",
  20. "markdown",
  21. "html",
  22. "xml",
  23. "tree",
  24. "ast",
  25. "node",
  26. "visit",
  27. "walk"
  28. ],
  29. "repository": "syntax-tree/unist-util-visit",
  30. "bugs": "https://github.com/syntax-tree/unist-util-visit/issues",
  31. "funding": {
  32. "type": "opencollective",
  33. "url": "https://opencollective.com/unified"
  34. },
  35. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  36. "contributors": [
  37. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  38. "Eugene Sharygin <eush77@gmail.com>",
  39. "Richard Gibson <richard.gibson@gmail.com>"
  40. ],
  41. "sideEffects": false,
  42. "type": "module",
  43. "exports": "./index.js",
  44. "files": [
  45. "lib/",
  46. "index.d.ts.map",
  47. "index.d.ts",
  48. "index.js"
  49. ],
  50. "dependencies": {
  51. "@types/unist": "^3.0.0",
  52. "unist-util-is": "^6.0.0",
  53. "unist-util-visit-parents": "^6.0.0"
  54. },
  55. "devDependencies": {
  56. "@types/mdast": "^4.0.0",
  57. "@types/node": "^25.0.0",
  58. "c8": "^10.0.0",
  59. "mdast-util-from-markdown": "^2.0.0",
  60. "mdast-util-gfm": "^3.0.0",
  61. "micromark-extension-gfm": "^3.0.0",
  62. "prettier": "^3.0.0",
  63. "remark-cli": "^12.0.0",
  64. "remark-preset-wooorm": "^11.0.0",
  65. "tsd": "^0.33.0",
  66. "type-coverage": "^2.0.0",
  67. "typescript": "^5.0.0",
  68. "xo": "^1.0.0"
  69. },
  70. "scripts": {
  71. "prepack": "npm run build && npm run format",
  72. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  73. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  74. "test-api": "node --conditions development test.js",
  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. "prettier": {
  79. "bracketSpacing": false,
  80. "semi": false,
  81. "singleQuote": true,
  82. "tabWidth": 2,
  83. "trailingComma": "none",
  84. "useTabs": false
  85. },
  86. "remarkConfig": {
  87. "plugins": [
  88. "remark-preset-wooorm"
  89. ]
  90. },
  91. "typeCoverage": {
  92. "atLeast": 100,
  93. "detail": true,
  94. "#": "needed `any`s",
  95. "ignoreFiles": [
  96. "lib/index.d.ts"
  97. ],
  98. "ignoreCatch": true,
  99. "strict": true
  100. },
  101. "xo": {
  102. "space": true,
  103. "prettier": true,
  104. "rules": {
  105. "unicorn/prefer-at": "off"
  106. }
  107. }
  108. }