Skip to content

Commit 4239923

Browse files
authored
Merge pull request #167 from n-d-r-d-g/main
ESLint formatter configs
2 parents 86e4828 + b252397 commit 4239923

File tree

105 files changed

+4526
-3698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+4526
-3698
lines changed

.vscode/extensions.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2-
"recommendations": ["astro-build.astro-vscode", "esbenp.prettier-vscode"],
3-
"unwantedRecommendations": []
2+
"recommendations": [
3+
"astro-build.astro-vscode",
4+
"Vue.volar"
5+
],
6+
"unwantedRecommendations": [
7+
"esbenp.prettier-vscode"
8+
]
49
}

.vscode/settings.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
{
22
"eslint.useFlatConfig": true,
33
"editor.formatOnSave": true,
4-
"eslint.codeActionsOnSave.mode": "all"
4+
"eslint.codeActionsOnSave.mode": "all",
5+
"eslint.enable": true,
6+
"eslint.format.enable": true,
7+
8+
// Disable the default formatter, use eslint instead
9+
"prettier.enable": false,
10+
11+
// Auto fix
12+
"editor.codeActionsOnSave": {
13+
"source.fixAll.eslint": "explicit",
14+
"source.organizeImports": "never"
15+
},
16+
17+
// Silent the stylistic rules in you IDE, but still auto fix them
18+
"eslint.rules.customizations": [
19+
{ "rule": "style/*", "severity": "off", "fixable": true },
20+
{ "rule": "format/*", "severity": "off", "fixable": true },
21+
{ "rule": "*-indent", "severity": "off", "fixable": true },
22+
{ "rule": "*-spacing", "severity": "off", "fixable": true },
23+
{ "rule": "*-spaces", "severity": "off", "fixable": true },
24+
{ "rule": "*-order", "severity": "off", "fixable": true },
25+
{ "rule": "*-dangle", "severity": "off", "fixable": true },
26+
{ "rule": "*-newline", "severity": "off", "fixable": true },
27+
{ "rule": "*quotes", "severity": "off", "fixable": true },
28+
{ "rule": "*semi", "severity": "off", "fixable": true }
29+
],
30+
31+
// Enable eslint for all supported languages
32+
"eslint.validate": [
33+
"javascript",
34+
"javascriptreact",
35+
"typescript",
36+
"typescriptreact",
37+
"vue",
38+
"html",
39+
"markdown",
40+
"json",
41+
"jsonc",
42+
"yaml",
43+
"toml",
44+
"xml",
45+
"gql",
46+
"graphql",
47+
"astro",
48+
"svelte",
49+
"css",
50+
"less",
51+
"scss",
52+
"pcss",
53+
"postcss"
54+
]
555
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default defineAppConfig({
2-
photoAlbumSource:
3-
"https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/",
4-
description: 'A community around front-end development based in Mauritius. We also organise monthly meetups free for anyone interested to attend.',
5-
})
2+
photoAlbumSource:
3+
'https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/',
4+
description: 'A community around front-end development based in Mauritius. We also organise monthly meetups free for anyone interested to attend.',
5+
})

0 commit comments

Comments
 (0)