Skip to content

Commit 67b116c

Browse files
authored
Replace additional spread operator usage (#1297)
* Replace additional spread operator usage * Update changelog * Remove restriction on Object.assign()
1 parent 8dc8c06 commit 67b116c

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
### 🐞 Bug fixes
88
- _...Add new stuff here..._
9-
-
9+
- Replace additional spread operator (`...`) due to esbuild limitations ([#1297](https://github.com/maplibre/maplibre-style-spec/pull/1297))
10+
1011
## 24.1.1
1112

1213
### 🐞 Bug fixes

eslint.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ export default [{
7171
"no-lonely-if": "off",
7272
"no-new": "off",
7373

74-
"no-restricted-properties": [2, {
75-
object: "Object",
76-
property: "assign",
77-
}],
78-
7974
"no-unused-vars": "off",
8075
"no-warning-comments": "error",
8176
"object-curly-spacing": ["error", "never"],

src/validate_style.min.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ validateStyleMin.layoutProperty = wrapCleanErrors(injectValidateSpec(validateLay
7575

7676
function injectValidateSpec(validator: (options: object) => any) {
7777
return function(options) {
78-
return validator({
79-
...options,
80-
validateSpec: validate,
81-
});
78+
return validator(Object.assign({}, options, {validateSpec: validate}));
8279
};
8380
}
8481

0 commit comments

Comments
 (0)