package.json 2.6 KB

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