Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

.eslintrc.json 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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", 28],
  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. "require-jsdoc": "off",
  50. "require-unicode-regexp": "off",
  51. "space-before-function-paren": ["error", {
  52. "anonymous": "always",
  53. "named": "never"
  54. }],
  55. "vars-on-top": "off",
  56. // Temporarily disabled rules
  57. "array-element-newline": "off",
  58. "consistent-this": "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. "no-underscore-dangle": "off",
  68. "one-var-declaration-per-line": "off",
  69. "sort-keys": "off",
  70. "sort-vars": "off"
  71. }
  72. }