@@ -28,14 +28,14 @@ This means aligning to Prettier defaults, air-bnb rules, etc.
28
28
- [ Extension(s)] ( #extensions )
29
29
- [ Settings] ( #settings )
30
30
- [ Prettier] ( #prettier )
31
- - [ Installations ] ( #installations -1 )
31
+ - [ Installation ] ( #installation -1 )
32
32
- [ Configuration] ( #configuration-1 )
33
33
- [ Editorconfig] ( #editorconfig )
34
34
- [ VSCode] ( #vscode-1 )
35
35
- [ Extension(s)] ( #extensions-1 )
36
36
- [ Settings] ( #settings-1 )
37
37
- [ Stylelint] ( #stylelint )
38
- - [ Installations] ( #installations-2 )
38
+ - [ Installations] ( #installations-1 )
39
39
- [ Configuration] ( #configuration-2 )
40
40
- [ VSCode] ( #vscode-2 )
41
41
- [ Extension(s)] ( #extensions-2 )
@@ -48,7 +48,6 @@ This means aligning to Prettier defaults, air-bnb rules, etc.
48
48
- [ Extension(s)] ( #extensions-4 )
49
49
- [ TypeScript] ( #typescript )
50
50
- [ VSCode] ( #vscode-5 )
51
- - [ Project settings boilerplate] ( #project-settings-boilerplate )
52
51
- [ VSCode] ( #vscode-6 )
53
52
- [ Languages] ( #languages )
54
53
- [ Astro] ( #astro )
@@ -79,7 +78,6 @@ Atomic configs import is planned, as each project might not need the whole range
79
78
# v—————————————————————————————————— Base
80
79
pnpm i -D \
81
80
eslint \
82
- @types/eslint \
83
81
eslint-config-airbnb-base
84
82
85
83
# v—————————————————————————————————— Prettier compat.
@@ -124,10 +122,12 @@ eslint-plugin-mdx
124
122
125
123
### Configuration
126
124
127
- In ` .eslintrc.cjs ` :
125
+ ``` sh
126
+ touch ./.eslintrc.cjs && code -r ./.eslintrc.cjs
127
+ ```
128
128
129
129
``` js
130
- /** @type {import("@types/ eslint").Linter.Config} */
130
+ /** @type {import("eslint").Linter.Config} */
131
131
132
132
module .exports = {
133
133
// Prevent cascading in contained folders
@@ -193,26 +193,20 @@ In your `settings.json`:
193
193
194
194
## Prettier
195
195
196
- ### Installations
196
+ ### Installation
197
197
198
198
``` sh
199
- # v—————————————————————————————————— Base
200
- pnpm i -D \
201
- @types/prettier \
202
- prettier
203
-
204
- # v—————————————————————————————————— Astro
205
- pnpm i -D \
206
- prettier-plugin-astro \
207
- postcss-html
199
+ pnpm i -D prettier
208
200
```
209
201
210
202
### Configuration
211
203
212
- In ` .prettierrc.cjs ` :
204
+ ``` sh
205
+ touch ./.prettierrc.cjs && code -r ./.prettierrc.cjs
206
+ ```
213
207
214
208
``` js
215
- /** @type {import("@types/ prettier").Options} */
209
+ /** @type {import("prettier").Options} */
216
210
217
211
module .exports = {
218
212
/**
@@ -324,14 +318,14 @@ pnpm i -D \
324
318
stylelint-config-standard-scss \
325
319
stylelint-config-recommended-scss
326
320
327
- # v—————————————————————————————————— Vue
321
+ # v—————————————————————————————————— Astro / Vue / HTML…
328
322
pnpm i -D \
329
- stylelint-config-recommended-vue \
330
- postcss -html
323
+ postcss-html \
324
+ stylelint-config -html
331
325
332
- # v—————————————————————————————————— Astro
326
+ # v—————————————————————————————————— Vue
333
327
pnpm i -D \
334
- postcss-html
328
+ stylelint-config-recommended-vue
335
329
336
330
# v—————————————————————————————————— Prettier compat.
337
331
pnpm i -D \
@@ -340,7 +334,9 @@ stylelint-config-prettier
340
334
341
335
### Configuration
342
336
343
- In ` stylelint.config.cjs ` :
337
+ ``` sh
338
+ touch ./stylelint.config.cjs && code -r ./stylelint.config.cjs
339
+ ```
344
340
345
341
``` js
346
342
/** @type {import("@types/stylelint").Options} */
@@ -391,8 +387,24 @@ In your `settings.json`:
391
387
``` jsonc
392
388
{
393
389
// …
394
- " stylelint.validate" : [" css" , " postcss" , " scss" , " vue" , " astro" ],
395
- " stylelint.snippet" : [" css" , " postcss" , " scss" , " vue" , " astro" ]
390
+ " stylelint.validate" : [
391
+ //
392
+ " html" ,
393
+ " css" ,
394
+ " postcss" ,
395
+ " scss" ,
396
+ " vue" ,
397
+ " astro"
398
+ ],
399
+ " stylelint.snippet" : [
400
+ //
401
+ " html" ,
402
+ " css" ,
403
+ " postcss" ,
404
+ " scss" ,
405
+ " vue" ,
406
+ " astro"
407
+ ]
396
408
// …
397
409
}
398
410
```
@@ -433,7 +445,9 @@ In your `settings.json`:
433
445
}
434
446
```
435
447
436
- ### Project settings boilerplate
448
+ <!-- NOTE: Too specific, but can be nice to reference some tricks -->
449
+
450
+ <!-- ### Project settings boilerplate
437
451
438
452
In your `tsconfig.json`:
439
453
@@ -464,7 +478,7 @@ In your `tsconfig.json`:
464
478
}
465
479
}
466
480
}
467
- ```
481
+ ``` -->
468
482
469
483
## VSCode
470
484
0 commit comments