Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. {
  2. "env": {
  3. "browser": true,
  4. "es6": true,
  5. "node": true,
  6. "react-native/react-native": true,
  7. "jest/globals": true
  8. },
  9. "extends": "airbnb",
  10. "parser": "babel-eslint",
  11. "parserOptions": {
  12. "sourceType": "module",
  13. "ecmaFeatures": {
  14. "jsx": true
  15. }
  16. },
  17. "plugins": ["react", "react-native", "import", "jest"],
  18. "globals": {
  19. "__DEV__": true,
  20. "console": true,
  21. "alert": true
  22. },
  23. "rules": {
  24. "import/prefer-default-export": "off",
  25. "global-require": "off",
  26. "no-use-before-define": "off",
  27. "no-return-assign": "off",
  28. "no-console": "off",
  29. "radix": "off",
  30. "camelcase": "off",
  31. "prefer-template": "warn",
  32. "no-unused-vars": "warn",
  33. "no-underscore-dangle": "off",
  34. "object-curly-spacing": "warn",
  35. "import/first": "off",
  36. "class-methods-use-this": "off",
  37. "consistent-return": "off",
  38. "no-useless-constructor": "off",
  39. "arrow-parens": "warn",
  40. "implicit-arrow-linebreak": "off",
  41. "import/no-extraneous-dependencies": "off",
  42. "import/no-unresolved": "off",
  43. "import/extensions": "off",
  44. "prefer-const": "warn",
  45. "object-shorthand": "warn",
  46. "max-len": ["warn", 100],
  47. "jsx-a11y/accessible-emoji": "off",
  48. "nonblock-statement-body-position": ["warn", "below"],
  49. "comma-dangle": ["warn", "always-multiline"],
  50. "react/jsx-closing-bracket-location": ["warn", "after-props"],
  51. "react/jsx-one-expression-per-line": "off",
  52. "react/destructuring-assignment": "warn",
  53. "react/prefer-stateless-function": "warn",
  54. "react/no-did-mount-set-state": "off",
  55. "react/prop-types": "off",
  56. "react/no-array-index-key": "warn",
  57. "react/no-this-in-sfc": 0,
  58. "react/jsx-filename-extension": [
  59. "error",
  60. {
  61. "extensions": [".js", ".jsx"]
  62. }
  63. ],
  64. "react-native/no-unused-styles": "error",
  65. "react-native/split-platform-components": "warn",
  66. "react-native/no-color-literals": "warn",
  67. "react-native/no-raw-text": "error",
  68. "react-native/no-inline-styles": "warn"
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement