package.json 2.9 KB

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