package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "unist-util-is",
  3. "version": "4.1.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. "files": [
  32. "index.js",
  33. "convert.js",
  34. "index.d.ts",
  35. "convert.d.ts"
  36. ],
  37. "types": "index.d.ts",
  38. "devDependencies": {
  39. "@types/mdast": "^3.0.0",
  40. "browserify": "^17.0.0",
  41. "dtslint": "^4.0.0",
  42. "fast-check": "^2.0.0",
  43. "lodash": "^4.0.0",
  44. "nyc": "^15.0.0",
  45. "prettier": "^2.0.0",
  46. "remark-cli": "^9.0.0",
  47. "remark-preset-wooorm": "^8.0.0",
  48. "tape": "^5.0.0",
  49. "tinyify": "^3.0.0",
  50. "unified": "^9.0.0",
  51. "xo": "^0.38.0"
  52. },
  53. "scripts": {
  54. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  55. "build-bundle": "browserify . -s unistUtilIs -o unist-util-is.js",
  56. "build-mangle": "browserify . -s unistUtilIs -o unist-util-is.min.js -p tinyify",
  57. "build": "npm run build-bundle && npm run build-mangle",
  58. "test-api": "node test",
  59. "test-coverage": "nyc --reporter lcov tape test",
  60. "test-types": "dtslint .",
  61. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  62. },
  63. "prettier": {
  64. "tabWidth": 2,
  65. "useTabs": false,
  66. "singleQuote": true,
  67. "bracketSpacing": false,
  68. "semi": false,
  69. "trailingComma": "none"
  70. },
  71. "xo": {
  72. "prettier": true,
  73. "esnext": false,
  74. "rules": {
  75. "@typescript-eslint/no-unused-expressions": "off",
  76. "eqeqeq": [
  77. "error",
  78. "always",
  79. {
  80. "null": "ignore"
  81. }
  82. ],
  83. "max-params": "off",
  84. "no-eq-null": "off",
  85. "unicorn/prefer-number-properties": "off",
  86. "unicorn/prefer-reflect-apply": "off",
  87. "unicorn/prefer-type-error": "off"
  88. },
  89. "ignore": [
  90. "*.ts",
  91. "unist-util-is.js"
  92. ]
  93. },
  94. "nyc": {
  95. "check-coverage": true,
  96. "lines": 100,
  97. "functions": 100,
  98. "branches": 100
  99. },
  100. "remarkConfig": {
  101. "plugins": [
  102. "preset-wooorm"
  103. ]
  104. }
  105. }