説明なし

.eslintrc.json 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "env": {
  3. "browser": true,
  4. "commonjs": true,
  5. "es6": true,
  6. "node": true
  7. },
  8. "parser": "babel-eslint",
  9. "parserOptions": {
  10. "ecmaVersion": 8,
  11. "ecmaFeatures": {
  12. "jsx": true,
  13. "experimentalObjectRestSpread": true
  14. },
  15. "sourceType": "module"
  16. },
  17. "rules": {
  18. "no-const-assign": "error",
  19. "no-undef": "error",
  20. "no-unused-vars": "warn",
  21. "no-this-before-super": "warn",
  22. "no-unreachable": "warn",
  23. "constructor-super": "warn",
  24. "valid-typeof": "warn",
  25. "react-native/sort-styles": "off",
  26. "react-native/no-unused-styles": "warn",
  27. "react-native/split-platform-components": "warn",
  28. "react-native/no-inline-styles": "off",
  29. "react-native/no-color-literals": "off"
  30. },
  31. "plugins": [
  32. "react",
  33. "jsx-a11y",
  34. "react-native"
  35. ],
  36. "extends": [
  37. "eslint:recommended",
  38. "plugin:react/recommended",
  39. "plugin:react-native/all",
  40. "plugin:jsx-a11y/recommended"
  41. ]
  42. }