package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "hast-util-is-element",
  3. "version": "3.0.0",
  4. "description": "hast utility to check if a node is a (certain) element",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "hast",
  9. "hast-util",
  10. "util",
  11. "utility",
  12. "html",
  13. "is",
  14. "element"
  15. ],
  16. "repository": "syntax-tree/hast-util-is-element",
  17. "bugs": "https://github.com/syntax-tree/hast-util-is-element/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. },
  37. "devDependencies": {
  38. "@types/node": "^20.0.0",
  39. "c8": "^8.0.0",
  40. "prettier": "^3.0.0",
  41. "remark-cli": "^11.0.0",
  42. "remark-preset-wooorm": "^9.0.0",
  43. "tsd": "^0.28.0",
  44. "type-coverage": "^2.0.0",
  45. "typescript": "^5.0.0",
  46. "xo": "^0.55.0"
  47. },
  48. "scripts": {
  49. "prepack": "npm run build && npm run format",
  50. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  51. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  52. "test-api": "node --conditions development test.js",
  53. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  54. "test": "npm run build && npm run format && npm run test-coverage"
  55. },
  56. "prettier": {
  57. "bracketSpacing": false,
  58. "semi": false,
  59. "singleQuote": true,
  60. "tabWidth": 2,
  61. "trailingComma": "none",
  62. "useTabs": false
  63. },
  64. "remarkConfig": {
  65. "plugins": [
  66. "remark-preset-wooorm"
  67. ]
  68. },
  69. "typeCoverage": {
  70. "atLeast": 100,
  71. "detail": true,
  72. "ignoreCatch": true,
  73. "#": "needed `any`s :'(",
  74. "ignoreFiles": [
  75. "lib/index.d.ts"
  76. ],
  77. "strict": true
  78. },
  79. "xo": {
  80. "prettier": true
  81. }
  82. }