package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  3. "bugs": "https://github.com/wooorm/property-information/issues",
  4. "contributors": [
  5. "Andrew Burgess <andrew@andrewburgess.io>",
  6. "Dustin Deus <deusdustin@gmail.com> (http://starptech.de)",
  7. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  8. ],
  9. "description": "Info on the properties and attributes of the web platform",
  10. "devDependencies": {
  11. "@types/mdast": "^4.0.0",
  12. "@types/node": "^22.0.0",
  13. "alpha-sort": "^5.0.0",
  14. "c8": "^10.0.0",
  15. "html-element-attributes": "^3.0.0",
  16. "html-event-attributes": "^2.0.0",
  17. "mdast-zone": "^6.0.0",
  18. "prettier": "^3.0.0",
  19. "remark-cli": "^12.0.0",
  20. "remark-preset-wooorm": "^11.0.0",
  21. "svg-element-attributes": "^2.0.0",
  22. "svg-event-attributes": "^2.0.0",
  23. "type-coverage": "^2.0.0",
  24. "typescript": "^5.0.0",
  25. "unist-builder": "^4.0.0",
  26. "xo": "^0.60.0"
  27. },
  28. "exports": "./index.js",
  29. "files": [
  30. "index.d.ts",
  31. "index.js",
  32. "lib/"
  33. ],
  34. "funding": {
  35. "type": "github",
  36. "url": "https://github.com/sponsors/wooorm"
  37. },
  38. "keywords": [
  39. "aria",
  40. "attribute",
  41. "html",
  42. "information",
  43. "info",
  44. "property",
  45. "svg"
  46. ],
  47. "license": "MIT",
  48. "name": "property-information",
  49. "prettier": {
  50. "bracketSpacing": false,
  51. "semi": false,
  52. "singleQuote": true,
  53. "tabWidth": 2,
  54. "trailingComma": "none",
  55. "useTabs": false
  56. },
  57. "remarkConfig": {
  58. "plugins": [
  59. "remark-preset-wooorm",
  60. "./script/list.js"
  61. ]
  62. },
  63. "repository": "wooorm/property-information",
  64. "scripts": {
  65. "build": "tsc --build --clean && tsc --build && type-coverage",
  66. "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
  67. "generate": "node --conditions development script/generate-react.js && node --conditions development script/generate-exceptions.js",
  68. "test-api": "node --conditions development test.js",
  69. "test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
  70. "test": "npm run generate && npm run build && npm run format && npm run test-coverage"
  71. },
  72. "sideEffects": false,
  73. "typeCoverage": {
  74. "atLeast": 100,
  75. "ignoreCatch": true
  76. },
  77. "type": "module",
  78. "version": "7.1.0",
  79. "xo": {
  80. "overrides": [
  81. {
  82. "files": [
  83. "script/**/*.js",
  84. "test.js"
  85. ],
  86. "rules": {
  87. "no-await-in-loop": "off"
  88. }
  89. },
  90. {
  91. "files": [
  92. "**/*.d.ts"
  93. ],
  94. "rules": {
  95. "@typescript-eslint/array-type": [
  96. "error",
  97. {
  98. "default": "generic"
  99. }
  100. ],
  101. "@typescript-eslint/ban-types": [
  102. "error",
  103. {
  104. "extendDefaults": true
  105. }
  106. ],
  107. "@typescript-eslint/consistent-type-definitions": [
  108. "error",
  109. "interface"
  110. ]
  111. }
  112. }
  113. ],
  114. "prettier": true,
  115. "rules": {
  116. "logical-assignment-operators": "off",
  117. "no-bitwise": "off",
  118. "unicorn/prefer-string-replace-all": "off"
  119. }
  120. }
  121. }