package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "vfile-location",
  3. "version": "5.0.3",
  4. "description": "vfile utility to convert between positional (line and column-based) and offset (range-based) locations",
  5. "license": "MIT",
  6. "keywords": [
  7. "vfile",
  8. "vfile-util",
  9. "util",
  10. "utility",
  11. "virtual",
  12. "file",
  13. "location",
  14. "point",
  15. "position",
  16. "offset"
  17. ],
  18. "repository": "vfile/vfile-location",
  19. "bugs": "https://github.com/vfile/vfile-location/issues",
  20. "funding": {
  21. "type": "opencollective",
  22. "url": "https://opencollective.com/unified"
  23. },
  24. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  25. "contributors": [
  26. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  27. "Christian Murphy <christian.murphy.42@gmail.com>"
  28. ],
  29. "sideEffects": false,
  30. "type": "module",
  31. "exports": {
  32. "types": "./index.d.ts",
  33. "default": "./index.js"
  34. },
  35. "files": [
  36. "lib/",
  37. "index.d.ts",
  38. "index.js"
  39. ],
  40. "dependencies": {
  41. "@types/unist": "^3.0.0",
  42. "vfile": "^6.0.0"
  43. },
  44. "devDependencies": {
  45. "@types/node": "^20.0.0",
  46. "c8": "^10.0.0",
  47. "prettier": "^3.0.0",
  48. "remark-api": "^1.0.0",
  49. "remark-cli": "^12.0.0",
  50. "remark-preset-wooorm": "^10.0.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 && type-coverage",
  58. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  59. "test-api": "node --conditions development test.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. "remark-api"
  75. ]
  76. },
  77. "typeCoverage": {
  78. "atLeast": 100,
  79. "detail": true,
  80. "ignoreCatch": true,
  81. "strict": true
  82. },
  83. "xo": {
  84. "overrides": [
  85. {
  86. "files": [
  87. "**/*.d.ts"
  88. ],
  89. "rules": {
  90. "@typescript-eslint/array-type": [
  91. "error",
  92. {
  93. "default": "generic"
  94. }
  95. ],
  96. "@typescript-eslint/ban-types": [
  97. "error",
  98. {
  99. "extendDefaults": true
  100. }
  101. ],
  102. "@typescript-eslint/consistent-type-definitions": [
  103. "error",
  104. "interface"
  105. ]
  106. }
  107. }
  108. ],
  109. "prettier": true,
  110. "rules": {
  111. "no-constant-condition": "off",
  112. "unicorn/prefer-at": "off"
  113. }
  114. }
  115. }