package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "unified",
  3. "version": "11.0.4",
  4. "description": "parse, inspect, transform, and serialize content through syntax trees",
  5. "license": "MIT",
  6. "keywords": [
  7. "ast",
  8. "compile",
  9. "content",
  10. "cst",
  11. "parse",
  12. "process",
  13. "rehype",
  14. "remark",
  15. "retext",
  16. "serialize",
  17. "stringify",
  18. "syntax",
  19. "transform",
  20. "tree",
  21. "unified"
  22. ],
  23. "homepage": "https://unifiedjs.com",
  24. "repository": "unifiedjs/unified",
  25. "bugs": "https://github.com/unifiedjs/unified/issues",
  26. "funding": {
  27. "type": "opencollective",
  28. "url": "https://opencollective.com/unified"
  29. },
  30. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  31. "contributors": [
  32. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  33. "Junyoung Choi <fluke8259@gmail.com>",
  34. "Hernan Rajchert <hrajchert@gmail.com>",
  35. "Christian Murphy <christian.murphy.42@gmail.com>",
  36. "Vse Mozhet Byt <vsemozhetbyt@gmail.com>",
  37. "Richard Littauer <richard.littauer@gmail.com>"
  38. ],
  39. "sideEffects": false,
  40. "type": "module",
  41. "exports": "./index.js",
  42. "files": [
  43. "lib/",
  44. "index.d.ts",
  45. "index.js"
  46. ],
  47. "dependencies": {
  48. "@types/unist": "^3.0.0",
  49. "bail": "^2.0.0",
  50. "devlop": "^1.0.0",
  51. "extend": "^3.0.0",
  52. "is-plain-obj": "^4.0.0",
  53. "trough": "^2.0.0",
  54. "vfile": "^6.0.0"
  55. },
  56. "devDependencies": {
  57. "@types/extend": "^3.0.0",
  58. "@types/hast": "^3.0.0",
  59. "@types/mdast": "^4.0.0",
  60. "@types/node": "^20.0.0",
  61. "c8": "^8.0.0",
  62. "prettier": "^3.0.0",
  63. "remark-cli": "^11.0.0",
  64. "remark-preset-wooorm": "^9.0.0",
  65. "tsd": "^0.29.0",
  66. "type-coverage": "^2.0.0",
  67. "typescript": "^5.0.0",
  68. "xo": "^0.56.0"
  69. },
  70. "scripts": {
  71. "build": "tsc --build --clean && tsc --build && node script/fix-types.js && type-coverage && tsd",
  72. "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
  73. "prepack": "npm run build && npm run format",
  74. "test": "npm run build && npm run format && npm run test-coverage",
  75. "test-api": "node --conditions development test/index.js",
  76. "test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
  77. },
  78. "prettier": {
  79. "bracketSpacing": false,
  80. "singleQuote": true,
  81. "semi": false,
  82. "tabWidth": 2,
  83. "trailingComma": "none",
  84. "useTabs": false
  85. },
  86. "remarkConfig": {
  87. "plugins": [
  88. "remark-preset-wooorm",
  89. [
  90. "remark-lint-no-html",
  91. false
  92. ]
  93. ]
  94. },
  95. "typeCoverage": {
  96. "atLeast": 100,
  97. "detail": true,
  98. "ignoreCatch": true,
  99. "strict": true
  100. },
  101. "xo": {
  102. "overrides": [
  103. {
  104. "files": [
  105. "**/*.ts"
  106. ],
  107. "rules": {
  108. "@typescript-eslint/ban-types": "off",
  109. "@typescript-eslint/consistent-type-definitions": "off",
  110. "@typescript-eslint/naming-convention": "off"
  111. }
  112. }
  113. ],
  114. "prettier": true,
  115. "rules": {
  116. "unicorn/no-this-assignment": "off"
  117. }
  118. }
  119. }