.eslintrc 847 B

12345678910111213141516171819202122232425
  1. {
  2. "extends": "airbnb",
  3. "rules": {
  4. "indent": [2, 2],
  5. "max-len": [1, 120, 4, {"ignoreUrls": true}],
  6. "id-length": [1, {"min": 2, "exceptions": ["x", "y", "e", "i", "j", "k", "d", "n", "_", "$"]}],
  7. "object-shorthand": [2, "methods"],
  8. "no-new": [1],
  9. "comma-dangle": [0],
  10. "no-multi-spaces": [0],
  11. "prefer-template": [0],
  12. "no-var": [0],
  13. "prefer-arrow-callback": [1],
  14. "no-undef": [1],
  15. "no-unused-vars": [1],
  16. "no-warning-comments": [1, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
  17. "react/sort-comp": [0],
  18. "react/jsx-boolean-value": [0],
  19. "react/jsx-no-bind": [0],
  20. "react/prefer-es6-class": [0, 'never'],
  21. "react/jsx-indent-props": [2, 4],
  22. "jsx-quotes": [1, "prefer-double"]
  23. }
  24. }