package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "mdast-util-math",
  3. "version": "3.0.0",
  4. "description": "mdast extension to parse and serialize math",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "mdast",
  9. "mdast-util",
  10. "util",
  11. "utility",
  12. "markdown",
  13. "markup",
  14. "math",
  15. "katex",
  16. "latex",
  17. "tex"
  18. ],
  19. "repository": "syntax-tree/mdast-util-math",
  20. "bugs": "https://github.com/syntax-tree/mdast-util-math/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. ],
  29. "sideEffects": false,
  30. "type": "module",
  31. "exports": "./index.js",
  32. "files": [
  33. "lib/",
  34. "index.d.ts",
  35. "index.js"
  36. ],
  37. "dependencies": {
  38. "@types/hast": "^3.0.0",
  39. "@types/mdast": "^4.0.0",
  40. "devlop": "^1.0.0",
  41. "longest-streak": "^3.0.0",
  42. "mdast-util-from-markdown": "^2.0.0",
  43. "mdast-util-to-markdown": "^2.1.0",
  44. "unist-util-remove-position": "^5.0.0"
  45. },
  46. "devDependencies": {
  47. "@types/node": "^20.0.0",
  48. "c8": "^8.0.0",
  49. "micromark-extension-math": "^3.0.0",
  50. "prettier": "^3.0.0",
  51. "remark-cli": "^11.0.0",
  52. "remark-preset-wooorm": "^9.0.0",
  53. "type-coverage": "^2.0.0",
  54. "typescript": "^5.0.0",
  55. "xo": "^0.55.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-dev": "node --conditions development test.js",
  62. "test-api-prod": "node --conditions production test.js",
  63. "test-api": "npm run test-api-dev && npm run test-api-prod",
  64. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  65. "test": "npm run build && npm run format && npm run test-coverage"
  66. },
  67. "prettier": {
  68. "bracketSpacing": false,
  69. "semi": false,
  70. "singleQuote": true,
  71. "tabWidth": 2,
  72. "trailingComma": "none",
  73. "useTabs": false
  74. },
  75. "remarkConfig": {
  76. "plugins": [
  77. "remark-preset-wooorm"
  78. ]
  79. },
  80. "typeCoverage": {
  81. "atLeast": 100,
  82. "detail": true,
  83. "ignoreCatch": true,
  84. "strict": true
  85. },
  86. "xo": {
  87. "overrides": [
  88. {
  89. "files": [
  90. "**/*.ts"
  91. ],
  92. "rules": {
  93. "@typescript-eslint/ban-types": "off",
  94. "@typescript-eslint/consistent-type-definitions": "off"
  95. }
  96. }
  97. ],
  98. "prettier": true,
  99. "rules": {
  100. "unicorn/prefer-at": "off",
  101. "unicorn/prefer-string-replace-all": "off"
  102. }
  103. }
  104. }