You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.json 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "env": {
  3. "browser": true,
  4. "es6": true
  5. },
  6. "extends": "eslint:all",
  7. "globals": {
  8. "define": false
  9. },
  10. "rules": {
  11. "array-bracket-newline": ["error", "consistent"],
  12. "array-element-newline": "off",
  13. "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
  14. "camelcase": "off",
  15. "capitalized-comments": "off",
  16. "comma-dangle": ["error", "only-multiline"],
  17. "curly": ["error", "multi-line"],
  18. "dot-location": ["error", "property"],
  19. "func-names": "off",
  20. // "func-style": ["error", "declaration"],
  21. "function-call-argument-newline": "off",
  22. "id-length": ["error", { "min": 1 }],
  23. "indent": ["error", 4, { "SwitchCase": 1 }],
  24. // "max-len": ["error", { "code": 120 }],
  25. // "key-spacing": ["error", {
  26. // "singleLine": { "afterColon": false }
  27. // }],
  28. "line-comment-position": "off",
  29. "logical-assignment-operators": ["error", "never"],
  30. "max-params": ["warn", 6],
  31. "max-statements": ["warn", 44],
  32. "max-statements-per-line": ["error", { "max": 2 }],
  33. "multiline-comment-style": "off",
  34. "multiline-ternary": ["error", "always-multiline"],
  35. "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
  36. "no-continue": "off",
  37. "no-extra-parens": ["error", "functions"],
  38. "no-implicit-globals": "off",
  39. "no-inline-comments": "off",
  40. "no-magic-numbers": "off",
  41. "no-negated-condition": "off",
  42. "no-plusplus": "off",
  43. "no-ternary": "off",
  44. "no-var": "off",
  45. "object-curly-newline": ["error", { "consistent": true }],
  46. "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
  47. "object-shorthand": "off",
  48. "one-var": "off",
  49. "padded-blocks": "off",
  50. "prefer-arrow-callback": "off",
  51. "prefer-destructuring": "off",
  52. "prefer-object-has-own": "off",
  53. "prefer-spread": "off",
  54. "prefer-template": "off",
  55. "quote-props" : ["error", "consistent-as-needed"],
  56. "quotes": ["error", "double", { "avoidEscape": true }],
  57. "require-jsdoc": "off",
  58. "require-unicode-regexp": "off",
  59. "space-before-function-paren": ["error", {
  60. "anonymous": "always",
  61. "named": "never"
  62. }],
  63. "vars-on-top": "off",
  64. // Temporarily disabled rules
  65. "func-style": "off",
  66. "function-paren-newline": "off",
  67. "key-spacing": "off",
  68. "max-len": "off",
  69. "max-lines": "off",
  70. "max-lines-per-function": "off",
  71. "no-invalid-this": "off",
  72. "prefer-exponentiation-operator": "off",
  73. "sort-keys": "off",
  74. "sort-vars": "off"
  75. }
  76. }