Skip to content

Commit

Permalink
ci: tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
FusiDaniel committed Oct 31, 2023
1 parent 39571f3 commit d65559f
Show file tree
Hide file tree
Showing 15 changed files with 157 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
command: ['test', 'lint']
command: ['test', 'lint', 'tsc']

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 4 additions & 3 deletions apps/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
"test": "vitest run --coverage",
"test:watch": "vitest --coverage",
"lint": "vue-cli-service lint",
"lint:fix": "vue-cli-service lint --fix"
"lint:fix": "vue-cli-service lint --fix",
"tsc": "tsc --noEmit"
},
"dependencies": {
"@amcharts/amcharts5": "^5.5.2",
"@mdi/font": "^7.3.67",
"@tanstack/query-core": "^5.0.5",
"@tanstack/vue-query": "5.4.1",
"@tanstack/query-core": "5.4.3",
"@tanstack/vue-query": "5.4.3",
"axios": "^1.6.0",
"core-js": "3.33.1",
"element-plus": "2.4.1",
Expand Down
6 changes: 2 additions & 4 deletions apps/container/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ declare global {
}

const queryClient = new QueryClientVue({
// eslint-disable-next-line @typescript-eslint/no-explicit-any
queryCache: client.getQueryCache() as any,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
defaultOptions: client.getDefaultOptions() as any,
queryCache: client.getQueryCache(),
defaultOptions: client.getDefaultOptions(),
});

createApp(App)
Expand Down
7 changes: 3 additions & 4 deletions apps/container/src/components/SubjectReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,8 @@ td {
outline: 1px solid white;
}
.order-button {
&:hover {
color: #56cdb7;
.order-button:hover {
color: rgb(var(--v-theme-ufabcnext-green));
}
}
</style>
6 changes: 3 additions & 3 deletions apps/container/src/views/Performance/PerformanceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const areaGraphOptions = {
};
const { data: crHistoryData, isPending: isPendingCrHistory } = useQuery({
queryKey: ['crHistory'],
queryKey: ['users', 'me', 'grades'],
queryFn: Performance.getCrHistory,
select: (response) => response.data,
});
Expand Down Expand Up @@ -127,7 +127,7 @@ const crHistoryOptions = ref({
const currentCpCourse = ref<CourseInformation>();
const { data: cpHistoryData, isPending: isPendingCpHistory } = useQuery({
queryKey: ['cpHistory'],
queryKey: ['historiesGraduations'],
queryFn: Performance.getHistoriesGraduations,
select: (response) => {
currentCpCourse.value = response.data.docs[0];
Expand Down Expand Up @@ -179,7 +179,7 @@ const cpHistoryOptions = ref({
const { data: crDistributionData, isPending: isPendingCrDistributionData } =
useQuery({
queryKey: ['crDistribution'],
queryKey: ['stats', 'grades'],
queryFn: Performance.getCrDistribution,
select: (response) => response.data,
});
Expand Down
6 changes: 2 additions & 4 deletions apps/container/src/views/Stats/StatsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,7 @@ const cards = computed(() => [
</script>

<style scoped lang="scss">
.order-button {
&:hover {
color: rgb(var(--v-theme-ufabcnext-green));
}
.order-button:hover {
color: rgb(var(--v-theme-ufabcnext-green));
}
</style>
5 changes: 3 additions & 2 deletions apps/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "webpack serve --mode development",
"build": "webpack --mode production",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint:fix": "eslint . --fix",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@babel/core": "^7.23.2",
Expand All @@ -33,7 +34,7 @@
},
"engineStrict": true,
"dependencies": {
"@tanstack/react-query": "5.0.5",
"@tanstack/react-query": "5.4.3",
"react": "^18.2.0",
"store": "*",
"services": "*",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dev": "turbo run dev",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"test": "turbo run test"
"test": "turbo run test",
"tsc": "turbo run tsc"
},
"devDependencies": {
"eslint": "^8.52.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"lint": "eslint src/**/*",
"lint:fix": "eslint src/**/* --fix"
"lint:fix": "eslint src/**/* --fix",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"eslint-config-custom": "*",
Expand Down
3 changes: 2 additions & 1 deletion packages/stores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"lint": "eslint src/**/*",
"lint:fix": "eslint src/**/* --fix"
"lint:fix": "eslint src/**/* --fix",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"eslint-config-custom": "*",
Expand Down
3 changes: 2 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"lint": "eslint src/**/*",
"lint:fix": "eslint src/**/* --fix"
"lint:fix": "eslint src/**/* --fix",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"eslint-config-custom": "*",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"lint": "eslint src/**/*",
"lint:fix": "eslint src/**/* --fix"
"lint:fix": "eslint src/**/* --fix",
"tsc": "tsc --noEmit"
},
"devDependencies": {
"eslint-config-custom": "*",
Expand Down
24 changes: 0 additions & 24 deletions packages/utils/src/season.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
import dayjs from 'dayjs';

// const findQuadFromDate = (month: number): 1 | 2 | 3 => {
// if ([0, 1, 10, 11].includes(month)) return 1;
// if ([2, 3, 4, 5].includes(month)) return 2;
// return 3;
// };

// export const getSeason = (date = new Date()) => {
// const month = date.getMonth();
// return {
// 1: {
// quad: 1,
// year: date.getFullYear() + (month < 6 ? 0 : 1),
// },
// 2: {
// quad: 2,
// year: date.getFullYear(),
// },
// 3: {
// quad: 3,
// year: date.getFullYear(),
// },
// }[findQuadFromDate(date.getMonth() || month)];
// };

export const getSeason = (date = dayjs()) => {
const year = date.year();
const month = date.month();
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"lint": {},
"lint:fix": {},
"tsc": {},
"test": {},
"test:watch": {
"cache": false
Expand Down
Loading

0 comments on commit d65559f

Please sign in to comment.