Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. {
  2. "extends": ["airbnb-base", "plugin:react/recommended"],
  3. "parser": "babel-eslint",
  4. "env": {
  5. "es6": true,
  6. "node": true,
  7. "jest": true
  8. },
  9. "globals": {
  10. "i18n": true,
  11. "ResizeObserver": true,
  12. "window": true,
  13. "document": true
  14. },
  15. "settings": {
  16. "import/resolver": {
  17. "node": {
  18. "extensions": [".js", ".jsx"],
  19. "paths": ["src"]
  20. }
  21. },
  22. "react": {
  23. "createClass": "createReactClass",
  24. "pragma": "React",
  25. "version": "detect",
  26. "flowVersion": "0.53"
  27. },
  28. "propWrapperFunctions": [
  29. "forbidExtraProps",
  30. {
  31. "property": "freeze",
  32. "object": "Object"
  33. },
  34. {
  35. "property": "myFavoriteWrapper"
  36. }
  37. ],
  38. "linkComponents": [
  39. "Hyperlink",
  40. {
  41. "name": "Link",
  42. "linkAttribute": "to"
  43. }
  44. ]
  45. },
  46. "rules": {
  47. "arrow-parens": 0,
  48. "array-bracket-spacing": [2, "never"],
  49. "arrow-body-style": [2, "as-needed"],
  50. "class-methods-use-this": 0,
  51. "comma-dangle": [2, "never"],
  52. "eqeqeq": [2, "always"],
  53. "func-names": [2, "never"],
  54. "global-require": 0,
  55. "id-blacklist": [2, "a", "b", "c", "cb", "e", "x", "y"],
  56. "import/extensions": [2, "never"],
  57. "import/no-absolute-path": 0,
  58. "import/no-extraneous-dependencies": 0,
  59. "import/no-named-as-default-member": 0,
  60. "import/no-named-as-default": 0,
  61. "import/order": [
  62. 2,
  63. {
  64. "groups": [
  65. "builtin",
  66. "external",
  67. "internal",
  68. "parent",
  69. "sibling",
  70. "index"
  71. ],
  72. "newlines-between": "never"
  73. }
  74. ],
  75. "indent": ["error", "tab", { "SwitchCase": 1 }],
  76. "linebreak-style": [2, "unix"],
  77. "max-classes-per-file": [2, 1],
  78. "max-depth": [
  79. 2,
  80. {
  81. "max": 4
  82. }
  83. ],
  84. "max-len": [
  85. 2,
  86. {
  87. "code": 120,
  88. "ignoreComments": true,
  89. "ignoreStrings": true,
  90. "ignoreTemplateLiterals": true
  91. }
  92. ],
  93. "max-params": [2, 4],
  94. "no-await-in-loop": 0,
  95. "no-bitwise": [
  96. 2,
  97. {
  98. "allow": ["|", "~"]
  99. }
  100. ],
  101. "no-cond-assign": 2,
  102. "no-console": [
  103. 2,
  104. {
  105. "allow": ["error"]
  106. }
  107. ],
  108. "no-debugger": 2,
  109. "no-dupe-args": 2,
  110. "no-dupe-keys": 2,
  111. "no-duplicate-imports": 2,
  112. "no-empty-pattern": 0,
  113. "no-eval": 2,
  114. "no-extra-boolean-cast": 2,
  115. "no-magic-numbers": [
  116. 2,
  117. {
  118. "ignore": [-1, 0, 1, 42]
  119. }
  120. ],
  121. "no-multi-spaces": 2,
  122. "no-multiple-empty-lines": [
  123. 2,
  124. {
  125. "max": 1,
  126. "maxEOF": 1
  127. }
  128. ],
  129. "no-plusplus": 0,
  130. "no-proto": 2,
  131. "no-sequences": 0,
  132. "no-tabs": 0,
  133. "no-throw-literal": 0,
  134. "no-underscore-dangle": 0,
  135. "object-curly-spacing": [2, "always"],
  136. "radix": [2, "as-needed"],
  137. "react/jsx-no-bind": 0,
  138. "react/jsx-uses-react": 2,
  139. "react/jsx-uses-vars": 2,
  140. "require-jsdoc": [
  141. 2,
  142. {
  143. "require": {
  144. "FunctionDeclaration": true,
  145. "MethodDefinition": false,
  146. "ClassDeclaration": false,
  147. "ArrowFunctionExpression": false,
  148. "FunctionExpression": false
  149. }
  150. }
  151. ],
  152. "semi": [2, "always"],
  153. "space-before-blocks": 2,
  154. "space-before-function-paren": [2, "never"],
  155. "strict": 0,
  156. "valid-typeof": 0
  157. }
  158. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement