.eslintrc.js 445 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. 'rules': {
  3. 'indent': [
  4. 2,
  5. 2
  6. ],
  7. 'quotes': [
  8. 2,
  9. 'single'
  10. ],
  11. 'linebreak-style': [
  12. 2,
  13. 'unix'
  14. ],
  15. 'semi': [
  16. 2,
  17. 'always'
  18. ]
  19. },
  20. 'env': {
  21. 'es6': true,
  22. 'browser': true,
  23. 'node': true
  24. },
  25. 'extends': 'eslint:recommended',
  26. 'ecmaFeatures': {
  27. 'jsx': true,
  28. 'experimentalObjectRestSpread': true
  29. },
  30. 'plugins': [
  31. 'react'
  32. ]
  33. };