package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "name": "type",
  3. "version": "2.7.3",
  4. "description": "Runtime validation and processing of JavaScript types",
  5. "author": "Mariusz Nowak <medyk@medikoo.com> (https://www.medikoo.com/)",
  6. "keywords": [
  7. "type",
  8. "coercion"
  9. ],
  10. "repository": "medikoo/type",
  11. "devDependencies": {
  12. "chai": "^4.3.6",
  13. "eslint": "^8.21.0",
  14. "eslint-config-medikoo": "^4.1.2",
  15. "git-list-updated": "^1.2.1",
  16. "github-release-from-cc-changelog": "^2.3.0",
  17. "husky": "^4.3.8",
  18. "lint-staged": "^15.2.5",
  19. "mocha": "^6.2.3",
  20. "nyc": "^15.1.0",
  21. "prettier-elastic": "^3.2.5"
  22. },
  23. "typesVersions": {
  24. ">=4": {
  25. "*": [
  26. "ts-types/*"
  27. ]
  28. }
  29. },
  30. "husky": {
  31. "hooks": {
  32. "pre-commit": "lint-staged"
  33. }
  34. },
  35. "lint-staged": {
  36. "*.js": [
  37. "eslint"
  38. ],
  39. "*.{css,html,js,json,md,yaml,yml}": [
  40. "prettier -c"
  41. ]
  42. },
  43. "eslintConfig": {
  44. "extends": "medikoo/es3",
  45. "root": true,
  46. "globals": {
  47. "BigInt": true,
  48. "Map": true,
  49. "Promise": true,
  50. "Set": true,
  51. "Symbol": true
  52. },
  53. "overrides": [
  54. {
  55. "files": "test/**/*.js",
  56. "env": {
  57. "mocha": true
  58. },
  59. "rules": {
  60. "no-eval": "off",
  61. "no-new-wrappers": "off"
  62. }
  63. },
  64. {
  65. "files": [
  66. "string/coerce.js",
  67. "number/coerce.js"
  68. ],
  69. "rules": {
  70. "no-implicit-coercion": "off"
  71. }
  72. },
  73. {
  74. "files": "plain-object/is.js",
  75. "rules": {
  76. "no-proto": "off"
  77. }
  78. }
  79. ]
  80. },
  81. "prettier": {
  82. "printWidth": 100,
  83. "tabWidth": 4,
  84. "trailingComma": "none",
  85. "overrides": [
  86. {
  87. "files": [
  88. "*.md",
  89. "*.yml"
  90. ],
  91. "options": {
  92. "tabWidth": 2
  93. }
  94. }
  95. ]
  96. },
  97. "nyc": {
  98. "all": true,
  99. "exclude": [
  100. ".github",
  101. "coverage/**",
  102. "test/**",
  103. "*.config.js"
  104. ],
  105. "reporter": [
  106. "lcov",
  107. "html",
  108. "text-summary"
  109. ]
  110. },
  111. "scripts": {
  112. "coverage": "nyc npm test",
  113. "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
  114. "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
  115. "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
  116. "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
  117. "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
  118. "test": "mocha --recursive"
  119. },
  120. "license": "ISC"
  121. }