Skip to content

Commit 0fb1389

Browse files
committed
chore(eslint): add rule to prevent whitespace in .json
1 parent d8d7816 commit 0fb1389

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

frontend/eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,15 @@ export default withNuxt({
126126
.append(
127127
...eslintPluginJsonc.configs['flat/recommended-with-json'],
128128
{
129+
files: [ '**/*.json' ],
129130
rules: {
131+
'@stylistic/no-multiple-empty-lines': [
132+
'error',
133+
{
134+
max: 0,
135+
},
136+
],
137+
'@stylistic/no-trailing-spaces': 'error',
130138
'jsonc/indent': [
131139
'error',
132140
4,

frontend/i18n/locales/en.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@
779779
"validator_offline": "Validator offline",
780780
"validator_offline_reminder": "Validator offline reminder",
781781
"withdrawal": "Withdrawal"
782-
783782
},
784783
"heading_webhook": "Edit Webhook",
785784
"info_send_via_discord": {
@@ -953,7 +952,6 @@
953952
"erc20_token_transfers": {
954953
"label": "ERC20 token transfers"
955954
},
956-
957955
"erc721_token_transfers": {
958956
"label": "ERC721 token transfers"
959957
},
@@ -1238,7 +1236,6 @@
12381236
"toggle_history": "Toggle Search History"
12391237
},
12401238
"recent": "Search History"
1241-
12421239
},
12431240
"input_label": "Search by Address / Tx hash / Block / Token / ENS",
12441241
"input_placeholder": "Search anything...",

0 commit comments

Comments
 (0)