Prechádzať zdrojové kódy

Fix some ESLint issues (mostly spacing)

Sergiu Miclea 5 rokov pred
rodič
commit
60018b7224
3 zmenil súbory, kde vykonal 16 pridanie a 14 odobranie
  1. 1 1
      .githooks/pre-commit
  2. 13 13
      src/components/App.tsx
  3. 2 0
      src/stores/ProviderStore.ts

+ 1 - 1
.githooks/pre-commit

@@ -6,7 +6,7 @@
     "start": "node ./server",
     "build": "webpack --config webpack.prod.js",
     "ui-dev": "webpack-dev-server --config webpack.dev.js",
-    "server-dev": "nodemon -e ts,js -w server/**",
+    "server-dev": "nodemon -e ts,js -w server/**/",
     "server-debug": "node --inspect server",
     "tsc": "npx tsc --skipLibCheck",
     "eslint": "npx eslint -c .eslintrc \"src/**\" \"server/**\"",

+ 13 - 13
src/components/App.tsx

@@ -109,19 +109,19 @@ class App extends React.Component<{}, State> {
       showAuthAnimation?: boolean,
       showDenied?: boolean,
     }) => (
-        <Route
-          path={options.path}
-          exact={options.exact}
-          render={() => (
-            <MessagePage
-              title={options.title}
-              subtitle={options.subtitle}
-              showAuthAnimation={options.showAuthAnimation}
-              showDenied={options.showDenied}
-            />
-          )}
-        />
-      )
+      <Route
+        path={options.path}
+        exact={options.exact}
+        render={() => (
+          <MessagePage
+            title={options.title}
+            subtitle={options.subtitle}
+            showAuthAnimation={options.showAuthAnimation}
+            showDenied={options.showDenied}
+          />
+        )}
+      />
+    )
 
     const renderRoute = (path: string, component: any, exact?: boolean) => {
       if (!userStore.loggedUser) {

+ 2 - 0
src/stores/ProviderStore.ts

@@ -176,6 +176,7 @@ class ProviderStore {
   }
 
   loadOptionsSchemaLastReqId: string = ''
+
   loadOptionsSchemaLastDirection: 'source' | 'destination' | '' = ''
 
   @action async loadOptionsSchema(options: {
@@ -244,6 +245,7 @@ class ProviderStore {
   }
 
   getOptionsValuesLastReqId: string = ''
+
   getOptionsValuesLastDirection: 'source' | 'destination' | '' = ''
 
   async getOptionsValues(config: {