package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "name": "unist-util-is",
  3. "version": "6.0.0",
  4. "description": "unist utility to check if a node passes a test",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "unist-util",
  9. "util",
  10. "utility",
  11. "tree",
  12. "node",
  13. "is",
  14. "equal",
  15. "check",
  16. "test",
  17. "type"
  18. ],
  19. "repository": "syntax-tree/unist-util-is",
  20. "bugs": "https://github.com/syntax-tree/unist-util-is/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. "Christian Murphy <christian.murphy.42@gmail.com>",
  29. "Lucas Brandstaetter <lucas@brandstaetter.tech> (https://github.com/Roang-zero1)"
  30. ],
  31. "sideEffects": false,
  32. "type": "module",
  33. "exports": "./index.js",
  34. "files": [
  35. "lib/",
  36. "index.d.ts",
  37. "index.js"
  38. ],
  39. "dependencies": {
  40. "@types/unist": "^3.0.0"
  41. },
  42. "devDependencies": {
  43. "@types/mdast": "^4.0.0",
  44. "@types/node": "^20.0.0",
  45. "c8": "^8.0.0",
  46. "prettier": "^2.0.0",
  47. "remark-cli": "^11.0.0",
  48. "remark-preset-wooorm": "^9.0.0",
  49. "tsd": "^0.28.0",
  50. "type-coverage": "^2.0.0",
  51. "typescript": "^5.0.0",
  52. "xo": "^0.54.0"
  53. },
  54. "scripts": {
  55. "prepack": "npm run build && npm run format",
  56. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  57. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  58. "test-api": "node --conditions development test/index.js",
  59. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  60. "test": "npm run build && npm run format && npm run test-coverage"
  61. },
  62. "prettier": {
  63. "bracketSpacing": false,
  64. "semi": false,
  65. "singleQuote": true,
  66. "tabWidth": 2,
  67. "trailingComma": "none",
  68. "useTabs": false
  69. },
  70. "remarkConfig": {
  71. "plugins": [
  72. "remark-preset-wooorm"
  73. ]
  74. },
  75. "typeCoverage": {
  76. "atLeast": 100,
  77. "detail": true,
  78. "#": "needed `any`s",
  79. "ignoreFiles": [
  80. "lib/index.d.ts"
  81. ],
  82. "ignoreCatch": true,
  83. "strict": true
  84. },
  85. "xo": {
  86. "overrides": [
  87. {
  88. "files": [
  89. "**/*.ts"
  90. ],
  91. "rules": {
  92. "@typescript-eslint/consistent-type-definitions": "off",
  93. "@typescript-eslint/no-unnecessary-type-arguments": "off",
  94. "import/no-extraneous-dependencies": "off"
  95. }
  96. }
  97. ],
  98. "prettier": true
  99. }
  100. }