package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "unist-util-visit",
  3. "version": "5.0.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",
  47. "index.js"
  48. ],
  49. "dependencies": {
  50. "@types/unist": "^3.0.0",
  51. "unist-util-is": "^6.0.0",
  52. "unist-util-visit-parents": "^6.0.0"
  53. },
  54. "devDependencies": {
  55. "@types/mdast": "^4.0.0",
  56. "@types/node": "^20.0.0",
  57. "c8": "^8.0.0",
  58. "mdast-util-from-markdown": "^1.0.0",
  59. "mdast-util-gfm": "^2.0.0",
  60. "micromark-extension-gfm": "^2.0.0",
  61. "prettier": "^2.0.0",
  62. "remark-cli": "^11.0.0",
  63. "remark-preset-wooorm": "^9.0.0",
  64. "tsd": "^0.28.0",
  65. "type-coverage": "^2.0.0",
  66. "typescript": "^5.0.0",
  67. "xo": "^0.54.0"
  68. },
  69. "scripts": {
  70. "prepack": "npm run build && npm run format",
  71. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  72. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  73. "test-api": "node --conditions development test.js",
  74. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  75. "test": "npm run build && npm run format && npm run test-coverage"
  76. },
  77. "prettier": {
  78. "bracketSpacing": false,
  79. "semi": false,
  80. "singleQuote": true,
  81. "tabWidth": 2,
  82. "trailingComma": "none",
  83. "useTabs": false
  84. },
  85. "remarkConfig": {
  86. "plugins": [
  87. "remark-preset-wooorm"
  88. ]
  89. },
  90. "typeCoverage": {
  91. "atLeast": 100,
  92. "detail": true,
  93. "#": "needed `any`s",
  94. "ignoreFiles": [
  95. "lib/index.d.ts"
  96. ],
  97. "ignoreCatch": true,
  98. "strict": true
  99. },
  100. "xo": {
  101. "overrides": [
  102. {
  103. "files": [
  104. "**/*.ts"
  105. ],
  106. "rules": {
  107. "import/no-extraneous-dependencies": "off"
  108. }
  109. }
  110. ],
  111. "prettier": true
  112. }
  113. }