Epitech's Blih Repository Manager

.eslintrc 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. "ecmaFeatures": {
  3. "arrowFunctions": true,
  4. "binaryLiterals": true,
  5. "blockBindings": true,
  6. "classes": true,
  7. "defaultParams": true,
  8. "destructuring": true,
  9. "forOf": true,
  10. "generators": true,
  11. "globalReturn": true,
  12. "jsx": true,
  13. "modules": true,
  14. "objectLiteralComputedProperties": true,
  15. "objectLiteralDuplicatProperties": true,
  16. "objectLiteralShorthandMethods": true,
  17. "objectLiteralShorthandProperties": true,
  18. "octalLiterals": true,
  19. "regexUFlag": true,
  20. "regexYFlag": true,
  21. "restParams": true,
  22. "spread": true,
  23. "superInFunctions": true,
  24. "templateStrings": true,
  25. "unicodeCodePointEscapes": true
  26. },
  27. "env": {
  28. "browser": true,
  29. "es6": true,
  30. "node": true
  31. },
  32. "plugins": [
  33. "react"
  34. ],
  35. "rules": {
  36. "accessor-pairs": 2,
  37. "array-bracket-spacing": 2,
  38. "arrow-spacing": [2, { "before": true, "after": true }],
  39. "block-spacing": [2, "always"],
  40. "brace-style": [2, "stroustrup", { "allowSingleLine": true }],
  41. "camelcase": [2, { "properties": "always" }],
  42. "comma-dangle": 2,
  43. "comma-spacing": [2, { "before": false, "after": true }],
  44. "comma-style": [2, "last"],
  45. "computed-property-spacing": [2, "never"],
  46. "consistent-return": 2,
  47. "consistent-this": [2, "self"],
  48. "curly": [2, "multi-line"],
  49. "dot-location": [2, "property"],
  50. "eol-last": 2,
  51. "eqeqeq": 2,
  52. "generator-star-spacing": [2, { "before": false, "after": true }],
  53. "handle-callback-err": 2,
  54. "indent": [2, 2, { "SwitchCase": 1 }],
  55. "jsx-quotes": [2, "prefer-single"],
  56. "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
  57. "linebreak-style": [2, "unix"],
  58. "new-cap": 2,
  59. "new-parens": 2,
  60. "no-caller": 2,
  61. "no-class-assign": 2,
  62. "no-cond-assign": 2,
  63. "no-const-assign": 2,
  64. "no-constant-condition": 2,
  65. "no-control-regex": 2,
  66. "no-debugger": 2,
  67. "no-delete-var": 2,
  68. "no-dupe-args": 2,
  69. "no-dupe-class-members": 2,
  70. "no-dupe-keys": 2,
  71. "no-duplicate-case": 2,
  72. "no-else-return": 2,
  73. "no-empty": 2,
  74. "no-empty-character-class": 2,
  75. "no-eq-null": 2,
  76. "no-eval": 2,
  77. "no-ex-assign": 2,
  78. "no-extend-native": 2,
  79. "no-extra-bind": 2,
  80. "no-extra-boolean-cast": 2,
  81. "no-extra-semi": 2,
  82. "no-floating-decimal": 2,
  83. "no-func-assign": 2,
  84. "no-implicit-coercion": 2,
  85. "no-implied-eval": 2,
  86. "no-inner-declarations": 2,
  87. "no-invalid-regexp": 2,
  88. "no-invalid-this": 2,
  89. "no-irregular-whitespace": 2,
  90. "no-iterator": 2,
  91. "no-labels": 2,
  92. "no-lone-blocks": 2,
  93. "no-mixed-spaces-and-tabs": 2,
  94. "no-multi-spaces": 2,
  95. "no-multiple-empty-lines": 2,
  96. "no-native-reassign": 2,
  97. "no-negated-in-lhs": 2,
  98. "no-nested-ternary": 2,
  99. "no-new": 2,
  100. "no-new-func": 2,
  101. "no-new-object": 2,
  102. "no-new-wrappers": 2,
  103. "no-obj-calls": 2,
  104. "no-octal": 2,
  105. "no-param-reassign": 2,
  106. "no-process-env": 2,
  107. "no-proto": 2,
  108. "no-redeclare": 2,
  109. "no-regex-spaces": 2,
  110. "no-script-url": 2,
  111. "no-self-compare": 2,
  112. "no-sequences": 2,
  113. "no-spaced-func": 2,
  114. "no-sparse-arrays": 2,
  115. "no-this-before-super": 2,
  116. "no-throw-literal": 2,
  117. "no-trailing-spaces": 2,
  118. "no-undefined": 2,
  119. "no-underscore-dangle": 2,
  120. "no-unexpected-multiline": 2,
  121. "no-unneeded-ternary": 2,
  122. "no-unreachable": 2,
  123. "no-unused-expressions": 2,
  124. "no-unused-vars": 2,
  125. "no-useless-call": 2,
  126. "no-var": 2,
  127. "no-void": 2,
  128. "no-with": 2,
  129. "object-curly-spacing": [2, "always", { "objectsInObjects": true }],
  130. "object-shorthand": 2,
  131. "operator-linebreak": [2, "after"],
  132. "padded-blocks": [2, "never"],
  133. "prefer-arrow-callback": 2,
  134. "prefer-spread": 2,
  135. "prefer-template": 2,
  136. "quotes": [2, "single", "avoid-escape"],
  137. "radix": 2,
  138. "react/display-name": 2,
  139. "react/jsx-boolean-value": 2,
  140. "react/jsx-closing-bracket-location": 2,
  141. "react/jsx-curly-spacing": 2,
  142. "react/jsx-indent-props": [2, 2],
  143. "react/jsx-max-props-per-line": 2,
  144. "react/jsx-no-duplicate-props": 2,
  145. "react/jsx-no-undef": 2,
  146. "react/jsx-sort-prop-types": 2,
  147. "react/jsx-sort-props": 2,
  148. "react/jsx-uses-react": 2,
  149. "react/jsx-uses-vars": 2,
  150. "react/no-danger": 2,
  151. "react/no-did-mount-set-state": [2, 'allow-in-func'],
  152. "react/no-did-update-set-state": 2,
  153. "react/no-direct-mutation-state": 2,
  154. "react/no-multi-comp": 2,
  155. "react/no-unknown-property": 2,
  156. "react/prop-types": 2,
  157. "react/react-in-jsx-scope": 2,
  158. "react/require-extension": 2,
  159. "react/self-closing-comp": 2,
  160. "react/sort-comp": 2,
  161. "react/wrap-multilines": 2,
  162. "require-yield": 2,
  163. "semi": 2,
  164. "semi-spacing": [2, { "before": false, "after": true }],
  165. "space-after-keywords": [2, "always"],
  166. "space-before-blocks": [2, "always"],
  167. "space-before-function-paren": [2, "never"],
  168. "space-in-parens": [2, "never"],
  169. "space-infix-ops": 2,
  170. "space-return-throw-case": 2,
  171. "space-unary-ops": [2, { "words": true, "nonwords": false }],
  172. "spaced-comment": 2,
  173. "use-isnan": 2,
  174. "valid-typeof": 2,
  175. "vars-on-top": 2,
  176. "wrap-iife": 2
  177. }
  178. }