.eslintrc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "env": {
  3. "browser": true
  4. },
  5. "rules": {
  6. "array-bracket-spacing": [2, "never"],
  7. "block-scoped-var": 2,
  8. "brace-style": [2, "1tbs"],
  9. "camelcase": 2,
  10. "comma-spacing": [2, {"before": false, "after": true}],
  11. "comma-style": [2, "last"],
  12. "computed-property-spacing": [2, "never"],
  13. "consistent-this": [2, "that"],
  14. "curly": 2,
  15. "eol-last": 2,
  16. "eqeqeq": 2,
  17. "guard-for-in": 2,
  18. "handle-callback-err": 2,
  19. "indent": [2, 2, {"VariableDeclarator": 2}],
  20. "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
  21. "keyword-spacing": 2,
  22. "no-caller": 2,
  23. "new-cap": 2,
  24. "new-parens": 2,
  25. "no-array-constructor": 2,
  26. "no-bitwise": 2,
  27. "no-constant-condition": 2,
  28. "no-else-return": 2,
  29. "no-empty": 2,
  30. "no-eq-null": 2,
  31. "no-extra-parens": 0,
  32. "no-extra-semi": 2,
  33. "no-undef": 2,
  34. "no-floating-decimal": 2,
  35. "no-invalid-regexp": 2,
  36. "no-irregular-whitespace": 2,
  37. "no-lonely-if": 2,
  38. "no-mixed-requires": 2,
  39. "no-mixed-spaces-and-tabs": 2,
  40. "no-multiple-empty-lines": 2,
  41. "no-multi-spaces": 0,
  42. "no-negated-in-lhs": 2,
  43. "no-new-object": 2,
  44. "no-path-concat": 2,
  45. "no-process-env": 2,
  46. "no-regex-spaces": 2,
  47. "no-self-compare": 2,
  48. "no-sequences": 2,
  49. "no-spaced-func": 2,
  50. "no-trailing-spaces": 2,
  51. "no-underscore-dangle": 0,
  52. "no-unused-vars": 0, // we should find a way to only exclude addAnchors and enable this
  53. "no-use-before-define": [2, "nofunc"],
  54. "no-void": 2,
  55. "object-curly-spacing": [2, "always"],
  56. "operator-assignment": [2, "always"],
  57. "quotes": [2, "single"],
  58. "quote-props": [2, "as-needed"],
  59. "radix": 2,
  60. "semi": [2, "always"],
  61. "semi-spacing": 2,
  62. "space-before-blocks": [2, "always"],
  63. "spaced-comment": [2, "always"],
  64. "space-in-parens": [2, "never"],
  65. "space-unary-ops": [2, {"words": true, "nonwords": false}],
  66. "strict": [2, "function"],
  67. "valid-jsdoc": [2, {"requireReturn": false}],
  68. "valid-typeof": 2,
  69. "wrap-iife": [2, "outside"],
  70. "yoda": [2, "never"]
  71. },
  72. "globals": {
  73. "DocumentTouch": true,
  74. }
  75. }