.eslintrc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "env": {
  3. "browser": true
  4. },
  5. // Rule docs: http://eslint.org/docs/rules/
  6. "rules": {
  7. "block-scoped-var": [1],
  8. "brace-style": [1, "1tbs", {"allowSingleLine": true}],
  9. "camelcase": [1],
  10. "comma-spacing": [1],
  11. "comma-style": [1],
  12. "computed-property-spacing": [1, "never"],
  13. "consistent-return": [1],
  14. "consistent-this": [1, "self"],
  15. "curly": [2],
  16. "dot-notation": [0],
  17. "eol-last": [1],
  18. "eqeqeq": [1],
  19. "indent": [1, 4],
  20. "key-spacing": [1],
  21. "max-len": [1, 100],
  22. "max-nested-callbacks": [2, 3], // ????
  23. "new-cap": [1],
  24. "new-parens": [1],
  25. "no-caller": [2],
  26. "no-console": [0],
  27. "no-eval": [2],
  28. "no-extend-native": [2],
  29. "no-extra-bind": [1],
  30. "no-floating-decimal": [1],
  31. "no-iterator": [1],
  32. "no-lone-blocks": [1],
  33. "no-lonely-if": [1],
  34. "no-mixed-requires": [0],
  35. "no-mixed-spaces-and-tabs": [1],
  36. "no-multi-spaces": [1],
  37. "no-multi-str": [1],
  38. "no-multiple-empty-lines": [2, {"max": 2}],
  39. "no-native-reassign": [1],
  40. "no-new": [0],
  41. "no-redeclare": [1],
  42. "no-shadow": [1],
  43. "no-spaced-func": [1],
  44. "no-throw-literal": [1],
  45. "no-trailing-spaces": [1],
  46. "no-undef": [1],
  47. "no-underscore-dangle": [0],
  48. "no-unneeded-ternary": [1],
  49. "no-unused-vars": [1],
  50. "no-use-before-define": [1, "nofunc"],
  51. "no-with": [2],
  52. "one-var": [1, "never"],
  53. "quotes": [1, "single"],
  54. "radix": [1],
  55. "semi": [1, "always"],
  56. "semi-spacing": [1],
  57. "keyword-spacing": [1, {"before": true, "after": true}],
  58. "space-before-blocks": [1, "always"],
  59. "space-before-function-paren": [1, "never"],
  60. "space-in-parens": [1, "never"],
  61. "space-infix-ops": [1],
  62. "space-unary-ops": [1],
  63. "strict": [0],
  64. "wrap-iife": [1]
  65. },
  66. "globals": {
  67. "module": true,
  68. "require": true
  69. }
  70. }