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