diff --git a/eslint.config.js b/eslint.config.js index f32fa3a..cdd1b9e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -46,6 +46,7 @@ export default [ multiline: true, consistent: true, }], + "@stylistic/js/array-bracket-spacing": ["warn", "never"], "@stylistic/js/array-bracket-newline": ["warn", "consistent"], }, }, diff --git a/state.js b/state.js index 12de077..52ed1df 100644 --- a/state.js +++ b/state.js @@ -231,7 +231,7 @@ function insertMessage(list, msg) { } console.assert(insertBefore >= 0, ""); - list = [ ...list ]; + list = [...list]; list.splice(insertBefore, 0, msg); return list; }