package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. {
  2. "name": "mpath",
  3. "version": "0.9.0",
  4. "description": "{G,S}et object values using MongoDB-like path notation",
  5. "main": "index.js",
  6. "scripts": {
  7. "lint": "eslint .",
  8. "test": "mocha test/*"
  9. },
  10. "engines": {
  11. "node": ">=4.0.0"
  12. },
  13. "repository": "git://github.com/aheckmann/mpath.git",
  14. "keywords": [
  15. "mongodb",
  16. "path",
  17. "get",
  18. "set"
  19. ],
  20. "author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>",
  21. "license": "MIT",
  22. "devDependencies": {
  23. "mocha": "5.x",
  24. "benchmark": "~1.0.0",
  25. "eslint": "7.16.0"
  26. },
  27. "eslintConfig": {
  28. "extends": [
  29. "eslint:recommended"
  30. ],
  31. "parserOptions": {
  32. "ecmaVersion": 2015
  33. },
  34. "env": {
  35. "node": true,
  36. "es6": true
  37. },
  38. "rules": {
  39. "comma-style": "error",
  40. "indent": [
  41. "error",
  42. 2,
  43. {
  44. "SwitchCase": 1,
  45. "VariableDeclarator": 2
  46. }
  47. ],
  48. "keyword-spacing": "error",
  49. "no-whitespace-before-property": "error",
  50. "no-buffer-constructor": "warn",
  51. "no-console": "off",
  52. "no-multi-spaces": "error",
  53. "no-constant-condition": "off",
  54. "func-call-spacing": "error",
  55. "no-trailing-spaces": "error",
  56. "no-undef": "error",
  57. "no-unneeded-ternary": "error",
  58. "no-const-assign": "error",
  59. "no-useless-rename": "error",
  60. "no-dupe-keys": "error",
  61. "space-in-parens": [
  62. "error",
  63. "never"
  64. ],
  65. "spaced-comment": [
  66. "error",
  67. "always",
  68. {
  69. "block": {
  70. "markers": [
  71. "!"
  72. ],
  73. "balanced": true
  74. }
  75. }
  76. ],
  77. "key-spacing": [
  78. "error",
  79. {
  80. "beforeColon": false,
  81. "afterColon": true
  82. }
  83. ],
  84. "comma-spacing": [
  85. "error",
  86. {
  87. "before": false,
  88. "after": true
  89. }
  90. ],
  91. "array-bracket-spacing": 1,
  92. "arrow-spacing": [
  93. "error",
  94. {
  95. "before": true,
  96. "after": true
  97. }
  98. ],
  99. "object-curly-spacing": [
  100. "error",
  101. "always"
  102. ],
  103. "comma-dangle": [
  104. "error",
  105. "never"
  106. ],
  107. "no-unreachable": "error",
  108. "quotes": [
  109. "error",
  110. "single"
  111. ],
  112. "quote-props": [
  113. "error",
  114. "as-needed"
  115. ],
  116. "semi": "error",
  117. "no-extra-semi": "error",
  118. "semi-spacing": "error",
  119. "no-spaced-func": "error",
  120. "no-throw-literal": "error",
  121. "space-before-blocks": "error",
  122. "space-before-function-paren": [
  123. "error",
  124. "never"
  125. ],
  126. "space-infix-ops": "error",
  127. "space-unary-ops": "error",
  128. "no-var": "warn",
  129. "prefer-const": "warn",
  130. "strict": [
  131. "error",
  132. "global"
  133. ],
  134. "no-restricted-globals": [
  135. "error",
  136. {
  137. "name": "context",
  138. "message": "Don't use Mocha's global context"
  139. }
  140. ],
  141. "no-prototype-builtins": "off"
  142. }
  143. }
  144. }