Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. {
  2. "extends": "eslint:recommended",
  3. "parser": "babel-eslint",
  4. "env": {
  5. "node": true,
  6. "mocha": true,
  7. "es6": true
  8. },
  9. "rules": {
  10. "import/default": 2,
  11. "import/export": 2,
  12. "import/imports-first": 2,
  13. "import/no-duplicates": 2,
  14. "import/named": 2,
  15. "import/namespace": 2,
  16. "import/no-unresolved": 2,
  17. "import/no-named-as-default": 0,
  18.  
  19. "react/no-deprecated": 2,
  20. "react/no-did-mount-set-state": 2,
  21. "react/no-did-update-set-state": 2,
  22. "react/no-direct-mutation-state": 2,
  23. "react/no-unknown-property": 2,
  24. "react/prefer-stateless-function": 0,
  25. "react/prop-types": [2],
  26. "react/react-in-jsx-scope": 2,
  27. "react/self-closing-comp": 2,
  28. "react/sort-comp": 1,
  29.  
  30. "react/jsx-boolean-value": [2, "always"],
  31. "react/jsx-closing-bracket-location": [2, "tag-aligned"],
  32. "react/jsx-equals-spacing": [2, "never"],
  33. "react/jsx-indent": [2, 2],
  34. "react/jsx-indent-props": [2, 2],
  35. "react/jsx-key": 2,
  36. "react/jsx-no-bind": 2,
  37. "react/jsx-no-duplicate-props": 2,
  38. "react/jsx-no-undef": 2,
  39. "react/jsx-space-before-closing": [2, "always"],
  40. "react/jsx-uses-react": 2,
  41. "react/jsx-uses-vars": 2,
  42.  
  43. "react-native/no-unused-styles": 2,
  44. "react-native/split-platform-components": 2,
  45.  
  46. "comma-dangle": [2, "never"],
  47. "consistent-return": 0,
  48. "indent": [2, 2, {"SwitchCase": 1}],
  49. "linebreak-style": [2, "unix"],
  50. "max-len": [2, 120, 4],
  51. "no-alert": 0,
  52. "no-console": 2,
  53. "no-param-reassign": [2, {"props": false}],
  54. "no-trailing-spaces": 2,
  55. "no-useless-constructor": 2,
  56. "no-unused-vars": [2, { "args": "none" }],
  57. "object-shorthand": [2, "always"],
  58. "semi": [2, "never"],
  59. "quotes": [2, "single"],
  60. "prefer-const": 2
  61. },
  62. "plugins": [
  63. "react", "import", "react-native"
  64. ],
  65. "settings": {
  66. "import/parser": "babel-eslint",
  67. "import/resolve": {
  68. "moduleDirectory": ["node_modules", "src"],
  69. },
  70. "import/ignore": ["\\.scss$", "node_modules", "\\.json$"],
  71. "import/resolver": {
  72. "node": {
  73. "extensions": [".js", ".android.js", "ios.js"]
  74. }
  75. }
  76. },
  77. "globals": {
  78. "__DEV__": true,
  79. "__CLIENT__": true,
  80. "__SERVER__": true,
  81. "__DISABLE_SSR__": true,
  82. "__DEVTOOLS__": true,
  83. "socket": true,
  84. "webpackIsomorphicTools": true
  85. },
  86. "parserOptions": {
  87. "ecmaFeatures": {
  88. "jsx": true,
  89. "experimentalObjectRestSpread": true,
  90. "modules": true
  91. }
  92. }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement