Skip to content

Commit 736780b

Browse files
committed
fix: new eslint errors
1 parent 83a75e7 commit 736780b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default [
1515
"prefer-spread": "off",
1616
"prefer-const": "off",
1717
"no-useless-escape": "off",
18+
"no-useless-assignment": "off",
1819
// "no-var": "off",
1920
"no-array-constructor": "off",
2021
"no-misleading-character-class": "off",

packages/binding.template/helpers/dummyTemplateEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function dummyTemplateEngine(templates?) {
7070
const evalResult = eval(script)
7171
return evalResult === null || evalResult === undefined ? '' : evalResult.toString()
7272
} catch (ex: any) {
73-
throw new Error('Error evaluating script: [js: ' + script + ']\n\nException: ' + ex.toString())
73+
throw new Error('Error evaluating script: [js: ' + script + ']\n\nException: ' + ex.toString(), { cause: ex })
7474
}
7575
}
7676

packages/utils.parser/spec/identifierBehaviors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('Identifier', function () {
8181

8282
describe('the dereference function', function () {
8383
it('does nothing with no references', function () {
84-
let refs,
84+
let refs = Array(),
8585
ident = new Identifier({}, 'x', refs)
8686
assert.equal(ident.dereference('1', {}), 1)
8787
})

0 commit comments

Comments
 (0)