.eslintrc 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "extends": "plugin:react/recommended",
  3. // "parser": "babel-eslint",
  4. "rules": {
  5. "react/jsx-uses-react": 1,
  6. "react/jsx-uses-vars": 1,
  7. "react/react-in-jsx-scope": 1,
  8. "react/jsx-tag-spacing": [0, {
  9. "beforeSelfClosing": "always"
  10. }],
  11. "curly": [1],
  12. "linebreak-style": [1, "unix"],
  13. "semi": [1, "always"],
  14. "comma-dangle": [0],
  15. "no-unused-vars": [1, {
  16. "vars": "all",
  17. "args": "none",
  18. "ignoreRestSiblings": true
  19. }],
  20. "no-console": [0],
  21. "object-curly-spacing": [1, "always"],
  22. "keyword-spacing": ["error"]
  23. },
  24. "parserOptions": {
  25. "ecmaFeatures": {
  26. "experimentalObjectRestSpread": true,
  27. "jsx": true
  28. },
  29. "sourceType": "module"
  30. },
  31. "env": {
  32. "es6": true,
  33. "browser": true,
  34. "node": false
  35. },
  36. "plugins": [
  37. "jsx-a11y",
  38. "react"
  39. ]
  40. }