Enable @stylistic/js/array-bracket-spacing lint

This commit is contained in:
Simon Ser committed 2025-02-20 17:51:46 +01:00
1 parent 95749ba516
commit f897e7d11b
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -46,6 +46,7 @@ export default [
multiline: true,
consistent: true,
}],
"@stylistic/js/array-bracket-spacing": ["warn", "never"],
"@stylistic/js/array-bracket-newline": ["warn", "consistent"],
},
},
+1 -1
View File
@@ -231,7 +231,7 @@ function insertMessage(list, msg) {
}
console.assert(insertBefore >= 0, "");
list = [ ...list ];
list = [...list];
list.splice(insertBefore, 0, msg);
return list;
}