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

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