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 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. "camelcase": "off",
  12. "capitalized-comments": "off",
  13. "comma-dangle": ["error", "only-multiline"],
  14. "curly": ["error", "multi-line"],
  15. "dot-location": ["error", "property"],
  16. "func-names": "off",
  17. // "func-style": ["error", "declaration"],
  18. "id-length": ["error", { "min": 1 }],
  19. // "max-len": ["error", { "code": 120 }],
  20. "max-params": ["warn", 9],
  21. "max-statements": ["warn", 25],
  22. "multiline-comment-style": "off",
  23. "multiline-ternary": ["error", "always-multiline"],
  24. "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
  25. "no-extra-parens": ["error", "functions"],
  26. "no-implicit-globals": "off",
  27. "no-magic-numbers": "off",
  28. "no-plusplus": "off",
  29. "no-ternary": "off",
  30. // "no-use-before-define": ["error", { "functions": false }],
  31. "no-var": "off",
  32. "object-curly-newline": ["error", { "consistent": true }],
  33. "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
  34. "object-shorthand": "off",
  35. "one-var": "off",
  36. "padded-blocks": "off",
  37. "prefer-arrow-callback": "off",
  38. "prefer-destructuring": "off",
  39. "prefer-template": "off",
  40. "quote-props" : ["error", "consistent-as-needed"],
  41. "require-jsdoc": "off",
  42. "space-before-function-paren": ["error", {
  43. "anonymous": "always",
  44. "named": "never"
  45. }],
  46. "vars-on-top": "off",
  47. // Temporarily disabled rules
  48. "array-callback-return": "off",
  49. "array-element-newline": "off",
  50. "block-scoped-var": "off",
  51. "brace-style": "off",
  52. "callback-return": "off",
  53. "consistent-return": "off",
  54. "consistent-this": "off",
  55. "default-case": "off",
  56. "eqeqeq": "off",
  57. "func-style": "off",
  58. "function-paren-newline": "off",
  59. "global-require": "off",
  60. "guard-for-in": "off",
  61. "init-declarations": "off",
  62. "key-spacing": "off",
  63. "line-comment-position": "off",
  64. "max-len": "off",
  65. "max-lines": "off",
  66. "max-lines-per-function": "off",
  67. "max-statements-per-line": "off",
  68. "new-cap": "off",
  69. "no-else-return": "off",
  70. "no-empty": "off",
  71. "no-empty-function": "off",
  72. "no-eq-null": "off",
  73. "no-implicit-coercion": "off",
  74. "no-inline-comments": "off",
  75. "no-loop-func": "off",
  76. "no-negated-condition": "off",
  77. "no-param-reassign": "off",
  78. "no-redeclare": "off",
  79. "no-shadow": "off",
  80. "no-underscore-dangle": "off",
  81. "no-use-before-define": "off",
  82. "one-var-declaration-per-line": "off",
  83. "prefer-spread": "off",
  84. "sort-keys": "off",
  85. "sort-vars": "off",
  86. "strict": "off"
  87. }
  88. }