.eslintrc.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. {
  2. "env": {
  3. "browser": true
  4. },
  5. "globals": {
  6. "ActiveXObject": true,
  7. "define": true,
  8. "eventjs": true,
  9. "exports": true,
  10. "fabric": true,
  11. "G_vmlCanvasManager": true,
  12. "require": true,
  13. "Buffer": true,
  14. "process": true
  15. },
  16. "rules": {
  17. "semi": 2,
  18. "eqeqeq": 2,
  19. "no-eq-null": 2,
  20. "no-eval": 2,
  21. "no-unused-expressions": [
  22. 2,
  23. {
  24. "allowShortCircuit": true
  25. }
  26. ],
  27. "guard-for-in": 0,
  28. "wrap-iife": [
  29. 2,
  30. "inside"
  31. ],
  32. "linebreak-style": [
  33. 2,
  34. "unix"
  35. ],
  36. "no-loop-func": 2,
  37. "no-multi-str": 2,
  38. "no-caller": 2,
  39. "no-empty": [
  40. 2,
  41. {
  42. "allowEmptyCatch": true
  43. }
  44. ],
  45. "no-new": 0,
  46. "no-plusplus": 0,
  47. "strict": 0,
  48. "dot-notation": 2,
  49. "no-undef": 2,
  50. "no-unused-vars": 2,
  51. "max-depth": [
  52. 2,
  53. 4
  54. ],
  55. "max-statements": [
  56. 2,
  57. 45
  58. ],
  59. "curly": [
  60. 2,
  61. "all"
  62. ],
  63. "keyword-spacing": [
  64. 2,
  65. {}
  66. ],
  67. "space-infix-ops": 2,
  68. "array-bracket-spacing": [
  69. 2,
  70. "never"
  71. ],
  72. "comma-style": [
  73. 2,
  74. "last"
  75. ],
  76. "camelcase": [
  77. 2,
  78. {
  79. "properties": "never"
  80. }
  81. ],
  82. "brace-style": [
  83. 2,
  84. "stroustrup",
  85. {
  86. "allowSingleLine": true
  87. }
  88. ],
  89. "eol-last": 2,
  90. "one-var": [
  91. 0,
  92. "always"
  93. ],
  94. "quote-props": [
  95. 2,
  96. "as-needed",
  97. {
  98. "keywords": true
  99. }
  100. ],
  101. "key-spacing": [
  102. 2,
  103. {
  104. "beforeColon": false,
  105. "afterColon": true,
  106. "mode": "minimum"
  107. }
  108. ],
  109. "space-unary-ops": [
  110. 2,
  111. {
  112. "words": true,
  113. "nonwords": false
  114. }
  115. ],
  116. "no-with": 2,
  117. "no-multiple-empty-lines": 2,
  118. "no-mixed-spaces-and-tabs": 2,
  119. "no-trailing-spaces": 2,
  120. "quotes": [
  121. 2,
  122. "single"
  123. ],
  124. "indent": [
  125. 2,
  126. 2,
  127. {
  128. "SwitchCase": 1,
  129. "VariableDeclarator": 2
  130. }
  131. ],
  132. "consistent-this": [
  133. 2,
  134. "_this"
  135. ],
  136. "valid-jsdoc": [
  137. 0,
  138. {
  139. "requireReturn": false
  140. }
  141. ],
  142. "max-len": [
  143. 2,
  144. 120,
  145. {
  146. "ignoreComments": true
  147. }
  148. ]
  149. }
  150. }