package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  3. "bugs": "https://github.com/syntax-tree/mdast-util-to-markdown/issues",
  4. "contributors": [
  5. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  6. ],
  7. "dependencies": {
  8. "@types/mdast": "^4.0.0",
  9. "@types/unist": "^3.0.0",
  10. "longest-streak": "^3.0.0",
  11. "mdast-util-phrasing": "^4.0.0",
  12. "mdast-util-to-string": "^4.0.0",
  13. "micromark-util-classify-character": "^2.0.0",
  14. "micromark-util-decode-string": "^2.0.0",
  15. "unist-util-visit": "^5.0.0",
  16. "zwitch": "^2.0.0"
  17. },
  18. "description": "mdast utility to serialize markdown",
  19. "devDependencies": {
  20. "@types/node": "^22.0.0",
  21. "c8": "^10.0.0",
  22. "mdast-util-from-markdown": "^2.0.0",
  23. "prettier": "^3.0.0",
  24. "remark-cli": "^12.0.0",
  25. "remark-preset-wooorm": "^10.0.0",
  26. "type-coverage": "^2.0.0",
  27. "typescript": "^5.0.0",
  28. "unist-util-remove-position": "^5.0.0",
  29. "xo": "^0.59.0"
  30. },
  31. "exports": "./index.js",
  32. "files": [
  33. "lib/",
  34. "index.d.ts",
  35. "index.js"
  36. ],
  37. "funding": {
  38. "type": "opencollective",
  39. "url": "https://opencollective.com/unified"
  40. },
  41. "keywords": [
  42. "ast",
  43. "compile",
  44. "markdown",
  45. "markup",
  46. "mdast-util",
  47. "mdast",
  48. "serialize",
  49. "stringify",
  50. "syntax",
  51. "tree",
  52. "unist",
  53. "utility",
  54. "util"
  55. ],
  56. "license": "MIT",
  57. "name": "mdast-util-to-markdown",
  58. "prettier": {
  59. "bracketSpacing": false,
  60. "semi": false,
  61. "singleQuote": true,
  62. "tabWidth": 2,
  63. "trailingComma": "none",
  64. "useTabs": false
  65. },
  66. "remarkConfig": {
  67. "plugins": [
  68. "remark-preset-wooorm"
  69. ]
  70. },
  71. "repository": "syntax-tree/mdast-util-to-markdown",
  72. "version": "2.1.2",
  73. "scripts": {
  74. "prepack": "npm run build && npm run format",
  75. "build": "tsc --build --clean && tsc --build && type-coverage",
  76. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  77. "test-api": "node --conditions development test/index.js",
  78. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  79. "test": "npm run build && npm run format && npm run test-coverage"
  80. },
  81. "sideEffects": false,
  82. "typeCoverage": {
  83. "atLeast": 100,
  84. "ignoreFiles": [
  85. "lib/types.d.ts"
  86. ],
  87. "strict": true
  88. },
  89. "type": "module",
  90. "xo": {
  91. "overrides": [
  92. {
  93. "files": [
  94. "**/*.d.ts"
  95. ],
  96. "rules": {
  97. "@typescript-eslint/array-type": [
  98. "error",
  99. {
  100. "default": "generic"
  101. }
  102. ],
  103. "@typescript-eslint/ban-types": [
  104. "error",
  105. {
  106. "extendDefaults": true
  107. }
  108. ],
  109. "@typescript-eslint/consistent-type-definitions": [
  110. "error",
  111. "interface"
  112. ]
  113. }
  114. },
  115. {
  116. "files": [
  117. "test/**/*.js"
  118. ],
  119. "rules": {
  120. "max-depth": "off",
  121. "no-await-in-loop": "off"
  122. }
  123. }
  124. ],
  125. "prettier": true,
  126. "rules": {
  127. "complexity": "off",
  128. "unicorn/prefer-at": "off",
  129. "unicorn/prefer-code-point": "off"
  130. }
  131. }
  132. }