package.json 2.6 KB

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