package.json 2.8 KB

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