.eslintrc.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. "globals": {
  20. "io": true,
  21. "grecaptcha": true
  22. },
  23. "rules": {
  24. "linebreak-style": ["error", "windows"],
  25. "arrow-body-style": 0,
  26. "arrow-parens": 0,
  27. "class-methods-use-this": 0,
  28. "func-names": 0,
  29. "indent": ["error", "tab"],
  30. "no-tabs": 0,
  31. "new-cap": 0,
  32. "no-plusplus": 0,
  33. "no-return-assign": 0,
  34. "no-underscore-dangle": 0,
  35. "quote-props": 0,
  36. "template-curly-spacing": [2, "always"],
  37. "comma-dangle": ["error", {
  38. "arrays": "always-multiline",
  39. "objects": "always-multiline",
  40. "imports": "always-multiline",
  41. "exports": "always-multiline",
  42. "functions": "never"
  43. }],
  44. "jsx-quotes": [2, "prefer-double"],
  45. "quotes": [2, "double"],
  46. "react/jsx-indent": [2, "tab"],
  47. "react/jsx-indent-props": [2, "tab"],
  48. "react/forbid-prop-types": 0,
  49. "react/jsx-curly-spacing": [2, "always"],
  50. "react/jsx-filename-extension": 0,
  51. "react/jsx-boolean-value": 0,
  52. "react/prefer-stateless-function": 0,
  53. "import/extensions": 0,
  54. "import/no-extraneous-dependencies": 0,
  55. "import/no-unresolved": 0,
  56. "import/prefer-default-export": 0
  57. },
  58. }