Skip to content

Commit 4c2d26d

Browse files
committed
🔒️ Arreglar Prettier en Astro
1 parent b3d99fb commit 4c2d26d

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.prettierrc

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,14 @@
33
"printWidth": 120,
44
"tabWidth": 2,
55
"endOfLine": "auto",
6-
"trailingComma": "es5"
6+
"trailingComma": "es5",
7+
"plugins": ["prettier-plugin-astro"],
8+
"overrides": [
9+
{
10+
"files": "*.astro",
11+
"options": {
12+
"parser": "astro"
13+
}
14+
}
15+
]
716
}

astro.config.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@ export default defineConfig({
1818
],
1919
vite: {
2020
plugins: [graphql()],
21+
css: {
22+
preprocessorOptions: {
23+
scss: {
24+
api: 'modern-compiler',
25+
},
26+
},
27+
},
2128
},
2229
});

src/scss/estilosGlobales.scss

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ h3 {
103103
#marco {
104104
.seccionMarco {
105105
position: fixed;
106-
// background-color: white;
107106
}
108107

109108
#marcoInferior {

0 commit comments

Comments
 (0)