Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.76 KB | None | 0 0
  1. {
  2. "extends": ["prettier"],
  3. "parserOptions": {
  4. "ecmaVersion": 6,
  5. "sourceType": "module",
  6. "ecmaFeatures": {
  7. "modules": true,
  8. "arrowFunctions": true,
  9. "binaryLiterals": false,
  10. "blockBindings": true,
  11. "classes": true,
  12. "defaultParams": true,
  13. "destructuring": true,
  14. "forOf": true,
  15. "generators": true,
  16. "objectLiteralComputedProperties": true,
  17. "objectLiteralDuplicateProperties": false,
  18. "objectLiteralShorthandMethods": true,
  19. "objectLiteralShorthandProperties": true,
  20. "octalLiterals": false,
  21. "regexUFlag": false,
  22. "regexYFlag": false,
  23. "restParams": true,
  24. "spread": true,
  25. "superInFunctions": true,
  26. "templateStrings": true,
  27. "unicodePointEscapes": true,
  28. "globalReturn": false,
  29. "jsx": true
  30. }
  31. },
  32. "env": {
  33. "browser": true,
  34. "node": true
  35. },
  36. "parser": "babel-eslint",
  37. "plugins": ["babel", "react", "prettier"],
  38. "rules": {
  39. /*Possible Errors */
  40. "comma-dangle": [1, "always-multiline"],
  41. "no-cond-assign": [1, "except-parens"],
  42. "no-console": 0,
  43. "no-constant-condition": 1,
  44. "no-control-regex": 1,
  45. "no-debugger": 1,
  46. "no-dupe-args": 1,
  47. "no-dupe-keys": 1,
  48. "no-duplicate-case": 0,
  49. "no-empty-character-class": 1,
  50. "no-empty": 1,
  51. "no-ex-assign": 1,
  52. "no-extra-boolean-cast": 1,
  53. "no-extra-parens": 0,
  54. "no-extra-semi": 1,
  55. "no-func-assign": 1,
  56. "no-inner-declarations": [1, "functions"],
  57. "no-invalid-regexp": 1,
  58. "no-irregular-whitespace": 1,
  59. "no-negated-in-lhs": 1,
  60. "no-obj-calls": 1,
  61. "no-regex-spaces": 1,
  62. "no-reserved-keys": 0,
  63. "no-sparse-arrays": 1,
  64. "no-unexpected-multiline": 1,
  65. "no-unreachable": 1,
  66. "use-isnan": 1,
  67. "valid-jsdoc": 1,
  68. "valid-typeof": 1,
  69.  
  70. /* Best Practices */
  71. "accessor-pairs": 0,
  72. "block-scoped-var": 0, // see Babel section
  73. "complexity": 0,
  74. "consistent-return": 1,
  75. "curly": [1, "all"],
  76. "default-case": 0,
  77. "dot-notation": [1, { "allowKeywords": true, "allowPattern": "" }],
  78. "dot-location": [1, "property"],
  79. "eqeqeq": 1,
  80. "guard-for-in": 0,
  81. "no-alert": 1,
  82. "no-caller": 1,
  83. "no-div-regex": 1,
  84. "no-else-return": 1,
  85. "no-eq-null": 0,
  86. "no-eval": 1,
  87. "no-extend-native": 1,
  88. "no-extra-bind": 1,
  89. "no-fallthrough": 0,
  90. "no-floating-decimal": 1,
  91. "no-implied-eval": 1,
  92. "no-iterator": 1,
  93. "no-labels": 1,
  94. "no-lone-blocks": 1,
  95. "no-loop-func": 1,
  96. "no-multi-spaces": 1,
  97. "no-multi-str": 1,
  98. "no-native-reassign": 1,
  99. "no-new-func": 1,
  100. "no-new-wrappers": 1,
  101. "no-new": 1,
  102. "no-octal-escape": 1,
  103. "no-octal": 1,
  104. "no-param-reassign": 0,
  105. "no-process-env": 0,
  106. "no-proto": 1,
  107. "no-redeclare": 1,
  108. "no-return-assign": 1,
  109. "no-script-url": 1,
  110. "no-self-compare": 1,
  111. "no-sequences": 1,
  112. "no-throw-literal": 1,
  113. "no-unused-expressions": 0,
  114. "no-void": 0,
  115. "no-warning-comments": [
  116. 0,
  117. { "terms": ["todo", "tofix"], "location": "start" }
  118. ],
  119. "no-with": 1,
  120. "radix": 1,
  121. "vars-on-top": 1,
  122. "wrap-iife": [1, "inside"],
  123. "yoda": [1, "never"],
  124.  
  125. /* Strict Mode */
  126. "strict": [1, "never"],
  127.  
  128. /* Variables */
  129. "no-catch-shadow": 0,
  130. "no-delete-var": 1,
  131. "no-label-var": 1,
  132. "no-shadow-restricted-names": 1,
  133. "no-shadow": 1,
  134. "no-undef-init": 1,
  135. "no-undef": 1,
  136. "no-undefined": 0,
  137. "no-unused-vars": [1, { "vars": "local", "args": "after-used" }],
  138. "no-use-before-define": 1,
  139.  
  140. /* Node.js */
  141. "handle-callback-err": 1,
  142. "no-mixed-requires": 1,
  143. "no-new-require": 1,
  144. "no-path-concat": 1,
  145. "no-process-exit": 1,
  146. "no-restricted-modules": [1, ""], // add any unwanted Node.js core modules
  147. "no-sync": 1,
  148.  
  149. /* Stylistic Issues */
  150. "array-bracket-spacing": [1, "never"],
  151. "brace-style": [1, "stroustrup", { "allowSingleLine": true }],
  152. "camelcase": [1, { "properties": "always" }],
  153. "comma-spacing": [1, { "before": false, "after": true }],
  154. "comma-style": [1, "last"],
  155. "computed-property-spacing": 0,
  156. "consistent-this": 0,
  157. "eol-last": 1,
  158. "func-names": 1,
  159. "func-style": 0,
  160. "indent": [1, 4],
  161. "key-spacing": [1, { "beforeColon": false, "afterColon": true }],
  162. "linebreak-style": 0,
  163. "max-nested-callbacks": [0, 3],
  164. "new-cap": 0, // see Babel section
  165. "new-parens": 1,
  166. "newline-after-var": 0,
  167. "no-array-constructor": 1,
  168. "no-continue": 1,
  169. "no-inline-comments": 0,
  170. "no-lonely-if": 1,
  171. "no-mixed-spaces-and-tabs": 1,
  172. "no-multiple-empty-lines": [1, { "max": 1 }],
  173. "no-nested-ternary": 0,
  174. "no-new-object": 1,
  175. "no-spaced-func": 1,
  176. "no-ternary": 0,
  177. "no-trailing-spaces": 1,
  178. "no-underscore-dangle": 0,
  179. "no-unneeded-ternary": 1,
  180. "object-curly-spacing": 0, // see Babel section
  181. "one-var": [1, "never"],
  182. "operator-assignment": [0, "never"],
  183. "padded-blocks": [0, "never"],
  184. "quote-props": [0, "as-needed"],
  185. "quotes": [1, "single"],
  186. "semi-spacing": [1, { "before": false, "after": true }],
  187. "semi": [1, "always"],
  188. "sort-vars": 0,
  189. "space-after-keywords": 0,
  190. "space-before-blocks": [1, "always"],
  191. "space-before-function-paren": [1, "never"],
  192. "space-in-parens": [1, "never"],
  193. "space-infix-ops": 1,
  194. "keyword-spacing": 1,
  195. "space-unary-ops": 0,
  196. "spaced-comment": [1, "always"],
  197. "wrap-regex": 1,
  198.  
  199. /* ECMAScript 6 */
  200. "constructor-super": 1,
  201. "generator-star-spacing": 0, // see Babel section
  202. "no-this-before-super": 1,
  203. "no-var": 1,
  204. "object-shorthand": 0, // see Babel section
  205. "prefer-const": 1,
  206.  
  207. /* Legacy */
  208. "max-depth": [0, 3],
  209. "max-len": [1, 120, 2],
  210. "max-params": 0,
  211. "max-statements": 0,
  212. "no-bitwise": 1,
  213. "no-plusplus": 0,
  214.  
  215. /* Babel */
  216. // "babel/block-scoped-var": 1,
  217. "babel/object-shorthand": [1, "always"],
  218. // "babel/generator-star": 1, // deprecated
  219. "babel/generator-star-spacing": [1, "after"],
  220. "babel/new-cap": 1,
  221. "babel/object-curly-spacing": [1, "always"],
  222. // "babel/space-in-brackets": 1, // deprecated
  223.  
  224. /* React */
  225. "react/display-name": 1,
  226. "react/jsx-boolean-value": 1,
  227. "react/jsx-no-duplicate-props": 1,
  228. "react/jsx-no-undef": 1,
  229. "react/jsx-sort-props": 0,
  230. "react/jsx-uses-react": 1,
  231. "react/jsx-uses-vars": 1,
  232. "react/no-danger": 1,
  233. "react/no-did-mount-set-state": 1,
  234. "react/no-did-update-set-state": 1,
  235. "react/no-multi-comp": 1,
  236. "react/no-unknown-property": 1,
  237. "react/prop-types": 1,
  238. "react/react-in-jsx-scope": 1,
  239. "react/self-closing-comp": 1,
  240. "react/sort-comp": 1,
  241. "react/wrap-multilines": 0,
  242. "react/jsx-first-prop-new-line": [1, "multiline"],
  243. "react/jsx-max-props-per-line": [
  244. "error",
  245. { "maximum": 1, "when": "always" }
  246. ],
  247. "react/jsx-closing-bracket-location": ["error", "tag-aligned"]
  248. }
  249. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement