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,
|
multiline: true,
|
||||||
consistent: true,
|
consistent: true,
|
||||||
}],
|
}],
|
||||||
|
"@stylistic/js/array-bracket-spacing": ["warn", "never"],
|
||||||
"@stylistic/js/array-bracket-newline": ["warn", "consistent"],
|
"@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, "");
|
console.assert(insertBefore >= 0, "");
|
||||||
|
|
||||||
list = [ ...list ];
|
list = [...list];
|
||||||
list.splice(insertBefore, 0, msg);
|
list.splice(insertBefore, 0, msg);
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue