mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-21 18:10:54 -04:00
Enable @stylistic/js/array-bracket-spacing lint
This commit is contained in:
parent
95749ba516
commit
f897e7d11b
2 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ export default [
|
|||
multiline: true,
|
||||
consistent: true,
|
||||
}],
|
||||
"@stylistic/js/array-bracket-spacing": ["warn", "never"],
|
||||
"@stylistic/js/array-bracket-newline": ["warn", "consistent"],
|
||||
},
|
||||
},
|
||||
|
|
2
state.js
2
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue