-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from keyko-io/setup/prettier
setup prettier
- Loading branch information
Showing
27 changed files
with
280 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module.exports = { | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended" | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, | ||
plugins: ['react-refresh'], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { ecmaVersion: "latest", sourceType: "module" }, | ||
plugins: ["react-refresh"], | ||
rules: { | ||
'react-refresh/only-export-components': 'warn', | ||
}, | ||
} | ||
"react-refresh/only-export-components": "warn" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": false, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "auto" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
autoprefixer: {} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,43 @@ | ||
import axios from "axios" | ||
import { SentryDataTypes, SentryDataPeriods, ChartDataResponse } from "../types" | ||
import { formatSentryURL } from "../utils" | ||
import { config } from "../config" | ||
import axios from "axios"; | ||
import { | ||
SentryDataTypes, | ||
SentryDataPeriods, | ||
ChartDataResponse | ||
} from "../types"; | ||
import { formatSentryURL } from "../utils"; | ||
import { config } from "../config"; | ||
|
||
export const fetchSentryData = async ( | ||
period: SentryDataPeriods, | ||
type: SentryDataTypes | ||
) => { | ||
try { | ||
const url = formatSentryURL(period, type) | ||
const response = await axios.get(url) | ||
const url = formatSentryURL(period, type); | ||
const response = await axios.get(url); | ||
|
||
return response.data | ||
return response.data; | ||
} catch (error) { | ||
console.error(error) | ||
return {} | ||
console.error(error); | ||
return {}; | ||
} | ||
} | ||
}; | ||
|
||
export const fetchSentryEvents = async (): Promise<ChartDataResponse> => { | ||
try { | ||
const response = await axios.get(`${config.apiUri}/stats/sentry/events`) | ||
return response.data | ||
const response = await axios.get(`${config.apiUri}/stats/sentry/events`); | ||
return response.data; | ||
} catch (error) { | ||
return {} | ||
return {}; | ||
} | ||
} | ||
}; | ||
|
||
export const getOpenBugsCount = async (): Promise<{ count: number }> => { | ||
try { | ||
const url = `${config.apiUri}/stats/bugs/open` | ||
const res = await axios.get(url) | ||
return res.data | ||
const url = `${config.apiUri}/stats/bugs/open`; | ||
const res = await axios.get(url); | ||
return res.data; | ||
} catch (error) { | ||
console.log(error) | ||
return { count: 0 } | ||
console.log(error); | ||
return { count: 0 }; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
interface Props { | ||
bgColor: string | ||
bgColor: string; | ||
} | ||
|
||
const Square = ({ bgColor }: Props) => { | ||
return <span className={`${bgColor} h-2 w-2 inline-block mr-1`}></span> | ||
} | ||
return <span className={`${bgColor} h-2 w-2 inline-block mr-1`}></span>; | ||
}; | ||
|
||
export default Square | ||
export default Square; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.