From f8b3adc4e2d84e7a216dcd47a22adfb5dd292a8f Mon Sep 17 00:00:00 2001
From: Fedor Katurov <gotham48@gmail.com>
Date: Tue, 8 Oct 2019 16:31:57 +0700
Subject: [PATCH] fixed eslintrc

---
 .eslintrc.js          | 47 +++++++++++++++++++++++++++++++------------
 src/redux/auth/api.ts |  8 +-------
 2 files changed, 35 insertions(+), 20 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 9a6abfaa..83f07183 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,5 +1,11 @@
 module.exports = {
-  extends: ['plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'airbnb', 'airbnb-base'],
+  extends: [
+    'plugin:@typescript-eslint/recommended',
+    'prettier/@typescript-eslint',
+    'airbnb',
+    'airbnb-base',
+    'prettier',
+  ],
   parser: '@typescript-eslint/parser',
   parserOptions: {
     ecmaFeatures: {
@@ -25,6 +31,18 @@ module.exports = {
     'global-require': 1,
     'react/no-multi-comp': 1,
     'react/jsx-filename-extension': 0,
+    'react/jsx-wrap-multilines': [
+      'warn',
+      {
+        declaration: 'parens',
+        assignment: 'parens',
+        return: 'parens',
+        arrow: 'parens',
+        condition: 'ignore',
+        logical: 'ignore',
+        prop: 'ignore',
+      },
+    ],
     '@typescript-eslint/camelcase': 0,
     '@typescript-eslint/interface-name-prefix': 0,
     camelcase: 0,
@@ -43,18 +61,21 @@ module.exports = {
     'max-line-length': [true, 100],
     // 'max-len': 100,
     // 'max-len': { "code": 100 },
-    'max-len': ["warn", { "code": 100 }],
-    "template-curly-spacing": "off",
-    "comma-dangle": ["warn", {
-      "arrays": "always-multiline",
-      "objects": "always-multiline",
-      "imports": "always-multiline",
-      "exports": "always-multiline",
-      "functions": "never"
-    }],
-    indent: "off",
-    "import/order": "off",
-    "arrow-parens": ["warn", "as-needed"],
+    'max-len': ['warn', { code: 100 }],
+    'template-curly-spacing': 'off',
+    'comma-dangle': [
+      'warn',
+      {
+        arrays: 'always-multiline',
+        objects: 'always-multiline',
+        imports: 'always-multiline',
+        exports: 'always-multiline',
+        functions: 'never',
+      },
+    ],
+    indent: 'off',
+    'import/order': 'off',
+    'arrow-parens': ['warn', 'as-needed'],
   },
   globals: {
     document: false,
diff --git a/src/redux/auth/api.ts b/src/redux/auth/api.ts
index 7a73ba9a..fcb8fce1 100644
--- a/src/redux/auth/api.ts
+++ b/src/redux/auth/api.ts
@@ -1,10 +1,4 @@
-import {
-  api,
-  authMiddleware,
-  errorMiddleware,
-  resultMiddleware,
-  configWithToken,
-} from '~/utils/api';
+import { api, errorMiddleware, resultMiddleware, configWithToken } from '~/utils/api';
 import { API } from '~/constants/api';
 import { IResultWithStatus } from '~/redux/types';
 import { userLoginTransform } from '~/redux/auth/transforms';