Skip to content

Commit

Permalink
Update eslint ecmaVersion (#1027)
Browse files Browse the repository at this point in the history
ESlint was unable to parse optional chaining, since it was using 2018 rules.
Also, the line it was complaining about had an unused assignment, let's remove it!
  • Loading branch information
sandbergja authored Feb 27, 2024
1 parent d1cca8e commit 47f10cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaVersion: 2018
ecmaVersion: 2020
sourceType: module
parser: vue-eslint-parser
plugins:
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/travelEstimateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default {
});
this.$nextTick(() => {
const index = this.expenseData.length - 1;
const input = this.$refs?.expense_type?.[index]?.focusSelect();
this.$refs?.expense_type?.[index]?.focusSelect();
});
},
deleteExpense(expense) {
Expand Down

0 comments on commit 47f10cb

Please sign in to comment.