package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "mdast-util-mdx-expression",
  3. "version": "2.0.1",
  4. "description": "mdast extension to parse and serialize MDX (or MDX.js) expressions",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "mdast",
  9. "mdast-util",
  10. "util",
  11. "utility",
  12. "markdown",
  13. "markup",
  14. "mdx",
  15. "mdxjs",
  16. "expression",
  17. "extension"
  18. ],
  19. "repository": "syntax-tree/mdast-util-mdx-expression",
  20. "bugs": "https://github.com/syntax-tree/mdast-util-mdx-expression/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. "complex-types.d.ts",
  35. "index.d.ts",
  36. "index.js"
  37. ],
  38. "dependencies": {
  39. "@types/estree-jsx": "^1.0.0",
  40. "@types/hast": "^3.0.0",
  41. "@types/mdast": "^4.0.0",
  42. "devlop": "^1.0.0",
  43. "mdast-util-from-markdown": "^2.0.0",
  44. "mdast-util-to-markdown": "^2.0.0"
  45. },
  46. "devDependencies": {
  47. "@types/acorn": "^4.0.0",
  48. "@types/node": "^22.0.0",
  49. "acorn": "^8.0.0",
  50. "c8": "^10.0.0",
  51. "micromark-extension-mdx-expression": "^3.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. "unist-util-remove-position": "^5.0.0",
  58. "xo": "^0.59.0"
  59. },
  60. "scripts": {
  61. "prepack": "npm run build && npm run format",
  62. "build": "tsc --build --clean && tsc --build && type-coverage",
  63. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  64. "test-api-prod": "node --conditions production test.js",
  65. "test-api-dev": "node --conditions development test.js",
  66. "test-api": "npm run test-api-dev && npm run test-api-prod",
  67. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  68. "test": "npm run build && npm run format && npm run test-coverage"
  69. },
  70. "prettier": {
  71. "bracketSpacing": false,
  72. "semi": false,
  73. "singleQuote": true,
  74. "tabWidth": 2,
  75. "trailingComma": "none",
  76. "useTabs": false
  77. },
  78. "remarkConfig": {
  79. "plugins": [
  80. "remark-preset-wooorm"
  81. ]
  82. },
  83. "typeCoverage": {
  84. "atLeast": 100,
  85. "detail": true,
  86. "ignoreCatch": true,
  87. "strict": true
  88. },
  89. "xo": {
  90. "overrides": [
  91. {
  92. "files": [
  93. "**/*.ts"
  94. ],
  95. "rules": {
  96. "@typescript-eslint/ban-types": "off",
  97. "@typescript-eslint/consistent-type-definitions": "off"
  98. }
  99. }
  100. ],
  101. "prettier": true,
  102. "rules": {
  103. "unicorn/prefer-at": "off"
  104. }
  105. }
  106. }