Skip to content

Commit

Permalink
chore(eslint): add rule to enforce indentation of 4 spaces for json
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-bitfly committed Jan 14, 2025
1 parent 734a131 commit 5020dfb
Show file tree
Hide file tree
Showing 7 changed files with 1,398 additions and 1,394 deletions.
16 changes: 8 additions & 8 deletions frontend/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"recommendations": [
"vivaxy.vscode-conventional-commits",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"usernamehw.errorlens",
"nuxtr.nuxt-vscode-extentions",
"vue.volar"
]
"recommendations": [
"vivaxy.vscode-conventional-commits",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"usernamehw.errorlens",
"nuxtr.nuxt-vscode-extentions",
"vue.volar"
]
}
136 changes: 68 additions & 68 deletions frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
{
"conventionalCommits.scopes": [
"App",
"BcButton",
"BcDataWrapper",
"BcHeaderMegaMenu",
"BcInputUnit",
"BcLink",
"BcPageWrapper",
"BcPremiumModal",
"BcTablePager",
"BcToggle",
"DashboardChartSummary",
"DashboardChartSummaryFilter",
"DashboardGroupManagementModal",
"DashboardTableSummaryDetails",
"DashboardTableSummaryValue",
"DashboardTableValidators",
"DashboardValidatorManagmentModal",
"DashboardValidatorSubsetList",
"DashboardValidatorSubsetListHeader",
"NotificationMachinesTable",
"NotificationsClientsTable",
"NotificationsDashboardDialogEntity",
"NotificationsDashboardTable",
"NotificationsManagementDashboards",
"NotificationsManagementGeneralTab",
"NotificationsManagementModalDashboardsDelete",
"NotificationsManagementModalWebhook",
"NotificationsManagementNetwork",
"NotificationsManagementSubscriptionDialog",
"NotificationsManagmentMachines",
"NotificationsNetworkTable",
"NotificationsOverview",
"NotificationsTableEmpty",
"SlotVizViewer",
"a11y",
"checkout",
"ci",
"color-mode",
"csrf",
"customFetch",
"dashboard",
"deps",
"dialog",
"eslint",
"feature-flags",
"git",
"git-blame-ignore",
"healthz",
"i18n",
"mainHeader",
"middleware",
"notifications",
"nuxt.config",
"qrCode",
"useCustomFetch",
"useNotificationsOverviewStore",
"useWindowSize",
"vscode"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"editor.formatOnSave": false,
"editor.rulers": [
80,
120
]
"conventionalCommits.scopes": [
"App",
"BcButton",
"BcDataWrapper",
"BcHeaderMegaMenu",
"BcInputUnit",
"BcLink",
"BcPageWrapper",
"BcPremiumModal",
"BcTablePager",
"BcToggle",
"DashboardChartSummary",
"DashboardChartSummaryFilter",
"DashboardGroupManagementModal",
"DashboardTableSummaryDetails",
"DashboardTableSummaryValue",
"DashboardTableValidators",
"DashboardValidatorManagmentModal",
"DashboardValidatorSubsetList",
"DashboardValidatorSubsetListHeader",
"NotificationMachinesTable",
"NotificationsClientsTable",
"NotificationsDashboardDialogEntity",
"NotificationsDashboardTable",
"NotificationsManagementDashboards",
"NotificationsManagementGeneralTab",
"NotificationsManagementModalDashboardsDelete",
"NotificationsManagementModalWebhook",
"NotificationsManagementNetwork",
"NotificationsManagementSubscriptionDialog",
"NotificationsManagmentMachines",
"NotificationsNetworkTable",
"NotificationsOverview",
"NotificationsTableEmpty",
"SlotVizViewer",
"a11y",
"checkout",
"ci",
"color-mode",
"csrf",
"customFetch",
"dashboard",
"deps",
"dialog",
"eslint",
"feature-flags",
"git",
"git-blame-ignore",
"healthz",
"i18n",
"mainHeader",
"middleware",
"notifications",
"nuxt.config",
"qrCode",
"useCustomFetch",
"useNotificationsOverviewStore",
"useWindowSize",
"vscode"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"editor.formatOnSave": false,
"editor.rulers": [
80,
120
]
}
4 changes: 4 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export default withNuxt({
...eslintPluginJsonc.configs['flat/recommended-with-json'],
{
rules: {
'jsonc/indent': [
'error',
4,
],
'jsonc/sort-array-values': [
'warn',
{
Expand Down
Loading

0 comments on commit 5020dfb

Please sign in to comment.