Skip to content

Commit

Permalink
[FIX] eslint: Update .eslintrc.json to use ECMAScript 2022 (#142)
Browse files Browse the repository at this point in the history
Changed ecmaVersion in parserOptions from 2021 to 2022 to enable
support for newer ECMAScript features. Ensures compatibility with
the latest JavaScript syntax improvements and standards.

Odoo Version:
https://github.com/odoo/odoo/blob/17.0/addons/web/tooling/_eslintrc.json#L5

Fix the following error
  Parsing error: Unexpected token =
  • Loading branch information
imanie383 authored Dec 31, 2024
1 parent 62ba6fa commit d70819e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pre_commit_vauxoo/cfg/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"yoda": "error"
},
"parserOptions": {
"ecmaVersion": "2021",
"ecmaVersion": 2022,
"sourceType": "module"
}
}

0 comments on commit d70819e

Please sign in to comment.