Skip to content

Commit 83aaa9b

Browse files
committed
workflow: update eslint config to allow spread usage
1 parent 392ca5d commit 83aaa9b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ module.exports = {
1616
// most of the codebase are expected to be env agnostic
1717
'no-restricted-globals': ['error', ...DOMGlobals, ...NodeGlobals],
1818
// since we target ES2015 for baseline support, we need to forbid object
19-
// rest spread usage (both assign and destructure)
19+
// rest spread usage in destructure as it compiles into a verbose helper.
20+
// TS now compiles assignment spread into Object.assign() calls so that
21+
// is allowed.
2022
'no-restricted-syntax': [
2123
'error',
22-
'ObjectExpression > SpreadElement',
2324
'ObjectPattern > RestElement',
2425
'AwaitExpression'
2526
]

0 commit comments

Comments
 (0)