package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "type",
  3. "version": "1.2.0",
  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.2.0",
  13. "eslint": "^6.4.0",
  14. "eslint-config-medikoo": "^2.5.1",
  15. "git-list-updated": "^1.2.1",
  16. "husky": "^3.0.5",
  17. "lint-staged": "^9.2.5",
  18. "mocha": "^6.2.0",
  19. "nyc": "^14.1.1",
  20. "prettier-elastic": "^1.18.2"
  21. },
  22. "husky": {
  23. "hooks": {
  24. "pre-commit": "lint-staged"
  25. }
  26. },
  27. "lint-staged": {
  28. "*.js": [
  29. "eslint"
  30. ],
  31. "*.{css,html,js,json,md,yaml,yml}": [
  32. "prettier -c"
  33. ]
  34. },
  35. "eslintConfig": {
  36. "extends": "medikoo/es3",
  37. "root": true,
  38. "globals": {
  39. "Map": true,
  40. "Promise": true,
  41. "Set": true,
  42. "Symbol": true
  43. },
  44. "overrides": [
  45. {
  46. "files": "test/**/*.js",
  47. "env": {
  48. "mocha": true
  49. },
  50. "rules": {
  51. "no-eval": "off",
  52. "no-new-wrappers": "off"
  53. }
  54. },
  55. {
  56. "files": [
  57. "string/coerce.js",
  58. "number/coerce.js"
  59. ],
  60. "rules": {
  61. "no-implicit-coercion": "off"
  62. }
  63. },
  64. {
  65. "files": "plain-object/is.js",
  66. "rules": {
  67. "no-proto": "off"
  68. }
  69. }
  70. ]
  71. },
  72. "prettier": {
  73. "printWidth": 100,
  74. "tabWidth": 4,
  75. "overrides": [
  76. {
  77. "files": [
  78. "*.md"
  79. ],
  80. "options": {
  81. "tabWidth": 2
  82. }
  83. }
  84. ]
  85. },
  86. "scripts": {
  87. "coverage": "nyc --reporter=lcov --reporter=html --reporter=text-summary npm test",
  88. "check-coverage": "npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80",
  89. "lint": "eslint --ignore-path=.gitignore .",
  90. "lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
  91. "prettier-check-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
  92. "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
  93. "test": "mocha --recursive"
  94. },
  95. "license": "ISC"
  96. }