diff --git a/.prettierignore b/.prettierignore index b9185d85..e4f2bdca 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,3 +4,5 @@ src/images/ node_modules/ .idea/ .DS_Store/ +dist/ +docker/ diff --git a/Makefile b/Makefile index ef0d3b4d..5fd94def 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,17 @@ -SHELL := /bin/bash +.PHONY: format env-fresh lint-fix -.PHONY: format env\:fresh lint\:check lint\:fix +SHELL := /bin/bash +ROOT_PATH := $(shell pwd) format: npx prettier --write '**/*.{json,js,ts,tsx,jsx,mjs,cjs,vue,html}' --ignore-path .prettierignore + make lint-fix -env\:fresh: - rm -rf node_modules +env-fresh: + rm -rf $(ROOT_PATH)/node_modules + rm $(ROOT_PATH)/package-lock.json npm cache clean --force npm install -lint\:check: - npx eslint . --ext .js,.jsx,.cjs,.mjs,.vue - -lint\:fix: - npx eslint . --ext .js,.jsx,.cjs,.mjs,.vue --fix +lint-fix: + npx eslint . --fix diff --git a/eslint.config.js b/eslint.config.js index a2335365..48086769 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,27 +1,21 @@ // eslint.config.js -import js from '@eslint/js'; // Standard ESLint recommended rules -import pluginVue from 'eslint-plugin-vue'; // Vue plugin (needed for rule references) -import parserVue from 'vue-eslint-parser'; // Parser for .vue files -// Import TypeScript parser and plugin +import js from '@eslint/js'; +import pluginVue from 'eslint-plugin-vue'; +import parserVue from 'vue-eslint-parser'; import parserTypeScript from '@typescript-eslint/parser'; import pluginTypeScript from '@typescript-eslint/eslint-plugin'; -// Import Babel parser (still needed for non-TS JS files if applicable) -import parserBabel from '@babel/eslint-parser'; // Parser for diff --git a/src/partials/FeaturedProjectsPartial.vue b/src/partials/FeaturedProjectsPartial.vue index 32c4717b..d897b075 100644 --- a/src/partials/FeaturedProjectsPartial.vue +++ b/src/partials/FeaturedProjectsPartial.vue @@ -5,8 +5,9 @@
- @@ -42,7 +42,7 @@ import { useUserStore } from '@stores/users/user.ts'; import type { Project, User } from '@stores/users/userType.ts'; const userStore = useUserStore(); -const projects: Project[] = ref([]); +const projects = ref([]); onMounted(() => { userStore.onBoot((profile: User) => { diff --git a/src/partials/ProjectCardPartial.vue b/src/partials/ProjectCardPartial.vue index d9c1f794..c53bae9c 100644 --- a/src/partials/ProjectCardPartial.vue +++ b/src/partials/ProjectCardPartial.vue @@ -9,12 +9,7 @@
- +
Open-Source
@@ -36,6 +31,5 @@ import type { Project } from '@stores/users/userType.ts'; const { item } = defineProps<{ item: Project; -}>() - +}>(); diff --git a/src/partials/RecommendationPartial.vue b/src/partials/RecommendationPartial.vue index bcd62198..b8ab1fb5 100644 --- a/src/partials/RecommendationPartial.vue +++ b/src/partials/RecommendationPartial.vue @@ -3,7 +3,7 @@

Recommendations

    -
  • +
  • {{ item.person.full_name }}
    {{ item.person.company }}
    -
    +
    {{ item.relation }}
    {{ item.formattedDate }}
    +
    @@ -32,18 +33,17 @@ import DOMPurify from 'dompurify'; import { image, date } from '@/public.ts'; import type { Recommendation } from '@stores/users/userType.ts'; - marked.use({ breaks: true, gfm: true, }); const { recommendations } = defineProps<{ - recommendations: Recommendation[] -}>() + recommendations: Recommendation[]; +}>(); const processedRecommendations = computed(() => { - return recommendations.map(item => { + return recommendations.map((item) => { const sanitisedHtml = DOMPurify.sanitize(marked.parse(item.text) as string); return { @@ -53,5 +53,4 @@ const processedRecommendations = computed(() => { }; }); }); - diff --git a/src/partials/SideNavPartial.vue b/src/partials/SideNavPartial.vue index b14a13e4..5d11b92a 100644 --- a/src/partials/SideNavPartial.vue +++ b/src/partials/SideNavPartial.vue @@ -80,13 +80,13 @@