package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "unist-util-visit-parents",
  3. "version": "3.1.1",
  4. "description": "unist utility to recursively walk over nodes, with ancestral information",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "unist-util",
  9. "util",
  10. "utility",
  11. "tree",
  12. "ast",
  13. "visit",
  14. "traverse",
  15. "walk",
  16. "check",
  17. "parent",
  18. "parents"
  19. ],
  20. "repository": "syntax-tree/unist-util-visit-parents",
  21. "bugs": "https://github.com/syntax-tree/unist-util-visit-parents/issues",
  22. "funding": {
  23. "type": "opencollective",
  24. "url": "https://opencollective.com/unified"
  25. },
  26. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  27. "contributors": [
  28. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  29. ],
  30. "browser": {
  31. "./color.js": "./color.browser.js"
  32. },
  33. "react-native": {
  34. "./color.js": "./color.browser.js"
  35. },
  36. "files": [
  37. "index.js",
  38. "color.js",
  39. "color.browser.js",
  40. "types/index.d.ts"
  41. ],
  42. "types": "types/index.d.ts",
  43. "dependencies": {
  44. "@types/unist": "^2.0.0",
  45. "unist-util-is": "^4.0.0"
  46. },
  47. "devDependencies": {
  48. "browserify": "^17.0.0",
  49. "dtslint": "^4.0.0",
  50. "nyc": "^15.0.0",
  51. "prettier": "^2.0.0",
  52. "remark": "^13.0.0",
  53. "remark-cli": "^9.0.0",
  54. "remark-gfm": "^1.0.0",
  55. "remark-preset-wooorm": "^8.0.0",
  56. "strip-ansi": "^6.0.0",
  57. "tape": "^5.0.0",
  58. "tinyify": "^3.0.0",
  59. "typescript": "^4.0.0",
  60. "unified": "^9.0.0",
  61. "xo": "^0.34.0"
  62. },
  63. "scripts": {
  64. "format": "remark . -qfo && prettier . --write && xo --fix",
  65. "build-bundle": "browserify index.js -s unistUtilVisitParents > unist-util-visit-parents.js",
  66. "build-mangle": "browserify index.js -s unistUtilVisitParents -p tinyify > unist-util-visit-parents.min.js",
  67. "build": "npm run build-bundle && npm run build-mangle",
  68. "test-api": "node test",
  69. "test-coverage": "nyc --reporter lcov tape test.js",
  70. "test-types": "dtslint types",
  71. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  72. },
  73. "nyc": {
  74. "check-coverage": true,
  75. "lines": 100,
  76. "functions": 100,
  77. "branches": 100
  78. },
  79. "prettier": {
  80. "tabWidth": 2,
  81. "useTabs": false,
  82. "singleQuote": true,
  83. "bracketSpacing": false,
  84. "semi": false,
  85. "trailingComma": "none"
  86. },
  87. "xo": {
  88. "prettier": true,
  89. "esnext": false,
  90. "rules": {
  91. "unicorn/prefer-set-has": "off",
  92. "unicorn/prefer-reflect-apply": "off"
  93. },
  94. "ignores": [
  95. "types/",
  96. "unist-util-visit-parents.js"
  97. ]
  98. },
  99. "remarkConfig": {
  100. "plugins": [
  101. "preset-wooorm"
  102. ]
  103. }
  104. }