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

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