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

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