package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "name": "vfile",
  3. "version": "6.0.3",
  4. "description": "Virtual file format for text processing",
  5. "license": "MIT",
  6. "keywords": [
  7. "vfile",
  8. "virtual",
  9. "file",
  10. "text",
  11. "processing",
  12. "message",
  13. "warning",
  14. "error",
  15. "remark",
  16. "retext",
  17. "rehype"
  18. ],
  19. "repository": "vfile/vfile",
  20. "bugs": "https://github.com/vfile/vfile/issues",
  21. "funding": {
  22. "type": "opencollective",
  23. "url": "https://opencollective.com/unified"
  24. },
  25. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  26. "contributors": [
  27. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  28. "Brendan Abbott <brendan.abbott@temando.com>",
  29. "Denys Dovhan <email@denysdovhan.com>",
  30. "Kyle Mathews <mathews.kyle@gmail.com>",
  31. "Shinnosuke Watanabe <snnskwtnb@gmail.com>",
  32. "Sindre Sorhus <sindresorhus@gmail.com>"
  33. ],
  34. "sideEffects": false,
  35. "type": "module",
  36. "exports": "./index.js",
  37. "imports": {
  38. "#minpath": {
  39. "node": "./lib/minpath.js",
  40. "default": "./lib/minpath.browser.js"
  41. },
  42. "#minproc": {
  43. "node": "./lib/minproc.js",
  44. "default": "./lib/minproc.browser.js"
  45. },
  46. "#minurl": {
  47. "node": "./lib/minurl.js",
  48. "default": "./lib/minurl.browser.js"
  49. }
  50. },
  51. "files": [
  52. "lib/",
  53. "index.d.ts",
  54. "index.js"
  55. ],
  56. "dependencies": {
  57. "@types/unist": "^3.0.0",
  58. "vfile-message": "^4.0.0"
  59. },
  60. "devDependencies": {
  61. "@types/node": "^22.0.0",
  62. "c8": "^10.0.0",
  63. "prettier": "^3.0.0",
  64. "remark-cli": "^12.0.0",
  65. "remark-preset-wooorm": "^10.0.0",
  66. "type-coverage": "^2.0.0",
  67. "typescript": "^5.0.0",
  68. "xo": "^0.59.0"
  69. },
  70. "scripts": {
  71. "prepack": "npm run build && npm run format",
  72. "build": "tsc --build --clean && tsc --build && type-coverage",
  73. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  74. "test-api": "node --conditions development test.js",
  75. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  76. "test": "npm run build && npm run format && npm run test-coverage"
  77. },
  78. "prettier": {
  79. "bracketSpacing": false,
  80. "semi": false,
  81. "singleQuote": true,
  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. "**/*.d.ts"
  106. ],
  107. "rules": {
  108. "@typescript-eslint/array-type": [
  109. "error",
  110. {
  111. "default": "generic"
  112. }
  113. ],
  114. "@typescript-eslint/ban-types": [
  115. "error",
  116. {
  117. "extendDefaults": true
  118. }
  119. ],
  120. "@typescript-eslint/consistent-type-definitions": [
  121. "error",
  122. "interface"
  123. ]
  124. }
  125. }
  126. ],
  127. "prettier": true,
  128. "rules": {
  129. "logical-assignment-operators": "off",
  130. "unicorn/prefer-at": "off",
  131. "unicorn/prefer-string-replace-all": "off"
  132. }
  133. }
  134. }