From 75b4a5ebc0f22367231473b320378cbfd6a18815 Mon Sep 17 00:00:00 2001 From: Vitor Mello Date: Thu, 30 Nov 2023 20:21:36 +0100 Subject: [PATCH] working things again --- .eslintrc.cjs | 33 +- .prettierrc | 5 - .prettierrc.mjs | 16 + .vscode/settings.json | 3 +- package.json | 18 +- public/vitor-mello-resume.pdf | Bin 135512 -> 137476 bytes src/components/Hero.astro | 2 +- src/content/resume.yml | 25 +- src/layouts/LayoutPrint.astro | 2 +- src/layouts/LayoutWeb.astro | 11 +- yarn.lock | 1893 ++++++++++++++------------------- 11 files changed, 859 insertions(+), 1149 deletions(-) delete mode 100644 .prettierrc create mode 100644 .prettierrc.mjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 04b47a7..186e15d 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -70,8 +70,17 @@ module.exports = { { // Define the configuration for `.astro` file. files: ['*.astro'], - plugins: ['astro'], - + // plugins: ['astro'], + parser: 'astro-eslint-parser', + // Parse the script in `.astro` as TypeScript by adding the following configuration. + // It's the setting you need when using TypeScript. + parserOptions: { + parser: '@typescript-eslint/parser', + project: 'tsconfig.json', + extraFileExtensions: ['.astro'], + // The script of Astro components uses ESM. + sourceType: 'module', + }, // Enable this plugin env: { // Enables global variables available in Astro components. @@ -90,17 +99,6 @@ module.exports = { }, }, }, - // Allows Astro components to be parsed. - parser: 'astro-eslint-parser', - // Parse the script in `.astro` as TypeScript by adding the following configuration. - // It's the setting you need when using TypeScript. - parserOptions: { - parser: '@typescript-eslint/parser', - project: 'tsconfig.json', - extraFileExtensions: ['.astro'], - // The script of Astro components uses ESM. - sourceType: 'module', - }, rules: { // Enable recommended rules 'astro/no-conflict-set-directives': 'error', @@ -110,5 +108,14 @@ module.exports = { // "astro/no-set-html-directive": "error" }, }, + { + // Define the configuration for `