package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {
  2. "name": "ext",
  3. "version": "1.7.0",
  4. "description": "JavaScript utilities with respect to emerging standard",
  5. "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",
  6. "keywords": [
  7. "ecmascript",
  8. "es",
  9. "es6",
  10. "extensions",
  11. "ext",
  12. "addons",
  13. "lodash",
  14. "extras",
  15. "harmony",
  16. "javascript",
  17. "polyfill",
  18. "shim",
  19. "util",
  20. "utils",
  21. "utilities"
  22. ],
  23. "repository": {
  24. "type": "git",
  25. "url": "https://github.com/medikoo/es5-ext#ext"
  26. },
  27. "dependencies": {
  28. "type": "^2.7.2"
  29. },
  30. "devDependencies": {
  31. "chai": "^4.3.6",
  32. "eslint": "^8.23.0",
  33. "eslint-config-medikoo": "^4.1.2",
  34. "git-list-updated": "^1.2.1",
  35. "github-release-from-cc-changelog": "^2.3.0",
  36. "husky": "^4.3.8",
  37. "lint-staged": "^13.0.3",
  38. "mocha": "^6.2.3",
  39. "nyc": "^15.1.0",
  40. "prettier-elastic": "^2.2.1",
  41. "sinon": "^8.1.1",
  42. "timers-ext": "^0.1.7"
  43. },
  44. "husky": {
  45. "hooks": {
  46. "pre-commit": "lint-staged"
  47. }
  48. },
  49. "lint-staged": {
  50. "*.js": [
  51. "eslint"
  52. ],
  53. "*.{css,html,js,json,md,yaml,yml}": [
  54. "prettier -c"
  55. ]
  56. },
  57. "eslintIgnore": [
  58. "_es5-ext"
  59. ],
  60. "eslintConfig": {
  61. "extends": "medikoo/es3",
  62. "root": true,
  63. "overrides": [
  64. {
  65. "files": "global-this/implementation.js",
  66. "globals": {
  67. "__global__": true,
  68. "self": true,
  69. "window": true
  70. },
  71. "rules": {
  72. "no-extend-native": "off",
  73. "strict": "off"
  74. }
  75. },
  76. {
  77. "files": [
  78. "global-this/is-implemented.js",
  79. "global-this/index.js"
  80. ],
  81. "globals": {
  82. "globalThis": true
  83. }
  84. },
  85. {
  86. "files": "string_/camel-to-hyphen.js",
  87. "rules": {
  88. "id-length": "off"
  89. }
  90. },
  91. {
  92. "files": "test/**/*.js",
  93. "env": {
  94. "mocha": true
  95. }
  96. },
  97. {
  98. "files": [
  99. "test/promise/limit.js",
  100. "test/thenable_/finally.js"
  101. ],
  102. "globals": {
  103. "Promise": true
  104. }
  105. }
  106. ]
  107. },
  108. "prettier": {
  109. "printWidth": 100,
  110. "tabWidth": 4,
  111. "overrides": [
  112. {
  113. "files": [
  114. "*.md",
  115. "*.yml"
  116. ],
  117. "options": {
  118. "tabWidth": 2
  119. }
  120. }
  121. ]
  122. },
  123. "mocha": {
  124. "recursive": true
  125. },
  126. "nyc": {
  127. "all": true,
  128. "exclude": [
  129. ".github",
  130. "_es5-ext",
  131. "coverage/**",
  132. "test/**",
  133. "*.config.js"
  134. ],
  135. "reporter": [
  136. "lcov",
  137. "html",
  138. "text-summary"
  139. ]
  140. },
  141. "scripts": {
  142. "coverage": "nyc npm test",
  143. "lint": "eslint .",
  144. "lint:updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
  145. "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
  146. "prettier-check:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
  147. "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
  148. "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
  149. "test": "mocha"
  150. },
  151. "license": "ISC"
  152. }