package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "name": "unist-util-is",
  3. "version": "6.0.1",
  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.map",
  37. "index.d.ts",
  38. "index.js"
  39. ],
  40. "dependencies": {
  41. "@types/unist": "^3.0.0"
  42. },
  43. "devDependencies": {
  44. "@types/mdast": "^4.0.0",
  45. "@types/node": "^24.0.0",
  46. "c8": "^10.0.0",
  47. "prettier": "^3.0.0",
  48. "remark-cli": "^12.0.0",
  49. "remark-preset-wooorm": "^11.0.0",
  50. "tsd": "^0.33.0",
  51. "type-coverage": "^2.0.0",
  52. "typescript": "^5.0.0",
  53. "xo": "^0.58.0"
  54. },
  55. "scripts": {
  56. "prepack": "npm run build && npm run format",
  57. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  58. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  59. "test-api": "node --conditions development test/index.js",
  60. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  61. "test": "npm run build && npm run format && npm run test-coverage"
  62. },
  63. "prettier": {
  64. "bracketSpacing": false,
  65. "semi": false,
  66. "singleQuote": true,
  67. "tabWidth": 2,
  68. "trailingComma": "none",
  69. "useTabs": false
  70. },
  71. "remarkConfig": {
  72. "plugins": [
  73. "remark-preset-wooorm"
  74. ]
  75. },
  76. "typeCoverage": {
  77. "atLeast": 100,
  78. "detail": true,
  79. "#": "needed `any`s",
  80. "ignoreFiles": [
  81. "lib/index.d.ts"
  82. ],
  83. "ignoreCatch": true,
  84. "strict": true
  85. },
  86. "xo": {
  87. "overrides": [
  88. {
  89. "files": [
  90. "**/*.ts"
  91. ],
  92. "rules": {
  93. "@typescript-eslint/consistent-type-definitions": "off",
  94. "@typescript-eslint/no-unnecessary-type-arguments": "off",
  95. "@typescript-eslint/no-unsafe-argument": "off",
  96. "@typescript-eslint/no-unsafe-assignment": "off",
  97. "import/no-extraneous-dependencies": "off"
  98. }
  99. }
  100. ],
  101. "prettier": true
  102. }
  103. }