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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. "max-params": ["warn", 6],
  30. "max-statements": ["warn", 44],
  31. "max-statements-per-line": ["error", { "max": 2 }],
  32. "multiline-comment-style": "off",
  33. "multiline-ternary": ["error", "always-multiline"],
  34. "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
  35. "no-continue": "off",
  36. "no-extra-parens": ["error", "functions"],
  37. "no-implicit-globals": "off",
  38. "no-inline-comments": "off",
  39. "no-magic-numbers": "off",
  40. "no-negated-condition": "off",
  41. "no-plusplus": "off",
  42. "no-ternary": "off",
  43. "no-var": "off",
  44. "object-curly-newline": ["error", { "consistent": true }],
  45. "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
  46. "object-shorthand": "off",
  47. "one-var": "off",
  48. "padded-blocks": "off",
  49. "prefer-arrow-callback": "off",
  50. "prefer-destructuring": "off",
  51. "prefer-object-has-own": "off",
  52. "prefer-spread": "off",
  53. "prefer-template": "off",
  54. "quote-props" : ["error", "consistent-as-needed"],
  55. "quotes": ["error", "double", { "avoidEscape": true }],
  56. "require-jsdoc": "off",
  57. "require-unicode-regexp": "off",
  58. "space-before-function-paren": ["error", {
  59. "anonymous": "always",
  60. "named": "never"
  61. }],
  62. "vars-on-top": "off",
  63. // Temporarily disabled rules
  64. "func-style": "off",
  65. "function-paren-newline": "off",
  66. "key-spacing": "off",
  67. "max-len": "off",
  68. "max-lines": "off",
  69. "max-lines-per-function": "off",
  70. "no-invalid-this": "off",
  71. "prefer-exponentiation-operator": "off",
  72. "sort-keys": "off",
  73. "sort-vars": "off"
  74. }
  75. }