Skip to content

Commit

Permalink
Add note about workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 6, 2025
1 parent a9146cd commit 4977537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webextensions/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ const languageOptions = {
...globals.webextensions,
},

// This is for a workaround to avoid parsing error around static properties defined in class definitions.
// See also: https://stackoverflow.com/questions/42701440/eslint-parsing-error-unexpected-token-error-for-assigned-fat-arrow-prop
parser: babelParser,
parserOptions: {
requireConfigFile: false,
},

ecmaVersion: 2020,
sourceType: "module",
};
Expand Down

0 comments on commit 4977537

Please sign in to comment.