Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.36 KB | None | 0 0
  1. {
  2. "env": {
  3. "browser": true,
  4. "commonjs": true,
  5. "es6": true,
  6. "node": true
  7. },
  8. "parserOptions": {
  9. "ecmaFeatures": {
  10. "jsx": true
  11. },
  12. "sourceType": "module"
  13. },
  14. "parser": "babel-eslint",
  15. "rules": {
  16. "strict": [2, "never"],
  17. "eqeqeq": 2,
  18. "array-bracket-spacing": 2,
  19. "func-names": 2,
  20. "no-bitwise": 2,
  21. "radix": 2,
  22. "comma-style": [2, "last"],
  23. "keyword-spacing": 2,
  24. "no-trailing-spaces": 1,
  25. "no-nested-ternary": 2,
  26. "no-mixed-spaces-and-tabs": 2,
  27. "semi-spacing": 2,
  28. "space-before-blocks": 2,
  29. "space-infix-ops": 2,
  30. "operator-linebreak": [2, "after"],
  31. "no-console": 0,
  32. "no-undef": 2,
  33. "no-undefined": 0,
  34. "no-unused-vars": [1, { "args": "none" }],
  35. "semi": [2, "always"],
  36. "no-extra-semi": 2,
  37. "comma-dangle": 2,
  38. "no-cond-assign": 2,
  39. "no-control-regex": 2,
  40. "no-dupe-args": 2,
  41. "no-dupe-keys": 2,
  42. "no-duplicate-case": 2,
  43. "no-empty": 1,
  44. "no-ex-assign": 2,
  45. "no-func-assign": 2,
  46. "no-inner-declarations": 2,
  47. "no-irregular-whitespace": 2,
  48. "no-negated-in-lhs": 2,
  49. "no-obj-calls": 2,
  50. "no-sparse-arrays": 2,
  51. "no-unexpected-multiline": 2,
  52. "no-unreachable": 1,
  53. "use-isnan": 2,
  54. "valid-jsdoc": [1, {
  55. "requireParamDescription": false,
  56. "requireReturnDescription": false
  57. }],
  58. "valid-typeof": 1,
  59. "block-scoped-var": 1,
  60. "curly": 2,
  61. "default-case": 1,
  62. "no-floating-decimal": 2,
  63. "no-lone-blocks": 1,
  64. "no-loop-func": 2,
  65. "no-multi-spaces": 2,
  66. "no-octal": 2,
  67. "no-param-reassign": [2, { "props": false }],
  68. "no-redeclare": 2,
  69. "no-sequences": 2,
  70. "no-with": 2,
  71. "no-shadow-restricted-names": 1,
  72. "new-cap": 1,
  73. "new-parens": 1,
  74.  
  75. "arrow-body-style": [2, "as-needed"],
  76. "arrow-parens": [2, "always"],
  77. "arrow-spacing": 2,
  78. "constructor-super": 2,
  79. "no-const-assign": 2,
  80. "no-dupe-class-members": 2,
  81. "no-this-before-super": 2,
  82. "no-var": 1,
  83. "object-shorthand": 1,
  84. "prefer-arrow-callback": 0,
  85. "no-empty-pattern": 2,
  86. "no-fallthrough": 2,
  87. "no-invalid-this": 0,
  88. "generator-star-spacing": 1,
  89.  
  90. /*
  91. The babel/generator-star-spacing rule is deprecated. Please use the built in generator-star-spacing rule instead.
  92. The babel/object-shorthand rule is deprecated. Please use the built in object-shorthand rule instead.
  93. The babel/arrow-parens rule is deprecated. Please use the built in arrow-parens rule instead.
  94. */
  95. "babel/new-cap": 1,
  96. "no-await-in-loop": 1,
  97. "babel/no-invalid-this": 2,
  98.  
  99. "react/display-name": 0,
  100. "react/forbid-prop-types": 2,
  101. "react/jsx-boolean-value": 0, //2
  102. "react/jsx-closing-bracket-location": 0,
  103. "react/jsx-curly-spacing": 2,
  104. "react/jsx-handler-names": 0,
  105. "react/jsx-key": 2,
  106. "react/jsx-max-props-per-line": 0,
  107. "react/jsx-no-bind": [2, {"allowArrowFunctions": true}],
  108. "react/jsx-no-duplicate-props": 2,
  109. "react/jsx-no-literals": 0,
  110. "react/jsx-no-undef": 2,
  111. "react/jsx-pascal-case": 0,
  112. "react/jsx-sort-props": 0,
  113. "react/jsx-uses-react": 2,
  114. "react/jsx-uses-vars": 2,
  115. "react/no-danger": 2,
  116. "react/no-did-mount-set-state": 2,
  117. "react/no-did-update-set-state": 2,
  118. "react/no-direct-mutation-state": 2,
  119. "react/no-multi-comp": 0,
  120. "react/no-set-state": 0,
  121. "react/no-unknown-property": 2,
  122. "react/prefer-es6-class": 2,
  123. "react/prop-types": 0,
  124. "react/react-in-jsx-scope": 2,
  125. "react/self-closing-comp": 2,
  126. "react/sort-comp": 2,
  127. "react/sort-prop-types": 2,
  128. "react/wrap-multilines": 0,
  129.  
  130. "import/export": 2,
  131. "import/imports-first": 2,
  132. "import/order": 1,
  133. "import/default": 1,
  134. "import/no-unresolved": 1,
  135. "import/named": 1,
  136. "import/namespace": [2, { "allowComputed": false }],
  137.  
  138. /* new set */
  139. "accessor-pairs": 1,
  140. "array-callback-return": 1,
  141. "babel/object-curly-spacing": 0,
  142. "block-spacing": 0,
  143. "brace-style": 0,
  144. "callback-return": 1,
  145. "camelcase": 1,
  146. "class-methods-use-this": 0,
  147. "comma-spacing": 1,
  148. "complexity": 1,
  149. "computed-property-spacing": 1,
  150. "consistent-return": 0,
  151. "consistent-this": 1,
  152. "dot-location": 0,
  153. "dot-notation": 1,
  154. "eol-last": 0,
  155. "func-call-spacing": 1,
  156. "func-name-matching": 1,
  157. "func-style": 0,
  158. "global-require": 1,
  159. "guard-for-in": 1,
  160. "handle-callback-err": 1,
  161. "id-blacklist": 1,
  162. "id-length": 0,
  163. "id-match": 1,
  164. "import/extensions": 1,
  165. "import/max-dependencies": 0,
  166. "import/newline-after-import": 0,
  167. "import/no-absolute-path": 1,
  168. "import/no-amd": 1,
  169. "import/no-commonjs": 1,
  170. "import/no-deprecated": 1,
  171. "import/no-duplicates": 1,
  172. "import/no-dynamic-require": 1,
  173. "import/no-extraneous-dependencies": 1,
  174. "import/no-internal-modules": 0,
  175. "import/no-mutable-exports": 1,
  176. "import/no-named-as-default": 1,
  177. "import/no-named-as-default-member": 1,
  178. "import/no-namespace": 0,
  179. "import/no-nodejs-modules": 0,
  180. "import/no-restricted-paths": 1,
  181. "import/prefer-default-export": 1,
  182. "init-declarations": 0,
  183. "jsx-quotes": 0,
  184. "key-spacing": 1,
  185. "line-comment-position": 0,
  186. "linebreak-style": 0,
  187. "lines-around-comment": 0,
  188. "lines-around-directive": 1,
  189. "max-depth": 1,
  190. "max-len": 0,
  191. "max-lines": 0,
  192. "max-nested-callbacks": 1,
  193. "max-params": 1,
  194. "max-statements": 0,
  195. "max-statements-per-line": 1,
  196. "multiline-ternary": 0,
  197. "newline-after-var": 0,
  198. "newline-before-return": 0,
  199. "newline-per-chained-call": 0,
  200. "no-alert": 1,
  201. "no-array-constructor": 1,
  202. "no-caller": 1,
  203. "no-case-declarations": 0,
  204. "no-catch-shadow": 1,
  205. "no-class-assign": 1,
  206. "no-confusing-arrow": [1, {"allowParens": true}],
  207. "no-constant-condition": 1,
  208. "no-continue": 1,
  209. "no-debugger": 1,
  210. "no-delete-var": 1,
  211. "no-div-regex": 1,
  212. "no-duplicate-imports": 1,
  213. "no-else-return": 0,
  214. "no-empty-character-class": 1,
  215. "no-empty-function": 0,
  216. "no-eq-null": 1,
  217. "no-eval": 1,
  218. "no-extend-native": 1,
  219. "no-extra-bind": 1,
  220. "no-extra-boolean-cast": 1,
  221. "no-extra-label": 1,
  222. "no-extra-parens": 0,
  223. "no-global-assign": 1,
  224. "no-implicit-coercion": 0,
  225. "no-implicit-globals": 1,
  226. "no-implied-eval": 1,
  227. "no-inline-comments": 0,
  228. "no-invalid-regexp": 1,
  229. "no-iterator": 1,
  230. "no-label-var": 1,
  231. "no-labels": 1,
  232. "no-lonely-if": 1,
  233. "no-magic-numbers": 0,
  234. "no-mixed-operators": 0,
  235. "no-mixed-requires": 1,
  236. "no-multi-str": 1,
  237. "no-multiple-empty-lines": 0,
  238. "no-native-reassign": 1,
  239. "no-negated-condition": 0,
  240. "no-new": 1,
  241. "no-new-func": 1,
  242. "no-new-object": 1,
  243. "no-new-require": 1,
  244. "no-new-symbol": 1,
  245. "no-new-wrappers": 1,
  246. "no-octal-escape": 1,
  247. "no-path-concat": 1,
  248. "no-plusplus": [1, { "allowForLoopAfterthoughts": true }],
  249. "no-process-env": 0,
  250. "no-process-exit": 1,
  251. "no-proto": 1,
  252. "no-prototype-builtins": 1,
  253. "no-regex-spaces": 1,
  254. "no-restricted-globals": 1,
  255. "no-restricted-imports": 1,
  256. "no-restricted-modules": 1,
  257. "no-restricted-properties": 1,
  258. "no-restricted-syntax": 1,
  259. "no-return-assign": 0,
  260. "no-return-await": 1,
  261. "no-script-url": 1,
  262. "no-self-assign": 1,
  263. "no-self-compare": 1,
  264. "no-shadow": 0,
  265. "no-spaced-func": 1,
  266. "no-sync": 1,
  267. "no-tabs": 1,
  268. "no-template-curly-in-string": 1,
  269. "no-ternary": 0,
  270. "no-throw-literal": 1,
  271. "no-undef-init": 1,
  272. "no-underscore-dangle": 0,
  273. "no-unmodified-loop-condition": 1,
  274. "no-unneeded-ternary": 1,
  275. "no-unsafe-finally": 1,
  276. "no-unsafe-negation": 1,
  277. "no-unused-expressions": 1,
  278. "no-unused-labels": 1,
  279. "no-use-before-define": 0, //1
  280. "no-useless-call": 1,
  281. "no-useless-computed-key": 1,
  282. "no-useless-concat": 1,
  283. "no-useless-constructor": 1,
  284. "no-useless-escape": 1,
  285. "no-useless-rename": 1,
  286. "no-useless-return": 1,
  287. "no-void": 1,
  288. "no-warning-comments": 0,
  289. "no-whitespace-before-property": 1,
  290. "object-curly-newline": 0,
  291. "object-curly-spacing": 0,
  292. "object-property-newline": 0,
  293. "one-var": 0,
  294. "one-var-declaration-per-line": 1,
  295. "operator-assignment": 0,
  296. "padded-blocks": 0,
  297. "prefer-const": [1, {
  298. "destructuring": "all",
  299. "ignoreReadBeforeAssign": true
  300. }],
  301. "prefer-numeric-literals": 1,
  302. "prefer-reflect": 0,
  303. "prefer-rest-params": 1,
  304. "prefer-spread": 1,
  305. "prefer-template": 0,
  306. "quote-props": 0,
  307. "quotes": 0,
  308. "react/forbid-component-props": 0,
  309. "react/jsx-equals-spacing": 1,
  310. "react/jsx-filename-extension": 0,
  311. "react/jsx-first-prop-new-line": 1,
  312.  
  313. "react/jsx-no-comment-textnodes": 1,
  314. "react/jsx-no-target-blank": 1,
  315. "react/jsx-tag-spacing": 0,
  316. "react/jsx-wrap-multilines": 0,
  317. "react/no-children-prop": 1,
  318. "react/no-danger-with-children": 1,
  319. "react/no-deprecated": 1,
  320. "react/no-find-dom-node": 1,
  321. "react/no-is-mounted": 1,
  322. "react/no-render-return-value": 1,
  323. "react/no-string-refs": 1,
  324. "react/no-unescaped-entities": 1,
  325. "react/no-unused-prop-types": 1,
  326. "react/prefer-stateless-function": 0,
  327. "react/require-optimization": 0,
  328. "react/require-render-return": 1,
  329. "react/style-prop-object": 1,
  330. "require-jsdoc": 0,
  331. "require-yield": 1,
  332. "rest-spread-spacing": 1,
  333. "sort-imports": 0,
  334. "sort-keys": 0,
  335. "sort-vars": 1,
  336. "space-before-function-paren": 0,
  337. "space-in-parens": 0,
  338. "space-unary-ops": 1,
  339. "spaced-comment": 0,
  340. "symbol-description": 1,
  341. "template-curly-spacing": 1,
  342. "unicode-bom": 1,
  343. "vars-on-top": 1,
  344. "wrap-iife": 1,
  345. "wrap-regex": 1,
  346. "yield-star-spacing": 1,
  347. "yoda": 1,
  348. "capitalized-comments": 0,
  349. "no-await-in-loop": 1,
  350. "react/no-array-index-key": 1,
  351. "react/require-default-props": 0,
  352. "require-await": 2,
  353.  
  354. /*"react/jsx-indent": [1, 2],*/
  355. "react/jsx-indent": [1, 2],
  356. "react/jsx-indent-props": [1, 2],
  357. //react/jsx-tag-spacing-beforeSelfClosing": 1,
  358. "indent": [2, 2, {"SwitchCase": 1}]
  359. },
  360. "plugins": [
  361. "babel",
  362. "react",
  363. "react-native",
  364. "import"
  365. ]
  366.  
  367. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement