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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. // "max-len": ["error", { "code": 120 }],
  21. "max-params": ["warn", 9],
  22. "max-statements": ["warn", 25],
  23. "max-statements-per-line": ["error", { "max": 2 }],
  24. "multiline-comment-style": "off",
  25. "multiline-ternary": ["error", "always-multiline"],
  26. "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
  27. "no-extra-parens": ["error", "functions"],
  28. "no-implicit-globals": "off",
  29. "no-magic-numbers": "off",
  30. "no-negated-condition": "off",
  31. "no-plusplus": "off",
  32. "no-ternary": "off",
  33. "no-var": "off",
  34. "object-curly-newline": ["error", { "consistent": true }],
  35. "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
  36. "object-shorthand": "off",
  37. "one-var": "off",
  38. "padded-blocks": "off",
  39. "prefer-arrow-callback": "off",
  40. "prefer-destructuring": "off",
  41. "prefer-template": "off",
  42. "quote-props" : ["error", "consistent-as-needed"],
  43. "require-jsdoc": "off",
  44. "space-before-function-paren": ["error", {
  45. "anonymous": "always",
  46. "named": "never"
  47. }],
  48. "vars-on-top": "off",
  49. // Temporarily disabled rules
  50. "array-callback-return": "off",
  51. "array-element-newline": "off",
  52. "callback-return": "off",
  53. "consistent-return": "off",
  54. "consistent-this": "off",
  55. "default-case": "off",
  56. "func-style": "off",
  57. "function-paren-newline": "off",
  58. "global-require": "off",
  59. "guard-for-in": "off",
  60. "init-declarations": "off",
  61. "key-spacing": "off",
  62. "line-comment-position": "off",
  63. "max-len": "off",
  64. "max-lines": "off",
  65. "max-lines-per-function": "off",
  66. "new-cap": "off",
  67. "no-inline-comments": "off",
  68. "no-invalid-this": "off",
  69. "no-underscore-dangle": "off",
  70. "one-var-declaration-per-line": "off",
  71. "prefer-spread": "off",
  72. "sort-keys": "off",
  73. "sort-vars": "off"
  74. }
  75. }