package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "name": "loupe",
  3. "version": "2.3.7",
  4. "description": "Inspect utility for Node.js and browsers",
  5. "homepage": "https://github.com/chaijs/loupe",
  6. "license": "MIT",
  7. "author": "Veselin Todorov <hi@vesln.com>",
  8. "contributors": [
  9. "Keith Cirkel (https://github.com/keithamus)"
  10. ],
  11. "main": "./loupe.js",
  12. "module": "./index.js",
  13. "browser": {
  14. "./index.js": "./loupe.js",
  15. "util": false
  16. },
  17. "repository": {
  18. "type": "git",
  19. "url": "https://github.com/chaijs/loupe"
  20. },
  21. "files": [
  22. "loupe.js",
  23. "index.js",
  24. "lib/*"
  25. ],
  26. "scripts": {
  27. "bench": "node -r esm bench",
  28. "commit-msg": "commitlint -x angular",
  29. "lint": "eslint --ignore-path .gitignore .",
  30. "prepare": "rollup -c rollup.conf.js",
  31. "semantic-release": "semantic-release pre && npm publish && semantic-release post",
  32. "test": "npm run test:node && npm run test:browser",
  33. "pretest:browser": "npm run prepare",
  34. "test:browser": "karma start --singleRun=true",
  35. "posttest:browser": "npm run upload-coverage",
  36. "test:node": "nyc mocha -r esm",
  37. "posttest:node": "nyc report --report-dir \"coverage/node-$(node --version)\" --reporter=lcovonly && npm run upload-coverage",
  38. "upload-coverage": "codecov"
  39. },
  40. "eslintConfig": {
  41. "root": true,
  42. "parserOptions": {
  43. "ecmaVersion": 2020
  44. },
  45. "env": {
  46. "es6": true
  47. },
  48. "plugins": [
  49. "filenames",
  50. "prettier"
  51. ],
  52. "extends": [
  53. "strict/es6"
  54. ],
  55. "rules": {
  56. "comma-dangle": "off",
  57. "func-style": "off",
  58. "no-magic-numbers": "off",
  59. "class-methods-use-this": "off",
  60. "array-bracket-spacing": "off",
  61. "array-element-newline": "off",
  62. "space-before-function-paren": "off",
  63. "arrow-parens": "off",
  64. "template-curly-spacing": "off",
  65. "quotes": "off",
  66. "generator-star-spacing": "off",
  67. "prefer-destructuring": "off",
  68. "no-mixed-operators": "off",
  69. "id-blacklist": "off",
  70. "curly": "off",
  71. "semi": [
  72. "error",
  73. "never"
  74. ],
  75. "prettier/prettier": [
  76. "error",
  77. {
  78. "printWidth": 120,
  79. "tabWidth": 2,
  80. "useTabs": false,
  81. "semi": false,
  82. "singleQuote": true,
  83. "trailingComma": "es5",
  84. "arrowParens": "avoid",
  85. "bracketSpacing": true
  86. }
  87. ]
  88. }
  89. },
  90. "prettier": {
  91. "printWidth": 120,
  92. "tabWidth": 2,
  93. "useTabs": false,
  94. "semi": false,
  95. "singleQuote": true,
  96. "trailingComma": "es5",
  97. "arrowParens": "avoid",
  98. "bracketSpacing": true
  99. },
  100. "dependencies": {
  101. "get-func-name": "^2.0.1"
  102. },
  103. "devDependencies": {
  104. "@babel/core": "^7.12.10",
  105. "@babel/preset-env": "^7.12.11",
  106. "@commitlint/cli": "^11.0.0",
  107. "@rollup/plugin-commonjs": "^17.0.0",
  108. "@rollup/plugin-node-resolve": "^11.1.0",
  109. "benchmark": "^2.1.4",
  110. "chai": "^4.2.0",
  111. "codecov": "^3.8.1",
  112. "commitlint-config-angular": "^11.0.0",
  113. "core-js": "^3.8.3",
  114. "cross-env": "^7.0.3",
  115. "eslint": "^7.18.0",
  116. "eslint-config-strict": "^14.0.1",
  117. "eslint-plugin-filenames": "^1.3.2",
  118. "eslint-plugin-prettier": "^3.3.1",
  119. "esm": "^3.2.25",
  120. "husky": "^4.3.8",
  121. "karma": "^5.2.3",
  122. "karma-chrome-launcher": "^3.1.0",
  123. "karma-coverage": "^2.0.3",
  124. "karma-edge-launcher": "^0.4.2",
  125. "karma-firefox-launcher": "^2.1.0",
  126. "karma-ie-launcher": "^1.0.0",
  127. "karma-mocha": "^2.0.1",
  128. "karma-opera-launcher": "^1.0.0",
  129. "karma-safari-launcher": "^1.0.0",
  130. "karma-safaritechpreview-launcher": "^2.0.2",
  131. "karma-sauce-launcher": "^4.3.4",
  132. "mocha": "^8.2.1",
  133. "nyc": "^15.1.0",
  134. "prettier": "^2.2.1",
  135. "rollup": "^2.37.1",
  136. "rollup-plugin-babel": "^4.4.0",
  137. "rollup-plugin-istanbul": "^3.0.0",
  138. "semantic-release": "^17.3.6",
  139. "simple-assert": "^1.0.0"
  140. }
  141. }