package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "mdast-util-mdx-jsx",
  3. "version": "3.2.0",
  4. "description": "mdast extension to parse and serialize MDX or MDX.js JSX",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "mdast",
  9. "mdast-util",
  10. "util",
  11. "utility",
  12. "markdown",
  13. "markup",
  14. "mdx",
  15. "mdxjs",
  16. "jsx",
  17. "extension"
  18. ],
  19. "repository": "syntax-tree/mdast-util-mdx-jsx",
  20. "bugs": "https://github.com/syntax-tree/mdast-util-mdx-jsx/issues",
  21. "funding": {
  22. "type": "opencollective",
  23. "url": "https://opencollective.com/unified"
  24. },
  25. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  26. "contributors": [
  27. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  28. ],
  29. "sideEffects": false,
  30. "type": "module",
  31. "exports": "./index.js",
  32. "files": [
  33. "lib/",
  34. "index.d.ts.map",
  35. "index.d.ts",
  36. "index.js"
  37. ],
  38. "dependencies": {
  39. "@types/estree-jsx": "^1.0.0",
  40. "@types/hast": "^3.0.0",
  41. "@types/mdast": "^4.0.0",
  42. "@types/unist": "^3.0.0",
  43. "ccount": "^2.0.0",
  44. "devlop": "^1.1.0",
  45. "mdast-util-from-markdown": "^2.0.0",
  46. "mdast-util-to-markdown": "^2.0.0",
  47. "parse-entities": "^4.0.0",
  48. "stringify-entities": "^4.0.0",
  49. "unist-util-stringify-position": "^4.0.0",
  50. "vfile-message": "^4.0.0"
  51. },
  52. "devDependencies": {
  53. "@types/node": "^22.0.0",
  54. "acorn": "^8.0.0",
  55. "c8": "^10.0.0",
  56. "micromark-extension-mdx-jsx": "^3.0.0",
  57. "micromark-extension-mdx-md": "^2.0.0",
  58. "prettier": "^3.0.0",
  59. "remark-cli": "^12.0.0",
  60. "remark-preset-wooorm": "^10.0.0",
  61. "type-coverage": "^2.0.0",
  62. "typescript": "^5.0.0",
  63. "unist-util-remove-position": "^5.0.0",
  64. "xo": "^0.60.0"
  65. },
  66. "scripts": {
  67. "prepack": "npm run build && npm run format",
  68. "build": "tsc --build --clean && tsc --build && type-coverage",
  69. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  70. "test-api-prod": "node --conditions production test.js",
  71. "test-api-dev": "node --conditions development test.js",
  72. "test-api": "npm run test-api-dev && npm run test-api-prod",
  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. "ignoreCatch": true,
  93. "strict": true
  94. },
  95. "xo": {
  96. "overrides": [
  97. {
  98. "files": [
  99. "**/*.ts"
  100. ],
  101. "rules": {
  102. "@typescript-eslint/ban-types": "off",
  103. "@typescript-eslint/consistent-type-definitions": "off"
  104. }
  105. }
  106. ],
  107. "prettier": true,
  108. "rules": {
  109. "logical-assignment-operators": "off",
  110. "unicorn/prefer-at": "off"
  111. }
  112. }
  113. }