package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {
  2. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  3. "bugs": "https://github.com/syntax-tree/hast-util-to-jsx-runtime/issues",
  4. "contributors": [
  5. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  6. ],
  7. "dependencies": {
  8. "@types/estree": "^1.0.0",
  9. "@types/hast": "^3.0.0",
  10. "@types/unist": "^3.0.0",
  11. "comma-separated-tokens": "^2.0.0",
  12. "devlop": "^1.0.0",
  13. "estree-util-is-identifier-name": "^3.0.0",
  14. "hast-util-whitespace": "^3.0.0",
  15. "mdast-util-mdx-expression": "^2.0.0",
  16. "mdast-util-mdx-jsx": "^3.0.0",
  17. "mdast-util-mdxjs-esm": "^2.0.0",
  18. "property-information": "^7.0.0",
  19. "space-separated-tokens": "^2.0.0",
  20. "style-to-js": "^1.0.0",
  21. "unist-util-position": "^5.0.0",
  22. "vfile-message": "^4.0.0"
  23. },
  24. "description": "hast utility to transform to preact, react, solid, svelte, vue, etc",
  25. "devDependencies": {
  26. "@types/node": "^22.0.0",
  27. "@types/react": "^19.0.0",
  28. "@types/react-dom": "^19.0.0",
  29. "c8": "^10.0.0",
  30. "esbuild": "^0.25.0",
  31. "estree-util-visit": "^2.0.0",
  32. "hastscript": "^9.0.0",
  33. "prettier": "^3.0.0",
  34. "react": "^19.0.0",
  35. "react-dom": "^19.0.0",
  36. "remark-cli": "^12.0.0",
  37. "remark-preset-wooorm": "^11.0.0",
  38. "sval": "^0.6.0",
  39. "type-coverage": "^2.0.0",
  40. "typescript": "^5.0.0",
  41. "xo": "^0.60.0"
  42. },
  43. "exports": "./index.js",
  44. "files": [
  45. "lib/",
  46. "index.d.ts",
  47. "index.js"
  48. ],
  49. "funding": {
  50. "type": "opencollective",
  51. "url": "https://opencollective.com/unified"
  52. },
  53. "keywords": [
  54. "hast-util",
  55. "hast",
  56. "html",
  57. "preact",
  58. "react",
  59. "solid",
  60. "svelte",
  61. "unist",
  62. "utility",
  63. "util",
  64. "vue"
  65. ],
  66. "license": "MIT",
  67. "name": "hast-util-to-jsx-runtime",
  68. "prettier": {
  69. "bracketSpacing": false,
  70. "semi": false,
  71. "singleQuote": true,
  72. "tabWidth": 2,
  73. "trailingComma": "none",
  74. "useTabs": false
  75. },
  76. "remarkConfig": {
  77. "plugins": [
  78. "remark-preset-wooorm"
  79. ]
  80. },
  81. "repository": "syntax-tree/hast-util-to-jsx-runtime",
  82. "scripts": {
  83. "build": "tsc --build --clean && tsc --build && type-coverage",
  84. "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
  85. "generate": "esbuild --bundle --format=esm --minify --outfile=example/hast-util-to-jsx-runtime.min.js --target=es2020 .",
  86. "prepack": "npm run build && npm run format",
  87. "test-api": "node --conditions development test/index.js",
  88. "test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
  89. "test": "npm run generate && npm run build && npm run format && npm run test-coverage"
  90. },
  91. "sideEffects": false,
  92. "typeCoverage": {
  93. "atLeast": 100,
  94. "detail": true,
  95. "ignoreCatch": true,
  96. "ignoreFiles": [
  97. "example/**/*.js"
  98. ],
  99. "strict": true
  100. },
  101. "type": "module",
  102. "version": "2.3.6",
  103. "xo": {
  104. "overrides": [
  105. {
  106. "files": [
  107. "**/*.d.ts"
  108. ],
  109. "rules": {
  110. "@typescript-eslint/array-type": [
  111. "error",
  112. {
  113. "default": "generic"
  114. }
  115. ],
  116. "@typescript-eslint/ban-ts-comment": 0,
  117. "@typescript-eslint/ban-types": [
  118. "error",
  119. {
  120. "extendDefaults": true
  121. }
  122. ],
  123. "@typescript-eslint/consistent-type-definitions": [
  124. "error",
  125. "interface"
  126. ]
  127. }
  128. }
  129. ],
  130. "prettier": true,
  131. "rules": {
  132. "logical-assignment-operators": "off",
  133. "unicorn/prefer-at": "off",
  134. "unicorn/prefer-string-replace-all": "off",
  135. "unicorn/prevent-abbreviations": "off"
  136. }
  137. }
  138. }