diff --git a/.prettierignore b/.prettierignore index 3d50cd51d..3e5b7d2ea 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ node_modules/ build/ -.prettierrc \ No newline at end of file +.prettierrc +.yarn/ \ No newline at end of file diff --git a/interface/.eslintignore b/interface/.eslintignore index a76ed7f5c..13595478c 100644 --- a/interface/.eslintignore +++ b/interface/.eslintignore @@ -2,4 +2,5 @@ node_modules/ build/ .prettierrc .eslintrc.js +.yarn/ env.d.ts diff --git a/interface/.prettierignore b/interface/.prettierignore new file mode 100644 index 000000000..3e5b7d2ea --- /dev/null +++ b/interface/.prettierignore @@ -0,0 +1,4 @@ +node_modules/ +build/ +.prettierrc +.yarn/ \ No newline at end of file diff --git a/interface/.prettierrc b/interface/.prettierrc new file mode 100644 index 000000000..4197de585 --- /dev/null +++ b/interface/.prettierrc @@ -0,0 +1,8 @@ +{ + "trailingComma": "none", + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "printWidth": 120, + "bracketSpacing": true +} \ No newline at end of file diff --git a/interface/.typesafe-i18n.json b/interface/.typesafe-i18n.json index e90733f75..b3352c3f7 100644 --- a/interface/.typesafe-i18n.json +++ b/interface/.typesafe-i18n.json @@ -1,5 +1,5 @@ { - "adapter": "react", - "baseLocale": "pl", - "$schema": "https://unpkg.com/typesafe-i18n@5.24.1/schema/typesafe-i18n.json" -} \ No newline at end of file + "adapter": "react", + "baseLocale": "pl", + "$schema": "https://unpkg.com/typesafe-i18n@5.24.1/schema/typesafe-i18n.json" +} diff --git a/interface/src/SignIn.tsx b/interface/src/SignIn.tsx index 872ef156f..c19390c28 100644 --- a/interface/src/SignIn.tsx +++ b/interface/src/SignIn.tsx @@ -103,10 +103,12 @@ const SignIn: FC = () => { > {PROJECT_NAME} diff --git a/interface/src/components/upload/useFileUpload.ts b/interface/src/components/upload/useFileUpload.ts index 4ba9ff827..bf6d80a3f 100644 --- a/interface/src/components/upload/useFileUpload.ts +++ b/interface/src/components/upload/useFileUpload.ts @@ -7,7 +7,7 @@ import { FileUploadConfig } from 'api/endpoints'; import { useI18nContext } from 'i18n/i18n-react'; -interface MediaUploadOptions { +interface MediaUploadOptions { upload: (file: File, config?: FileUploadConfig) => AxiosPromise; }