Skip to content

ESLint formatter configs #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"recommendations": ["astro-build.astro-vscode", "esbenp.prettier-vscode"],
"unwantedRecommendations": []
"recommendations": [
"astro-build.astro-vscode",
"Vue.volar"
],
"unwantedRecommendations": [
"esbenp.prettier-vscode"
]
}
52 changes: 51 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
{
"eslint.useFlatConfig": true,
"editor.formatOnSave": true,
"eslint.codeActionsOnSave.mode": "all"
"eslint.codeActionsOnSave.mode": "all",
"eslint.enable": true,
"eslint.format.enable": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
8 changes: 4 additions & 4 deletions packages/frontendmu-nuxt/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineAppConfig({
photoAlbumSource:
"https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/",
description: 'A community around front-end development based in Mauritius. We also organise monthly meetups free for anyone interested to attend.',
})
photoAlbumSource:
'https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/',
description: 'A community around front-end development based in Mauritius. We also organise monthly meetups free for anyone interested to attend.',
})
Loading
Loading