package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "name": "micromark-extension-math",
  3. "version": "3.1.0",
  4. "description": "micromark extension to support math (`$C_L$`)",
  5. "license": "MIT",
  6. "keywords": [
  7. "micromark",
  8. "micromark-extension",
  9. "math",
  10. "katex",
  11. "latex",
  12. "tex",
  13. "markdown",
  14. "unified"
  15. ],
  16. "repository": "micromark/micromark-extension-math",
  17. "bugs": "https://github.com/micromark/micromark-extension-math/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": {
  29. "development": "./dev/index.js",
  30. "default": "./index.js"
  31. },
  32. "files": [
  33. "dev/",
  34. "lib/",
  35. "index.d.ts",
  36. "index.js"
  37. ],
  38. "dependencies": {
  39. "@types/katex": "^0.16.0",
  40. "devlop": "^1.0.0",
  41. "katex": "^0.16.0",
  42. "micromark-factory-space": "^2.0.0",
  43. "micromark-util-character": "^2.0.0",
  44. "micromark-util-symbol": "^2.0.0",
  45. "micromark-util-types": "^2.0.0"
  46. },
  47. "devDependencies": {
  48. "@types/node": "^20.0.0",
  49. "c8": "^10.0.0",
  50. "micromark": "^4.0.0",
  51. "micromark-build": "^2.0.0",
  52. "prettier": "^3.0.0",
  53. "remark-cli": "^12.0.0",
  54. "remark-preset-wooorm": "^10.0.0",
  55. "type-coverage": "^2.0.0",
  56. "typescript": "^5.0.0",
  57. "xo": "^0.58.0"
  58. },
  59. "scripts": {
  60. "prepack": "npm run build && npm run format",
  61. "build": "tsc --build --clean && tsc --build && type-coverage && micromark-build",
  62. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  63. "test-api-prod": "node --conditions production test/index.js",
  64. "test-api-dev": "node --conditions development test/index.js",
  65. "test-api": "npm run test-api-dev && npm run test-api-prod",
  66. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  67. "test": "npm run build && npm run format && npm run test-coverage"
  68. },
  69. "prettier": {
  70. "bracketSpacing": false,
  71. "semi": false,
  72. "singleQuote": true,
  73. "tabWidth": 2,
  74. "trailingComma": "none",
  75. "useTabs": false
  76. },
  77. "remarkConfig": {
  78. "plugins": [
  79. "remark-preset-wooorm"
  80. ]
  81. },
  82. "typeCoverage": {
  83. "atLeast": 100,
  84. "detail": true,
  85. "ignoreCatch": true,
  86. "strict": true
  87. },
  88. "xo": {
  89. "overrides": [
  90. {
  91. "files": [
  92. "**/*.d.ts"
  93. ],
  94. "rules": {
  95. "@typescript-eslint/array-type": [
  96. "error",
  97. {
  98. "default": "generic"
  99. }
  100. ],
  101. "@typescript-eslint/ban-types": [
  102. "error",
  103. {
  104. "extendDefaults": true
  105. }
  106. ],
  107. "@typescript-eslint/consistent-type-definitions": [
  108. "error",
  109. "interface"
  110. ]
  111. }
  112. }
  113. ],
  114. "prettier": true,
  115. "rules": {
  116. "logical-assignment-operators": "off",
  117. "unicorn/no-this-assignment": "off",
  118. "unicorn/prefer-at": "off"
  119. }
  120. }
  121. }