diff --git a/.eslintrc.js b/.eslintrc.js index f13e39a..c0410e5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,9 +21,9 @@ module.exports = { }, rules: { "@typescript-eslint/camelcase": ["off", { properties: "never" }], - "@typescript-eslint/quotes": ["error", "double"], + "@typescript-eslint/quotes": "off", camelcase: "off", - "comma-dangle": ["error", "never"], + "comma-dangle": "off", "no-extra-semi": 2, "no-irregular-whitespace": 2, "no-lonely-if": 2, diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a7b621..50a41d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,28 +4,28 @@ name: CI # Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [main] - pull_request: - branches: [main] + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [main] + pull_request: + branches: [main] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - - name: Build project - run: | - npm install - npm run build + - name: Build project + run: | + npm install + npm run build diff --git a/.prettierrc b/.prettierrc index b5f10b7..bb7c2e9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,27 +1,27 @@ { - "bracketSpacing": true, - "printWidth": 80, - "proseWrap": "preserve", - "semi": true, - "singleQuote": true, - "trailingComma": "all", - "tabWidth": 4, - "useTabs": true, - "arrowParens": "always", - "endOfLine": "lf", - "overrides": [ - { - "files": "*.json", - "options": { - "singleQuote": false - } - }, - { - "files": ".*rc", - "options": { - "singleQuote": false, - "parser": "json" - } - } - ] -} \ No newline at end of file + "bracketSpacing": true, + "printWidth": 80, + "proseWrap": "preserve", + "semi": true, + "singleQuote": true, + "trailingComma": "all", + "tabWidth": 4, + "useTabs": true, + "arrowParens": "always", + "endOfLine": "lf", + "overrides": [ + { + "files": "*.json", + "options": { + "singleQuote": false + } + }, + { + "files": ".*rc", + "options": { + "singleQuote": false, + "parser": "json" + } + } + ] +} diff --git a/next.config.js b/next.config.js index 6fa5aa5..5e3d601 100644 --- a/next.config.js +++ b/next.config.js @@ -1,13 +1,13 @@ const backends = { - local: "http://localhost:4000", - development: "https://dev.backend.tartanhacks.com", - staging: "https://stg.backend.tartanhacks.com", - production: "https://backend.tartanhacks.com" -} + local: 'http://localhost:4000', + development: 'https://dev.backend.tartanhacks.com', + staging: 'https://stg.backend.tartanhacks.com', + production: 'https://backend.tartanhacks.com', +}; module.exports = { - poweredByHeader: false, - reactStrictMode: false, - env: { - BACKEND_URL: backends[process.env.APP_ENV || "development"] - } -} + poweredByHeader: false, + reactStrictMode: false, + env: { + BACKEND_URL: backends[process.env.APP_ENV || 'development'], + }, +}; diff --git a/pages/_app.tsx b/pages/_app.tsx index fc9bd36..6badc4e 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,33 +1,33 @@ -import { StyledEngineProvider, ThemeProvider } from "@mui/material" -import type { AppProps } from "next/app" -import Head from "next/head" -import { ReactElement } from "react" -import { Provider } from "react-redux" -import Script from "next/script" -import store from "src/store" -import { theme } from "src/themes/theme" -import "styles/globals.scss" +import { StyledEngineProvider, ThemeProvider } from '@mui/material'; +import type { AppProps } from 'next/app'; +import Head from 'next/head'; +import { ReactElement } from 'react'; +import { Provider } from 'react-redux'; +import Script from 'next/script'; +import store from 'src/store'; +import { theme } from 'src/themes/theme'; +import 'styles/globals.scss'; const App = ({ Component, pageProps }: AppProps): ReactElement => { - return ( - <> -
-