.eslintrc.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. module.exports = {
  2. "extends": ["eslint-config-airbnb"],
  3. "parser": "babel-eslint",
  4. "settings": {
  5. "ecmascript": 6
  6. },
  7. "ecmaFeatures": {
  8. "jsx": true,
  9. "modules": true,
  10. "destructuring": true,
  11. "classes": true,
  12. "forOf": true,
  13. "blockBindings": true,
  14. "arrowFunctions": true
  15. },
  16. "env": {
  17. "browser": true
  18. },
  19. "rules": {
  20. "linebreak-style": ["error", "windows"],
  21. "arrow-body-style": 0,
  22. "arrow-parens": 0,
  23. "class-methods-use-this": 0,
  24. "func-names": 0,
  25. "indent": ["error", "tab"],
  26. "no-tabs": 0,
  27. "new-cap": 0,
  28. "no-plusplus": 0,
  29. "no-return-assign": 0,
  30. "quote-props": 0,
  31. "template-curly-spacing": [2, "always"],
  32. "comma-dangle": ["error", {
  33. "arrays": "always-multiline",
  34. "objects": "always-multiline",
  35. "imports": "always-multiline",
  36. "exports": "always-multiline",
  37. "functions": "never"
  38. }],
  39. "jsx-quotes": [2, "prefer-double"],
  40. "quotes": [2, "double"],
  41. "react/jsx-indent": [2, "tab"],
  42. "react/jsx-indent-props": [2, "tab"],
  43. "react/forbid-prop-types": 0,
  44. "react/jsx-curly-spacing": [2, "always"],
  45. "react/jsx-filename-extension": 0,
  46. "react/jsx-boolean-value": 0,
  47. "react/prefer-stateless-function": 0,
  48. "import/extensions": 0,
  49. "import/no-extraneous-dependencies": 0,
  50. "import/no-unresolved": 0,
  51. "import/prefer-default-export": 0
  52. }
  53. }